Lines Matching defs:profile_obj
1898 static struct profiler_bpf *profile_obj;
1977 profile_close_perf_events(profile_obj);
1978 profile_read_values(profile_obj);
1980 profiler_bpf__destroy(profile_obj);
2031 profile_obj = profiler_bpf__open();
2032 if (!profile_obj) {
2037 profile_obj->rodata->num_cpu = num_cpu;
2038 profile_obj->rodata->num_metric = num_metric;
2041 bpf_map__resize(profile_obj->maps.events, num_metric * num_cpu);
2042 bpf_map__resize(profile_obj->maps.fentry_readings, num_metric);
2043 bpf_map__resize(profile_obj->maps.accum_readings, num_metric);
2044 bpf_map__resize(profile_obj->maps.counts, 1);
2051 bpf_object__for_each_program(prog, profile_obj->obj) {
2061 err = profiler_bpf__load(profile_obj);
2063 p_err("failed to load profile_obj");
2067 err = profile_open_perf_events(profile_obj);
2071 err = profiler_bpf__attach(profile_obj);
2073 p_err("failed to attach profile_obj");
2083 profile_close_perf_events(profile_obj);
2084 if (profile_obj)
2085 profiler_bpf__destroy(profile_obj);