Lines Matching refs:profile_obj
2152 static struct profiler_bpf *profile_obj; variable
2209 profile_close_perf_events(profile_obj); in profile_print_and_cleanup()
2210 profile_read_values(profile_obj); in profile_print_and_cleanup()
2212 profiler_bpf__destroy(profile_obj); in profile_print_and_cleanup()
2263 profile_obj = profiler_bpf__open(); in do_profile()
2264 if (!profile_obj) { in do_profile()
2269 profile_obj->rodata->num_cpu = num_cpu; in do_profile()
2270 profile_obj->rodata->num_metric = num_metric; in do_profile()
2273 bpf_map__set_max_entries(profile_obj->maps.events, num_metric * num_cpu); in do_profile()
2274 bpf_map__set_max_entries(profile_obj->maps.fentry_readings, num_metric); in do_profile()
2275 bpf_map__set_max_entries(profile_obj->maps.accum_readings, num_metric); in do_profile()
2276 bpf_map__set_max_entries(profile_obj->maps.counts, 1); in do_profile()
2283 bpf_object__for_each_program(prog, profile_obj->obj) { in do_profile()
2293 err = profiler_bpf__load(profile_obj); in do_profile()
2299 err = profile_open_perf_events(profile_obj); in do_profile()
2303 err = profiler_bpf__attach(profile_obj); in do_profile()
2315 profile_close_perf_events(profile_obj); in do_profile()
2316 if (profile_obj) in do_profile()
2317 profiler_bpf__destroy(profile_obj); in do_profile()