Lines Matching refs:obj
7 typedef int (*test_cb)(struct bpf_object *obj);
9 static int check_data_map(struct bpf_object *obj, int prog_cnt, bool reset) in check_data_map() argument
21 bpf_object__for_each_map(map, obj) in check_data_map()
60 struct bpf_object *obj = NULL, *tgt_obj; in test_fexit_bpf2bpf_common() local
92 obj = bpf_object__open_file(obj_file, &opts); in test_fexit_bpf2bpf_common()
93 if (!ASSERT_OK_PTR(obj, "obj_open")) in test_fexit_bpf2bpf_common()
96 err = bpf_object__load(obj); in test_fexit_bpf2bpf_common()
110 prog[i] = bpf_object__find_program_by_title(obj, prog_name[i]); in test_fexit_bpf2bpf_common()
131 err = cb(obj); in test_fexit_bpf2bpf_common()
144 if (check_data_map(obj, prog_cnt, false)) in test_fexit_bpf2bpf_common()
150 bpf_object__close(obj); in test_fexit_bpf2bpf_common()
210 static int test_second_attach(struct bpf_object *obj) in test_second_attach() argument
221 prog = bpf_object__find_program_by_title(obj, prog_name); in test_second_attach()
242 err = check_data_map(obj, 1, true); in test_second_attach()
332 struct bpf_object *obj = NULL, *pkt_obj; in test_obj_load_failure_common() local
346 obj = bpf_object__open_file(obj_file, &opts); in test_obj_load_failure_common()
347 if (!ASSERT_OK_PTR(obj, "obj_open")) in test_obj_load_failure_common()
351 err = bpf_object__load(obj); in test_obj_load_failure_common()
356 bpf_object__close(obj); in test_obj_load_failure_common()