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