Home
last modified time | relevance | path

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

123456

/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.h65 #define my_syscall0(num) \ argument
67 register long _num asm("x8") = (num); \
79 #define my_syscall1(num, arg1) \ argument
81 register long _num asm("x8") = (num); \
94 #define my_syscall2(num, arg1, arg2) \ argument
96 register long _num asm("x8") = (num); \
110 #define my_syscall3(num, arg1, arg2, arg3) \ argument
112 register long _num asm("x8") = (num); \
127 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument
129 register long _num asm("x8") = (num); \
[all …]
Darch-x86_64.h68 #define my_syscall0(num) \ argument
71 register long _num asm("rax") = (num); \
82 #define my_syscall1(num, arg1) \ argument
85 register long _num asm("rax") = (num); \
98 #define my_syscall2(num, arg1, arg2) \ argument
101 register long _num asm("rax") = (num); \
115 #define my_syscall3(num, arg1, arg2, arg3) \ argument
118 register long _num asm("rax") = (num); \
133 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument
136 register long _num asm("rax") = (num); \
[all …]
Darch-riscv.h67 #define my_syscall0(num) \ argument
69 register long _num asm("a7") = (num); \
81 #define my_syscall1(num, arg1) \ argument
83 register long _num asm("a7") = (num); \
95 #define my_syscall2(num, arg1, arg2) \ argument
97 register long _num asm("a7") = (num); \
111 #define my_syscall3(num, arg1, arg2, arg3) \ argument
113 register long _num asm("a7") = (num); \
128 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument
130 register long _num asm("a7") = (num); \
[all …]
Darch-arm.h78 #define my_syscall0(num) \ argument
80 register long _num asm("r7") = (num); \
92 #define my_syscall1(num, arg1) \ argument
94 register long _num asm("r7") = (num); \
107 #define my_syscall2(num, arg1, arg2) \ argument
109 register long _num asm("r7") = (num); \
123 #define my_syscall3(num, arg1, arg2, arg3) \ argument
125 register long _num asm("r7") = (num); \
140 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument
142 register long _num asm("r7") = (num); \
[all …]
Darch-i386.h66 #define my_syscall0(num) \ argument
69 register long _num asm("eax") = (num); \
80 #define my_syscall1(num, arg1) \ argument
83 register long _num asm("eax") = (num); \
96 #define my_syscall2(num, arg1, arg2) \ argument
99 register long _num asm("eax") = (num); \
113 #define my_syscall3(num, arg1, arg2, arg3) \ argument
116 register long _num asm("eax") = (num); \
131 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument
134 register long _num asm("eax") = (num); \
[all …]
Darch-mips.h70 #define my_syscall0(num) \ argument
72 register long _num asm("v0") = (num); \
87 #define my_syscall1(num, arg1) \ argument
89 register long _num asm("v0") = (num); \
106 #define my_syscall2(num, arg1, arg2) \ argument
108 register long _num asm("v0") = (num); \
126 #define my_syscall3(num, arg1, arg2, arg3) \ argument
128 register long _num asm("v0") = (num); \
147 #define my_syscall4(num, arg1, arg2, arg3, arg4) \ argument
149 register long _num asm("v0") = (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/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.h43 void jsonw_float_fmt(json_writer_t *self, const char *fmt, double num);
48 void jsonw_lluint(json_writer_t *self, unsigned long long int num);
53 void jsonw_float_field(json_writer_t *self, const char *prop, double num);
54 void jsonw_uint_field(json_writer_t *self, const char *prop, uint64_t num);
55 void jsonw_hu_field(json_writer_t *self, const char *prop, unsigned short num);
56 void jsonw_int_field(json_writer_t *self, const char *prop, int64_t num);
59 unsigned long long int num);
/tools/perf/tests/
Dpmu.c30 .val.num = 15,
36 .val.num = 170,
42 .val.num = 1,
48 .val.num = 27,
54 .val.num = 1,
60 .val.num = 2,
66 .val.num = 119,
72 .val.num = 11,
78 .val.num = 2,
Dtime-utils-test.c65 int num; member
95 if (range_size < d->num || range_num != d->num) { in test__perf_time__parse_for_ranges()
97 range_size, range_num, d->num); in test__perf_time__parse_for_ranges()
101 for (i = 0; i < d->num; i++) { in test__perf_time__parse_for_ranges()
110 if (perf_time__ranges_skip_sample(ptime, d->num, 0)) { in test__perf_time__parse_for_ranges()
117 !perf_time__ranges_skip_sample(ptime, d->num, d->skip[i])) { in test__perf_time__parse_for_ranges()
122 perf_time__ranges_skip_sample(ptime, d->num, d->noskip[i])) { in test__perf_time__parse_for_ranges()
163 .num = 1, in test__time_utils()
180 .num = 3, in test__time_utils()
195 .num = 1, in test__time_utils()
[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}
/tools/perf/util/
Dpmu.l11 long num; in value() local
14 num = strtoul(perf_pmu_text, NULL, base); in value()
18 perf_pmu_lval.num = num; in value()
Dtime-utils.c125 int i, num = 0, rc = 0; in perf_time__parse_strs() local
129 num += !!(*cp == ','); in perf_time__parse_strs()
131 if (!num) in perf_time__parse_strs()
134 BUG_ON(num > size); in perf_time__parse_strs()
141 for (i = 0, p = str; i < num - 1; i++) { in perf_time__parse_strs()
166 for (i = 0; i < num - 1; i++) { in perf_time__parse_strs()
173 rc = num; in perf_time__parse_strs()
282 static int percent_comma_split(struct perf_time_interval *ptime_buf, int num, in percent_comma_split() argument
297 if (i >= num) { in percent_comma_split()
358 int perf_time__percent_parse_str(struct perf_time_interval *ptime_buf, int num, in perf_time__percent_parse_str() argument
[all …]
/tools/testing/selftests/bpf/
Dtesting_helpers.c9 int i, set_len = 0, new_len, num, start = 0, end = -1; in parse_num_list() local
15 num = strtol(s, &next, 10); in parse_num_list()
20 end = num; in parse_num_list()
22 start = num; in parse_num_list()
31 end = num; in parse_num_list()
35 end = num; in parse_num_list()
/tools/perf/arch/powerpc/util/
Ddwarf-regs.c22 #define REG_DWARFNUM_NAME(r, num) \ argument
23 {.name = __stringify(%)__stringify(r), .dwarfnum = num, \
25 #define GPR_DWARFNUM_NAME(num) \ argument
26 {.name = __stringify(%gpr##num), .dwarfnum = num, \
27 .ptregs_offset = offsetof(struct pt_regs, gpr[num])}

123456