/linux-6.12.1/samples/bpf/ |
D | test_overhead_user.c | 174 int num_cpu = sysconf(_SC_NPROCESSORS_ONLN); in main() local 183 num_cpu = atoi(argv[2]) ? : num_cpu; in main() 187 run_perf_test(num_cpu, test_flags); in main() 197 run_perf_test(num_cpu, test_flags >> 2); in main() 208 run_perf_test(num_cpu, test_flags >> 4); in main() 219 run_perf_test(num_cpu, test_flags >> 6); in main()
|
/linux-6.12.1/tools/bpf/bpftool/skeleton/ |
D | profiler.bpf.c | 41 const volatile __u32 num_cpu = 1; variable 70 key += num_cpu; in BPF_PROG() 110 err = bpf_perf_event_read_value(&events, cpu + i * num_cpu, in BPF_PROG()
|
/linux-6.12.1/tools/perf/util/ |
D | cs-etm-base.c | 169 int num_cpu; in cs_etm__process_auxtrace_info() local 188 num_cpu = ptr[CS_PMU_TYPE_CPUS] & 0xffffffff; in cs_etm__process_auxtrace_info() 189 cs_etm__print_auxtrace_info(ptr, num_cpu); in cs_etm__process_auxtrace_info()
|
D | cs-etm.c | 71 int num_cpu; member 453 for (i = 0; i < etm->num_cpu; i++) { in get_cpu_data_idx() 1006 for (i = 0; i < aux->num_cpu; i++) in cs_etm__free() 3200 static bool cs_etm__has_virtual_ts(u64 **metadata, int num_cpu) in cs_etm__has_virtual_ts() argument 3204 for (j = 0; j < num_cpu; j++) { in cs_etm__has_virtual_ts() 3223 static int cs_etm__map_trace_ids_metadata(struct cs_etm_auxtrace *etm, int num_cpu, in cs_etm__map_trace_ids_metadata() argument 3230 for (i = 0; i < num_cpu; i++) { in cs_etm__map_trace_ids_metadata() 3346 int num_cpu, max_cpu = 0; in cs_etm__process_auxtrace_info_full() local 3355 num_cpu = ptr[CS_PMU_TYPE_CPUS] & 0xffffffff; in cs_etm__process_auxtrace_info_full() 3356 metadata = zalloc(sizeof(*metadata) * num_cpu); in cs_etm__process_auxtrace_info_full() [all …]
|
D | bpf_counter.c | 128 skel->rodata->num_cpu = evsel__nr_cpus(evsel); in bpf_program_profiler_load_one() 591 int num_cpu, i, cpu; in bperf_sync_counters() local 593 num_cpu = perf_cpu_map__nr(all_cpu_map); in bperf_sync_counters() 594 for (i = 0; i < num_cpu; i++) { in bperf_sync_counters()
|
/linux-6.12.1/tools/bpf/bpftool/ |
D | prog.c | 2097 __u32 m, cpu, num_cpu = obj->rodata->num_cpu; in profile_read_values() local 2099 __u64 counts[num_cpu]; in profile_read_values() 2117 for (cpu = 0; cpu < num_cpu; cpu++) in profile_read_values() 2121 struct bpf_perf_event_value values[num_cpu]; in profile_read_values() 2132 for (cpu = 0; cpu < num_cpu; cpu++) { in profile_read_values() 2308 obj->rodata->num_cpu * obj->rodata->num_metric, sizeof(int)); in profile_open_perf_events() 2323 for (cpu = 0; cpu < obj->rodata->num_cpu; cpu++) { in profile_open_perf_events() 2353 int num_metric, num_cpu, err = -1; in do_profile() local 2384 num_cpu = libbpf_num_possible_cpus(); in do_profile() 2385 if (num_cpu <= 0) { in do_profile() [all …]
|
/linux-6.12.1/tools/perf/util/cs-etm-decoder/ |
D | cs-etm-decoder.h | 95 cs_etm_decoder__new(int num_cpu,
|
/linux-6.12.1/tools/perf/util/bpf_skel/ |
D | bpf_prog_profiler.bpf.c | 30 const volatile __u32 num_cpu = 1; variable
|
/linux-6.12.1/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_topology.c | 1414 int i, num_cpu; in kfd_create_indirect_link_prop() local 1416 num_cpu = 0; in kfd_create_indirect_link_prop() 1420 num_cpu++; in kfd_create_indirect_link_prop() 1429 for (i = 0; i < num_cpu; i++) { in kfd_create_indirect_link_prop()
|
/linux-6.12.1/drivers/net/ethernet/ibm/ |
D | ibmvnic.c | 259 unsigned int num_cpu, cpu; in ibmvnic_set_affinity() local 272 num_cpu = num_online_cpus(); in ibmvnic_set_affinity() 274 stride = max_t(int, num_cpu / total_queues, 1); in ibmvnic_set_affinity() 276 stragglers = num_cpu >= total_queues ? num_cpu % total_queues : 0; in ibmvnic_set_affinity()
|
/linux-6.12.1/drivers/net/ |
D | virtio_net.c | 3657 int num_cpu; in virtnet_set_affinity() local 3665 num_cpu = num_online_cpus(); in virtnet_set_affinity() 3666 stride = max_t(int, num_cpu / vi->curr_queue_pairs, 1); in virtnet_set_affinity() 3667 stragglers = num_cpu >= vi->curr_queue_pairs ? in virtnet_set_affinity() 3668 num_cpu % vi->curr_queue_pairs : in virtnet_set_affinity()
|
/linux-6.12.1/tools/lib/bpf/ |
D | libbpf.c | 10464 int num_cpu = libbpf_num_possible_cpus(); in validate_map_op() local 10467 if (value_sz != num_cpu * elem_sz) { in validate_map_op() 10469 map->name, value_sz, num_cpu, elem_sz, num_cpu * elem_sz); in validate_map_op()
|