Home
last modified time | relevance | path

Searched refs:num_cpu (Results 1 – 11 of 11) sorted by relevance

/linux/tools/bpf/bpftool/skeleton/
H A Dprofiler.bpf.c41 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/tools/perf/util/
H A Dcs-etm-base.c169 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()
H A Dcs-etm.c71 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()
3211 static bool cs_etm__has_virtual_ts(u64 **metadata, int num_cpu) in cs_etm__has_virtual_ts() argument
3215 for (j = 0; j < num_cpu; j++) { in cs_etm__has_virtual_ts()
3234 static int cs_etm__map_trace_ids_metadata(struct cs_etm_auxtrace *etm, int num_cpu, in cs_etm__map_trace_ids_metadata() argument
3241 for (i = 0; i < num_cpu; i++) { in cs_etm__map_trace_ids_metadata()
3357 int num_cpu, max_cpu = 0; in cs_etm__process_auxtrace_info_full() local
3366 num_cpu = ptr[CS_PMU_TYPE_CPUS] & 0xffffffff; in cs_etm__process_auxtrace_info_full()
3367 metadata = zalloc(sizeof(*metadata) * num_cpu); in cs_etm__process_auxtrace_info_full()
[all …]
H A Dbpf_counter.c128 skel->rodata->num_cpu = evsel__nr_cpus(evsel); in bpf_program_profiler_load_one()
612 int num_cpu, i, cpu;
614 num_cpu = perf_cpu_map__nr(all_cpu_map); in bperf__read()
615 for (i = 0; i < num_cpu; i++) { in bperf__read()
591 int num_cpu, i, cpu; bperf_sync_counters() local
/linux/tools/bpf/bpftool/
H A Dprog.c2104 __u32 m, cpu, num_cpu = obj->rodata->num_cpu; in profile_read_values()
2106 __u64 counts[num_cpu]; in profile_read_values()
2124 for (cpu = 0; cpu < num_cpu; cpu++) in profile_read_values()
2128 struct bpf_perf_event_value values[num_cpu]; in profile_read_values()
2139 for (cpu = 0; cpu < num_cpu; cpu++) { in profile_read_values()
2315 obj->rodata->num_cpu * obj->rodata->num_metric, sizeof(int)); in profile_open_perf_events()
2330 for (cpu = 0; cpu < obj->rodata->num_cpu; cpu++) { in profile_open_perf_events()
2360 int num_metric, num_cpu, err = -1; in do_profile()
2391 num_cpu in do_profile()
2097 __u32 m, cpu, num_cpu = obj->rodata->num_cpu; profile_read_values() local
2353 int num_metric, num_cpu, err = -1; do_profile() local
[all...]
/linux/tools/perf/util/cs-etm-decoder/
H A Dcs-etm-decoder.h95 cs_etm_decoder__new(int num_cpu,
/linux/tools/perf/util/bpf_skel/
H A Dbpf_prog_profiler.bpf.c30 const volatile __u32 num_cpu = 1; variable
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_topology.c1414 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/drivers/net/ethernet/ibm/
H A Dibmvnic.c259 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/drivers/net/
H A Dvirtio_net.c3830 int num_cpu; in virtnet_set_affinity() local
3838 num_cpu = num_online_cpus(); in virtnet_set_affinity()
3839 stride = max_t(int, num_cpu / vi->curr_queue_pairs, 1); in virtnet_set_affinity()
3840 stragglers = num_cpu >= vi->curr_queue_pairs ? in virtnet_set_affinity()
3841 num_cpu % vi->curr_queue_pairs : in virtnet_set_affinity()
/linux/tools/lib/bpf/
H A Dlibbpf.c10511 int num_cpu = libbpf_num_possible_cpus(); in validate_map_op() local
10514 if (value_sz != num_cpu * elem_sz) { in validate_map_op()
10516 map->name, value_sz, num_cpu, elem_sz, num_cpu * elem_sz); in validate_map_op()