Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 159) sorted by relevance

1234567

/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c79 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 …]
Dhsw_ext_idle.c115 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 …]
Dsnb_idle.c113 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 …]
Dnhm_idle.c128 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 …]
Dcpupower-monitor.c222 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 …]
Damd_fam14h_idle.c230 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/
Dstat+shadow_stat.sh15 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.h16 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.h15 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/
Darch-aarch64.h28 #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 …]
Darch-riscv.h27 #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 …]
Darch-i386.h31 #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 …]
Darch-x86_64.h32 #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 …]
Darch-loongarch.h29 #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 …]
Darch-mips.h37 #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 …]
Darch-powerpc.h28 #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 …]
Darch-arm.h53 #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 …]
Darch-s390.h26 #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/
Dget_size.c45 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/
Dvgic_irq.c73 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/
Djson_writer.c214 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/
Djson_writer.c214 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 …]
Djson_writer.h44 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/
Dguest_sprintf.c43 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/
Ddwarf-regs.c17 #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}

1234567