Lines Matching refs:profile_obj
2253 static struct profiler_bpf *profile_obj; variable
2332 profile_close_perf_events(profile_obj); in profile_print_and_cleanup()
2333 profile_read_values(profile_obj); in profile_print_and_cleanup()
2335 profiler_bpf__destroy(profile_obj); in profile_print_and_cleanup()
2386 profile_obj = profiler_bpf__open(); in do_profile()
2387 if (!profile_obj) { in do_profile()
2392 profile_obj->rodata->num_cpu = num_cpu; in do_profile()
2393 profile_obj->rodata->num_metric = num_metric; in do_profile()
2396 bpf_map__set_max_entries(profile_obj->maps.events, num_metric * num_cpu); in do_profile()
2397 bpf_map__set_max_entries(profile_obj->maps.fentry_readings, num_metric); in do_profile()
2398 bpf_map__set_max_entries(profile_obj->maps.accum_readings, num_metric); in do_profile()
2399 bpf_map__set_max_entries(profile_obj->maps.counts, 1); in do_profile()
2406 bpf_object__for_each_program(prog, profile_obj->obj) { in do_profile()
2416 err = profiler_bpf__load(profile_obj); in do_profile()
2422 err = profile_open_perf_events(profile_obj); in do_profile()
2426 err = profiler_bpf__attach(profile_obj); in do_profile()
2438 profile_close_perf_events(profile_obj); in do_profile()
2439 if (profile_obj) in do_profile()
2440 profiler_bpf__destroy(profile_obj); in do_profile()