/tools/power/cpupower/utils/idle_monitor/ |
D | cpuidle_sysfs.c | 79 void fix_up_intel_idle_driver_name(char *tmp, int num) in fix_up_intel_idle_driver_name() argument 83 switch (num) { in fix_up_intel_idle_driver_name() 95 switch (num) { in fix_up_intel_idle_driver_name() 110 switch (num) { in fix_up_intel_idle_driver_name() 143 int num; in cpuidle_register() local 155 for (num = 0; num < cpuidle_sysfs_monitor.hw_states_num; num++) { in cpuidle_register() 156 tmp = cpuidle_state_name(this_cpu, num); in cpuidle_register() 161 fix_up_intel_idle_driver_name(tmp, num); in cpuidle_register() 162 strncpy(cpuidle_cstates[num].name, tmp, CSTATE_NAME_LEN - 1); in cpuidle_register() 165 tmp = cpuidle_state_desc(this_cpu, num); in cpuidle_register() [all …]
|
D | hsw_ext_idle.c | 115 int num, cpu; in hsw_ext_start() local 118 for (num = 0; num < HSW_EXT_CSTATE_COUNT; num++) { in hsw_ext_start() 120 hsw_ext_get_count(num, &val, cpu); in hsw_ext_start() 121 previous_count[num][cpu] = val; in hsw_ext_start() 131 int num, cpu; in hsw_ext_stop() local 135 for (num = 0; num < HSW_EXT_CSTATE_COUNT; num++) { in hsw_ext_stop() 137 is_valid[cpu] = !hsw_ext_get_count(num, &val, cpu); in hsw_ext_stop() 138 current_count[num][cpu] = val; in hsw_ext_stop() 148 int num; in hsw_ext_register() local 162 for (num = 0; num < HSW_EXT_CSTATE_COUNT; num++) { in hsw_ext_register() [all …]
|
D | snb_idle.c | 113 int num, cpu; in snb_start() local 116 for (num = 0; num < SNB_CSTATE_COUNT; num++) { in snb_start() 118 snb_get_count(num, &val, cpu); in snb_start() 119 previous_count[num][cpu] = val; in snb_start() 129 int num, cpu; in snb_stop() local 133 for (num = 0; num < SNB_CSTATE_COUNT; num++) { in snb_stop() 135 is_valid[cpu] = !snb_get_count(num, &val, cpu); in snb_stop() 136 current_count[num][cpu] = val; in snb_stop() 146 int num; in snb_register() local 167 for (num = 0; num < SNB_CSTATE_COUNT; num++) { in snb_register() [all …]
|
D | nhm_idle.c | 128 int num, cpu; in nhm_start() local 133 for (num = 0; num < NHM_CSTATE_COUNT; num++) { in nhm_start() 135 is_valid[cpu] = !nhm_get_count(num, &val, cpu); in nhm_start() 136 previous_count[num][cpu] = val; in nhm_start() 148 int num, cpu; in nhm_stop() local 152 for (num = 0; num < NHM_CSTATE_COUNT; num++) { in nhm_stop() 154 is_valid[cpu] = !nhm_get_count(num, &val, cpu); in nhm_stop() 155 current_count[num][cpu] = val; in nhm_stop() 168 int num; in intel_nhm_register() local 181 for (num = 0; num < NHM_CSTATE_COUNT; num++) { in intel_nhm_register() [all …]
|
D | cpupower-monitor.c | 222 unsigned int num; in parse_monitor_param() local 238 for (num = 0; num < avail_monitors; num++) { in parse_monitor_param() 239 if (!strcmp(monitors[num]->name, token)) { in parse_monitor_param() 241 tmp_mons[hits] = monitors[num]; in parse_monitor_param() 284 unsigned int num; in fork_it() local 292 for (num = 0; num < avail_monitors; num++) in fork_it() 293 monitors[num]->start(); in fork_it() 313 for (num = 0; num < avail_monitors; num++) in fork_it() 314 monitors[num]->stop(); in fork_it() 326 unsigned int num; in do_interval_measure() local [all …]
|
D | amd_fam14h_idle.c | 230 int num, cpu; in amd_fam14h_start() local 232 for (num = 0; num < AMD_FAM14H_STATE_NUM; num++) { in amd_fam14h_start() 234 amd_fam14h_init(&amd_fam14h_cstates[num], cpu); in amd_fam14h_start() 247 int num, cpu; in amd_fam14h_stop() local 252 for (num = 0; num < AMD_FAM14H_STATE_NUM; num++) { in amd_fam14h_stop() 254 amd_fam14h_disable(&amd_fam14h_cstates[num], cpu); in amd_fam14h_stop() 278 int num; in amd_fam14h_register() local 293 for (num = 0; num < AMD_FAM14H_STATE_NUM - 1; num++) { in amd_fam14h_register() 294 previous_count[num] = calloc(cpu_count, in amd_fam14h_register() 296 current_count[num] = calloc(cpu_count, in amd_fam14h_register() [all …]
|
/tools/perf/tests/shell/ |
D | stat+shadow_stat.sh | 15 perf stat -a --no-big-num -e cycles,instructions sleep 1 2>&1 | \ 17 while read num evt _hash ipc rest 20 if [ "$num" = "<not" ]; then 26 cyc=$num 36 res=`printf "%.2f" "$(echo "scale=6; $num / $cyc" | bc -q)"` 38 echo "IPC is different: $res != $ipc ($num / $cyc)" 46 perf stat -a -A --no-big-num -e cycles,instructions sleep 1 2>&1 | \ 48 while read cpu num evt _hash ipc rest 51 if [ "$num" = "<not" ]; then 57 results="$results $cpu:$num" [all …]
|
/tools/include/asm-generic/bitops/ |
D | __ffs.h | 16 int num = 0; in __ffs() local 20 num += 32; in __ffs() 25 num += 16; in __ffs() 29 num += 8; in __ffs() 33 num += 4; in __ffs() 37 num += 2; in __ffs() 41 num += 1; in __ffs() 42 return num; in __ffs()
|
D | __fls.h | 15 int num = BITS_PER_LONG - 1; in __fls() local 19 num -= 32; in __fls() 24 num -= 16; in __fls() 28 num -= 8; in __fls() 32 num -= 4; in __fls() 36 num -= 2; in __fls() 40 num -= 1; in __fls() 41 return num; in __fls()
|
/tools/include/nolibc/ |
D | arch-aarch64.h | 28 #define my_syscall0(num) \ argument 30 register long _num __asm__ ("x8") = (num); \ 42 #define my_syscall1(num, arg1) \ argument 44 register long _num __asm__ ("x8") = (num); \ 57 #define my_syscall2(num, arg1, arg2) \ argument 59 register long _num __asm__ ("x8") = (num); \ 73 #define my_syscall3(num, arg1, arg2, arg3) \ argument 75 register long _num __asm__ ("x8") = (num); \ 90 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument 92 register long _num __asm__ ("x8") = (num); \ [all …]
|
D | arch-riscv.h | 27 #define my_syscall0(num) \ argument 29 register long _num __asm__ ("a7") = (num); \ 41 #define my_syscall1(num, arg1) \ argument 43 register long _num __asm__ ("a7") = (num); \ 55 #define my_syscall2(num, arg1, arg2) \ argument 57 register long _num __asm__ ("a7") = (num); \ 71 #define my_syscall3(num, arg1, arg2, arg3) \ argument 73 register long _num __asm__ ("a7") = (num); \ 88 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument 90 register long _num __asm__ ("a7") = (num); \ [all …]
|
D | arch-i386.h | 31 #define my_syscall0(num) \ argument 34 register long _num __asm__ ("eax") = (num); \ 45 #define my_syscall1(num, arg1) \ argument 48 register long _num __asm__ ("eax") = (num); \ 61 #define my_syscall2(num, arg1, arg2) \ argument 64 register long _num __asm__ ("eax") = (num); \ 78 #define my_syscall3(num, arg1, arg2, arg3) \ argument 81 register long _num __asm__ ("eax") = (num); \ 96 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument 99 register long _num __asm__ ("eax") = (num); \ [all …]
|
D | arch-x86_64.h | 32 #define my_syscall0(num) \ argument 35 register long _num __asm__ ("rax") = (num); \ 46 #define my_syscall1(num, arg1) \ argument 49 register long _num __asm__ ("rax") = (num); \ 62 #define my_syscall2(num, arg1, arg2) \ argument 65 register long _num __asm__ ("rax") = (num); \ 79 #define my_syscall3(num, arg1, arg2, arg3) \ argument 82 register long _num __asm__ ("rax") = (num); \ 97 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument 100 register long _num __asm__ ("rax") = (num); \ [all …]
|
D | arch-loongarch.h | 29 #define my_syscall0(num) \ argument 31 register long _num __asm__ ("a7") = (num); \ 43 #define my_syscall1(num, arg1) \ argument 45 register long _num __asm__ ("a7") = (num); \ 57 #define my_syscall2(num, arg1, arg2) \ argument 59 register long _num __asm__ ("a7") = (num); \ 73 #define my_syscall3(num, arg1, arg2, arg3) \ argument 75 register long _num __asm__ ("a7") = (num); \ 90 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument 92 register long _num __asm__ ("a7") = (num); \ [all …]
|
D | arch-mips.h | 37 #define my_syscall0(num) \ argument 39 register long _num __asm__ ("v0") = (num); \ 53 #define my_syscall1(num, arg1) \ argument 55 register long _num __asm__ ("v0") = (num); \ 71 #define my_syscall2(num, arg1, arg2) \ argument 73 register long _num __asm__ ("v0") = (num); \ 90 #define my_syscall3(num, arg1, arg2, arg3) \ argument 92 register long _num __asm__ ("v0") = (num); \ 110 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument 112 register long _num __asm__ ("v0") = (num); \ [all …]
|
D | arch-powerpc.h | 28 #define my_syscall0(num) \ argument 31 register long _num __asm__ ("r0") = (num); \ 45 #define my_syscall1(num, arg1) \ argument 48 register long _num __asm__ ("r0") = (num); \ 64 #define my_syscall2(num, arg1, arg2) \ argument 67 register long _num __asm__ ("r0") = (num); \ 84 #define my_syscall3(num, arg1, arg2, arg3) \ argument 87 register long _num __asm__ ("r0") = (num); \ 105 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument 108 register long _num __asm__ ("r0") = (num); \ [all …]
|
D | arch-arm.h | 53 #define my_syscall0(num) \ argument 55 register long _num __asm__(_NOLIBC_SYSCALL_REG) = (num); \ 70 #define my_syscall1(num, arg1) \ argument 72 register long _num __asm__(_NOLIBC_SYSCALL_REG) = (num); \ 87 #define my_syscall2(num, arg1, arg2) \ argument 89 register long _num __asm__(_NOLIBC_SYSCALL_REG) = (num); \ 105 #define my_syscall3(num, arg1, arg2, arg3) \ argument 107 register long _num __asm__(_NOLIBC_SYSCALL_REG) = (num); \ 124 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument 126 register long _num __asm__(_NOLIBC_SYSCALL_REG) = (num); \ [all …]
|
D | arch-s390.h | 26 #define my_syscall0(num) \ argument 28 register long _num __asm__ ("1") = (num); \ 40 #define my_syscall1(num, arg1) \ argument 42 register long _num __asm__ ("1") = (num); \ 54 #define my_syscall2(num, arg1, arg2) \ argument 56 register long _num __asm__ ("1") = (num); \ 69 #define my_syscall3(num, arg1, arg2, arg3) \ argument 71 register long _num __asm__ ("1") = (num); \ 85 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument 87 register long _num __asm__ ("1") = (num); \ [all …]
|
/tools/testing/selftests/size/ |
D | get_size.c | 45 static inline char *num_to_str(unsigned long num, char *buf, int len) in num_to_str() argument 53 digit = num % 10; in num_to_str() 55 num /= 10; in num_to_str() 56 } while (num > 0); in num_to_str() 61 static int print_num(unsigned long num) in print_num() argument 65 return print(num_to_str(num, num_buf, sizeof(num_buf))); in print_num() 68 static int print_k_value(const char *s, unsigned long num, unsigned long units) in print_k_value() argument 75 temp = num; in print_k_value() 77 num = temp; in print_k_value() 78 ccode = print_num(num); in print_k_value()
|
/tools/testing/selftests/kvm/aarch64/ |
D | vgic_irq.c | 73 uint32_t num; member 80 uint32_t num, int level, bool expect_failure); 86 #define _KVM_INJECT_MULTI(cmd, intid, num, expect_failure) \ argument 87 kvm_inject_call(cmd, intid, num, -1 /* not used */, expect_failure) 89 #define KVM_INJECT_MULTI(cmd, intid, num) \ argument 90 _KVM_INJECT_MULTI(cmd, intid, num, false) 198 uint32_t num, int level, bool expect_failure) in kvm_inject_call() argument 203 .num = num, in kvm_inject_call() 263 uint32_t first_intid, uint32_t num, in guest_inject() argument 271 for (i = first_intid; i < num + first_intid; i++) in guest_inject() [all …]
|
/tools/testing/selftests/bpf/ |
D | json_writer.c | 214 void jsonw_float_fmt(json_writer_t *self, const char *fmt, double num) in jsonw_float_fmt() argument 216 jsonw_printf(self, fmt, num); in jsonw_float_fmt() 220 void jsonw_float(json_writer_t *self, double num) in jsonw_float() argument 222 jsonw_printf(self, "%g", num); in jsonw_float() 226 void jsonw_hu(json_writer_t *self, unsigned short num) in jsonw_hu() argument 228 jsonw_printf(self, "%hu", num); in jsonw_hu() 231 void jsonw_uint(json_writer_t *self, uint64_t num) in jsonw_uint() argument 233 jsonw_printf(self, "%"PRIu64, num); in jsonw_uint() 236 void jsonw_lluint(json_writer_t *self, unsigned long long int num) in jsonw_lluint() argument 238 jsonw_printf(self, "%llu", num); in jsonw_lluint() [all …]
|
/tools/bpf/bpftool/ |
D | json_writer.c | 214 void jsonw_float_fmt(json_writer_t *self, const char *fmt, double num) in jsonw_float_fmt() argument 216 jsonw_printf(self, fmt, num); in jsonw_float_fmt() 220 void jsonw_float(json_writer_t *self, double num) in jsonw_float() argument 222 jsonw_printf(self, "%g", num); in jsonw_float() 226 void jsonw_hu(json_writer_t *self, unsigned short num) in jsonw_hu() argument 228 jsonw_printf(self, "%hu", num); in jsonw_hu() 231 void jsonw_uint(json_writer_t *self, uint64_t num) in jsonw_uint() argument 233 jsonw_printf(self, "%"PRIu64, num); in jsonw_uint() 236 void jsonw_lluint(json_writer_t *self, unsigned long long int num) in jsonw_lluint() argument 238 jsonw_printf(self, "%llu", num); in jsonw_lluint() [all …]
|
D | json_writer.h | 44 void jsonw_float_fmt(json_writer_t *self, const char *fmt, double num); 49 void jsonw_lluint(json_writer_t *self, unsigned long long int num); 54 void jsonw_float_field(json_writer_t *self, const char *prop, double num); 55 void jsonw_uint_field(json_writer_t *self, const char *prop, uint64_t num); 56 void jsonw_hu_field(json_writer_t *self, const char *prop, unsigned short num); 57 void jsonw_int_field(json_writer_t *self, const char *prop, int64_t num); 60 unsigned long long int num);
|
/tools/testing/selftests/kvm/lib/ |
D | guest_sprintf.c | 43 static char *number(char *str, const char *end, long num, int base, int size, in number() argument 65 if (num < 0) { in number() 67 num = -num; in number() 84 if (num == 0) in number() 87 while (num != 0) in number() 88 tmp[i++] = (digits[__do_div(num, base)] | locase); in number() 122 uint64_t num; in guest_vsnprintf() local 287 num = va_arg(args, uint64_t); in guest_vsnprintf() 289 num = (uint16_t)va_arg(args, int); in guest_vsnprintf() 291 num = (int16_t)num; in guest_vsnprintf() [all …]
|
/tools/perf/arch/arm/util/ |
D | dwarf-regs.c | 17 #define REG_DWARFNUM_NAME(r, num) {.name = r, .dwarfnum = num} argument 18 #define GPR_DWARFNUM_NAME(num) \ argument 19 {.name = __stringify(%r##num), .dwarfnum = num}
|