Lines Matching refs:obj
5 static void test_global_data_number(struct bpf_object *obj, __u32 duration) in test_global_data_number() argument
10 map_fd = bpf_find_map(__func__, obj, "result_number"); in test_global_data_number()
40 static void test_global_data_string(struct bpf_object *obj, __u32 duration) in test_global_data_string() argument
45 map_fd = bpf_find_map(__func__, obj, "result_string"); in test_global_data_string()
75 static void test_global_data_struct(struct bpf_object *obj, __u32 duration) in test_global_data_struct() argument
80 map_fd = bpf_find_map(__func__, obj, "result_struct"); in test_global_data_struct()
103 static void test_global_data_rdonly(struct bpf_object *obj, __u32 duration) in test_global_data_rdonly() argument
109 map = bpf_object__find_map_by_name(obj, "test_glo.rodata"); in test_global_data_rdonly()
116 map2 = bpf_object__find_map_by_name(obj, ".rodata"); in test_global_data_rdonly()
135 struct bpf_object *obj; in test_global_data() local
143 err = bpf_prog_test_load(file, BPF_PROG_TYPE_SCHED_CLS, &obj, &prog_fd); in test_global_data()
151 test_global_data_number(obj, topts.duration); in test_global_data()
152 test_global_data_string(obj, topts.duration); in test_global_data()
153 test_global_data_struct(obj, topts.duration); in test_global_data()
154 test_global_data_rdonly(obj, topts.duration); in test_global_data()
156 bpf_object__close(obj); in test_global_data()