Lines Matching defs:profile_obj
2246 static struct profiler_bpf *profile_obj;
2325 profile_close_perf_events(profile_obj);
2326 profile_read_values(profile_obj);
2328 profiler_bpf__destroy(profile_obj);
2379 profile_obj = profiler_bpf__open();
2380 if (!profile_obj) {
2385 profile_obj->rodata->num_cpu = num_cpu;
2386 profile_obj->rodata->num_metric = num_metric;
2389 bpf_map__set_max_entries(profile_obj->maps.events, num_metric * num_cpu);
2390 bpf_map__set_max_entries(profile_obj->maps.fentry_readings, num_metric);
2391 bpf_map__set_max_entries(profile_obj->maps.accum_readings, num_metric);
2392 bpf_map__set_max_entries(profile_obj->maps.counts, 1);
2399 bpf_object__for_each_program(prog, profile_obj->obj) {
2409 err = profiler_bpf__load(profile_obj);
2411 p_err("failed to load profile_obj");
2415 err = profile_open_perf_events(profile_obj);
2419 err = profiler_bpf__attach(profile_obj);
2421 p_err("failed to attach profile_obj");
2431 profile_close_perf_events(profile_obj);
2432 if (profile_obj)
2433 profiler_bpf__destroy(profile_obj);