Lines Matching refs:profile_obj
2045 static struct profiler_bpf *profile_obj; variable
2102 profile_close_perf_events(profile_obj); in profile_print_and_cleanup()
2103 profile_read_values(profile_obj); in profile_print_and_cleanup()
2105 profiler_bpf__destroy(profile_obj); in profile_print_and_cleanup()
2156 profile_obj = profiler_bpf__open(); in do_profile()
2157 if (!profile_obj) { in do_profile()
2162 profile_obj->rodata->num_cpu = num_cpu; in do_profile()
2163 profile_obj->rodata->num_metric = num_metric; in do_profile()
2166 bpf_map__resize(profile_obj->maps.events, num_metric * num_cpu); in do_profile()
2167 bpf_map__resize(profile_obj->maps.fentry_readings, num_metric); in do_profile()
2168 bpf_map__resize(profile_obj->maps.accum_readings, num_metric); in do_profile()
2169 bpf_map__resize(profile_obj->maps.counts, 1); in do_profile()
2176 bpf_object__for_each_program(prog, profile_obj->obj) { in do_profile()
2186 err = profiler_bpf__load(profile_obj); in do_profile()
2192 err = profile_open_perf_events(profile_obj); in do_profile()
2196 err = profiler_bpf__attach(profile_obj); in do_profile()
2208 profile_close_perf_events(profile_obj); in do_profile()
2209 if (profile_obj) in do_profile()
2210 profiler_bpf__destroy(profile_obj); in do_profile()