/linux-master/samples/bpf/ |
H A D | test_overhead_user.c | 174 int num_cpu = sysconf(_SC_NPROCESSORS_ONLN); local 183 num_cpu = atoi(argv[2]) ? : num_cpu; 187 run_perf_test(num_cpu, test_flags); 197 run_perf_test(num_cpu, test_flags >> 2); 208 run_perf_test(num_cpu, test_flags >> 4); 219 run_perf_test(num_cpu, test_flags >> 6);
|
/linux-master/tools/bpf/bpftool/skeleton/ |
H A D | profiler.bpf.c | 13 /* map of perf event fds, num_cpu * num_metric entries */ 41 const volatile __u32 num_cpu = 1; variable 70 key += num_cpu; 110 err = bpf_perf_event_read_value(&events, cpu + i * num_cpu,
|
/linux-master/tools/perf/util/ |
H A D | cs-etm-base.c | 169 int num_cpu; local 188 num_cpu = ptr[CS_PMU_TYPE_CPUS] & 0xffffffff; 189 cs_etm__print_auxtrace_info(ptr, num_cpu);
|
H A D | cs-etm.c | 71 int num_cpu; member in struct:cs_etm_auxtrace 293 for (i = 0; i < etm->num_cpu; i++) { 892 for (i = 0; i < aux->num_cpu; i++) 1051 int decoders = formatted ? etm->num_cpu : 1; 3152 static bool cs_etm__has_virtual_ts(u64 **metadata, int num_cpu) argument 3156 for (j = 0; j < num_cpu; j++) { 3175 static int cs_etm__map_trace_ids_metadata(int num_cpu, u64 **metadata) argument 3181 for (i = 0; i < num_cpu; i++) { 3208 static int cs_etm__clear_unused_trace_ids_metadata(int num_cpu, u64 **metadata) argument 3213 for (i = 0; i < num_cpu; 3242 int num_cpu; local [all...] |
H A D | bpf_counter.c | 128 skel->rodata->num_cpu = evsel__nr_cpus(evsel); 591 int num_cpu, i, cpu; local 593 num_cpu = perf_cpu_map__nr(all_cpu_map); 594 for (i = 0; i < num_cpu; i++) {
|
/linux-master/tools/perf/util/cs-etm-decoder/ |
H A D | cs-etm-decoder.h | 95 cs_etm_decoder__new(int num_cpu,
|
/linux-master/tools/perf/util/bpf_skel/ |
H A D | bpf_prog_profiler.bpf.c | 7 /* map of perf event fds, num_cpu * num_metric entries */ 30 const volatile __u32 num_cpu = 1; variable
|
/linux-master/tools/bpf/bpftool/ |
H A D | prog.c | 2090 __u32 m, cpu, num_cpu = obj->rodata->num_cpu; local 2092 __u64 counts[num_cpu]; 2110 for (cpu = 0; cpu < num_cpu; cpu++) 2114 struct bpf_perf_event_value values[num_cpu]; 2125 for (cpu = 0; cpu < num_cpu; cpu++) { 2301 obj->rodata->num_cpu * obj->rodata->num_metric, sizeof(int)); 2316 for (cpu = 0; cpu < obj->rodata->num_cpu; cpu++) { 2346 int num_metric, num_cpu, err = -1; local 2377 num_cpu [all...] |
/linux-master/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_topology.c | 1336 int i, num_cpu; local 1338 num_cpu = 0; 1342 num_cpu++; 1351 for (i = 0; i < num_cpu; i++) {
|
/linux-master/drivers/net/ |
H A D | virtio_net.c | 2868 int num_cpu; local 2876 num_cpu = num_online_cpus(); 2877 stride = max_t(int, num_cpu / vi->curr_queue_pairs, 1); 2878 stragglers = num_cpu >= vi->curr_queue_pairs ? 2879 num_cpu % vi->curr_queue_pairs :
|
/linux-master/drivers/net/ethernet/ibm/ |
H A D | ibmvnic.c | 258 unsigned int num_cpu, cpu; local 271 num_cpu = num_online_cpus(); 273 stride = max_t(int, num_cpu / total_queues, 1); 275 stragglers = num_cpu >= total_queues ? num_cpu % total_queues : 0;
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf.c | 10318 int num_cpu = libbpf_num_possible_cpus(); local 10321 if (value_sz != num_cpu * elem_sz) { 10323 map->name, value_sz, num_cpu, elem_sz, num_cpu * elem_sz);
|