Searched refs:cpu_num (Results 1 – 5 of 5) sorted by relevance
/tools/virtio/virtio-trace/ |
D | trace-agent-rw.c | 32 rw_ti->cpu_num = -1; in rw_thread_info_new() 48 rw_ti->cpu_num = cpu; in rw_thread_init() 94 static void bind_cpu(int cpu_num) in bind_cpu() argument 99 CPU_SET(cpu_num, &mask); in bind_cpu() 103 pr_err("Could not set CPU#%d affinity\n", (int)cpu_num); in bind_cpu() 112 bind_cpu(ts->cpu_num); in rw_thread_main() 133 pr_err("Splice_read in rw-thread(%d)\n", ts->cpu_num); in rw_thread_main() 143 pr_debug("Read retry(cpu:%d)\n", ts->cpu_num); in rw_thread_main() 156 ts->cpu_num); in rw_thread_main() 187 pr_err("Could not create a rw thread(%d)\n", rw_ti->cpu_num); in rw_thread_run()
|
D | trace-agent.c | 111 static const char *make_path(int cpu_num, bool this_is_write_path) in make_path() argument 124 ret = snprintf(buf, PATH_MAX, WRITE_PATH_FMT, cpu_num); in make_path() 127 ret = snprintf(buf, PATH_MAX, READ_PATH_FMT, cpu_num); in make_path() 131 this_is_write_path ? "read" : "write", cpu_num, ret); in make_path() 142 static const char *make_input_path(int cpu_num) in make_input_path() argument 144 return make_path(cpu_num, false); in make_input_path() 147 static const char *make_output_path(int cpu_num) in make_output_path() argument 149 return make_path(cpu_num, true); in make_output_path()
|
D | trace-agent.h | 36 int cpu_num; member
|
/tools/power/x86/x86_energy_perf_policy/ |
D | x86_energy_perf_policy.c | 1153 int cpu_num; in for_all_proc_cpus() local 1163 retval = fscanf(fp, "cpu%u %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d\n", &cpu_num); in for_all_proc_cpus() 1167 retval = func(cpu_num); in for_all_proc_cpus() 1179 int cpu_num; in for_all_cpus_in_set() local 1181 for (cpu_num = 0; cpu_num <= max_cpu_num; ++cpu_num) in for_all_cpus_in_set() 1182 if (CPU_ISSET_S(cpu_num, set_size, cpu_set)) in for_all_cpus_in_set() 1183 func(cpu_num); in for_all_cpus_in_set()
|
/tools/power/x86/turbostat/ |
D | turbostat.c | 2379 int cpu_num; in for_all_proc_cpus() local 2389 retval = fscanf(fp, "cpu%u %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d\n", &cpu_num); in for_all_proc_cpus() 2393 retval = func(cpu_num); in for_all_proc_cpus()
|