Lines Matching refs:num_cpu
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()
2396 profile_obj->rodata->num_cpu = num_cpu; in do_profile()
2400 bpf_map__set_max_entries(profile_obj->maps.events, num_metric * num_cpu); in do_profile()