Lines Matching refs:perf_obj
107 #define bpf_perf_object__for_each(perf_obj, tmp) \ argument
108 for ((perf_obj) = bpf_perf_object__next(NULL), \
109 (tmp) = bpf_perf_object__next(perf_obj); \
110 (perf_obj) != NULL; \
111 (perf_obj) = (tmp), (tmp) = bpf_perf_object__next(tmp))
118 struct bpf_perf_object *perf_obj = zalloc(sizeof(*perf_obj)); in bpf_perf_object__add() local
120 if (perf_obj) { in bpf_perf_object__add()
121 INIT_LIST_HEAD(&perf_obj->list); in bpf_perf_object__add()
122 perf_obj->obj = obj; in bpf_perf_object__add()
123 list_add_tail(&perf_obj->list, &bpf_objects_list); in bpf_perf_object__add()
125 return perf_obj ? 0 : -ENOMEM; in bpf_perf_object__add()
227 static void bpf_perf_object__close(struct bpf_perf_object *perf_obj) in bpf_perf_object__close() argument
229 list_del(&perf_obj->list); in bpf_perf_object__close()
230 bpf_object__close(perf_obj->obj); in bpf_perf_object__close()
231 free(perf_obj); in bpf_perf_object__close()
331 struct bpf_perf_object *perf_obj, *tmp; in bpf__clear() local
333 bpf_perf_object__for_each(perf_obj, tmp) { in bpf__clear()
334 bpf__unprobe(perf_obj->obj); in bpf__clear()
335 bpf_perf_object__close(perf_obj); in bpf__clear()
1850 struct bpf_perf_object *perf_obj, *tmp; in bpf__apply_obj_config() local
1853 bpf_perf_object__for_each(perf_obj, tmp) { in bpf__apply_obj_config()
1854 err = apply_obj_config_object(perf_obj->obj); in bpf__apply_obj_config()
1873 struct bpf_perf_object *perf_obj, *tmp; in bpf__setup_output_event() local
1879 bpf__perf_for_each_map_named(map, perf_obj, tmp, name) { in bpf__setup_output_event()
1915 bpf__perf_for_each_map_named(map, perf_obj, tmp, name) { in bpf__setup_output_event()