Searched refs:num_cpu (Results 1 - 12 of 12) sorted by relevance

/linux-master/samples/bpf/
H A Dtest_overhead_user.c174 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 Dprofiler.bpf.c13 /* 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 Dcs-etm-base.c169 int num_cpu; local
188 num_cpu = ptr[CS_PMU_TYPE_CPUS] & 0xffffffff;
189 cs_etm__print_auxtrace_info(ptr, num_cpu);
H A Dcs-etm.c71 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 Dbpf_counter.c128 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 Dcs-etm-decoder.h95 cs_etm_decoder__new(int num_cpu,
/linux-master/tools/perf/util/bpf_skel/
H A Dbpf_prog_profiler.bpf.c7 /* 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 Dprog.c2090 __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 Dkfd_topology.c1336 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 Dvirtio_net.c2868 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 Dibmvnic.c258 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 Dlibbpf.c10318 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);

Completed in 595 milliseconds