Searched refs:cpu_num (Results 1 – 4 of 4) 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 | 35 int cpu_num; member
|
/tools/power/x86/turbostat/ |
D | turbostat.c | 1855 int cpu_num; in for_all_proc_cpus() local 1865 retval = fscanf(fp, "cpu%u %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d\n", &cpu_num); in for_all_proc_cpus() 1869 retval = func(cpu_num); in for_all_proc_cpus()
|