Lines Matching refs:profile_obj
2057 static struct profiler_bpf *profile_obj; variable
2114 profile_close_perf_events(profile_obj); in profile_print_and_cleanup()
2115 profile_read_values(profile_obj); in profile_print_and_cleanup()
2117 profiler_bpf__destroy(profile_obj); in profile_print_and_cleanup()
2168 profile_obj = profiler_bpf__open(); in do_profile()
2169 if (!profile_obj) { in do_profile()
2174 profile_obj->rodata->num_cpu = num_cpu; in do_profile()
2175 profile_obj->rodata->num_metric = num_metric; in do_profile()
2178 bpf_map__resize(profile_obj->maps.events, num_metric * num_cpu); in do_profile()
2179 bpf_map__resize(profile_obj->maps.fentry_readings, num_metric); in do_profile()
2180 bpf_map__resize(profile_obj->maps.accum_readings, num_metric); in do_profile()
2181 bpf_map__resize(profile_obj->maps.counts, 1); in do_profile()
2188 bpf_object__for_each_program(prog, profile_obj->obj) { in do_profile()
2198 err = profiler_bpf__load(profile_obj); in do_profile()
2204 err = profile_open_perf_events(profile_obj); in do_profile()
2208 err = profiler_bpf__attach(profile_obj); in do_profile()
2220 profile_close_perf_events(profile_obj); in do_profile()
2221 if (profile_obj) in do_profile()
2222 profiler_bpf__destroy(profile_obj); in do_profile()