Home
last modified time | relevance | path

Searched defs:obj (Results 1 – 25 of 95) sorted by relevance

1234

/tools/testing/selftests/livepatch/test_modules/
Dtest_klp_callbacks_demo2.c21 static void callback_info(const char *callback, struct klp_object *obj) in callback_info()
31 static int pre_patch_callback(struct klp_object *obj) in pre_patch_callback()
38 static void post_patch_callback(struct klp_object *obj) in post_patch_callback()
44 static void pre_unpatch_callback(struct klp_object *obj) in pre_unpatch_callback()
50 static void post_unpatch_callback(struct klp_object *obj) in post_unpatch_callback()
Dtest_klp_callbacks_demo.c21 static void callback_info(const char *callback, struct klp_object *obj) in callback_info()
31 static int pre_patch_callback(struct klp_object *obj) in pre_patch_callback()
38 static void post_patch_callback(struct klp_object *obj) in post_patch_callback()
44 static void pre_unpatch_callback(struct klp_object *obj) in pre_unpatch_callback()
50 static void post_unpatch_callback(struct klp_object *obj) in post_unpatch_callback()
Dtest_klp_state.c23 static void callback_info(const char *callback, struct klp_object *obj) in callback_info()
90 static int pre_patch_callback(struct klp_object *obj) in pre_patch_callback()
97 static void post_patch_callback(struct klp_object *obj) in post_patch_callback()
104 static void pre_unpatch_callback(struct klp_object *obj) in pre_unpatch_callback()
111 static void post_unpatch_callback(struct klp_object *obj) in post_unpatch_callback()
Dtest_klp_state2.c23 static void callback_info(const char *callback, struct klp_object *obj) in callback_info()
119 static int pre_patch_callback(struct klp_object *obj) in pre_patch_callback()
126 static void post_patch_callback(struct klp_object *obj) in post_patch_callback()
133 static void pre_unpatch_callback(struct klp_object *obj) in pre_unpatch_callback()
140 static void post_unpatch_callback(struct klp_object *obj) in post_unpatch_callback()
Dtest_klp_shadow_vars.c61 static void *shadow_get(void *obj, unsigned long id) in shadow_get()
72 static void *shadow_alloc(void *obj, unsigned long id, size_t size, in shadow_alloc()
87 static void *shadow_get_or_alloc(void *obj, unsigned long id, size_t size, in shadow_get_or_alloc()
102 static void shadow_free(void *obj, unsigned long id, klp_shadow_dtor_t dtor) in shadow_free()
117 static int shadow_ctor(void *obj, void *shadow_data, void *ctor_data) in shadow_ctor()
136 static void shadow_dtor(void *obj, void *shadow_data) in shadow_dtor()
/tools/testing/selftests/bpf/prog_tests/
Dcgroup_getset_retval.c21 struct cgroup_getset_retval_setsockopt *obj; in test_setsockopt_set() local
57 struct cgroup_getset_retval_setsockopt *obj; in test_setsockopt_set_and_get() local
100 struct cgroup_getset_retval_setsockopt *obj; in test_setsockopt_default_zero() local
136 struct cgroup_getset_retval_setsockopt *obj; in test_setsockopt_default_zero_and_set() local
180 struct cgroup_getset_retval_setsockopt *obj; in test_setsockopt_override() local
230 struct cgroup_getset_retval_setsockopt *obj; in test_setsockopt_legacy_eperm() local
275 struct cgroup_getset_retval_setsockopt *obj; in test_setsockopt_legacy_no_override() local
327 struct cgroup_getset_retval_getsockopt *obj; in test_getsockopt_get() local
369 struct cgroup_getset_retval_getsockopt *obj; in test_getsockopt_override() local
407 struct cgroup_getset_retval_getsockopt *obj; in test_getsockopt_retval_sync() local
Dxdp_adjust_tail.c9 struct bpf_object *obj; in test_xdp_adjust_tail_shrink() local
43 struct bpf_object *obj; in test_xdp_adjust_tail_grow() local
79 struct bpf_object *obj; in test_xdp_adjust_tail_grow2() local
147 struct bpf_object *obj; in test_xdp_adjust_frags_tail_shrink() local
214 struct bpf_object *obj; in test_xdp_adjust_frags_tail_grow() local
Dglobal_data.c5 static void test_global_data_number(struct bpf_object *obj, __u32 duration) in test_global_data_number()
40 static void test_global_data_string(struct bpf_object *obj, __u32 duration) in test_global_data_string()
75 static void test_global_data_struct(struct bpf_object *obj, __u32 duration) in test_global_data_struct()
103 static void test_global_data_rdonly(struct bpf_object *obj, __u32 duration) in test_global_data_rdonly()
135 struct bpf_object *obj; in test_global_data() local
Dsockopt_multi.c7 static int run_getsockopt_test(struct sockopt_multi *obj, int cg_parent, in run_getsockopt_test()
158 static int run_setsockopt_test(struct sockopt_multi *obj, int cg_parent, in run_setsockopt_test()
256 struct sockopt_multi *obj = NULL; in test_sockopt_multi() local
Dtailcalls.c20 struct bpf_object *obj; in test_tailcall_1() local
156 struct bpf_object *obj; in test_tailcall_2() local
230 struct bpf_object *obj = NULL, *fentry_obj = NULL, *fexit_obj = NULL; in test_tailcall_count() local
416 struct bpf_object *obj; in test_tailcall_4() local
506 struct bpf_object *obj; in test_tailcall_5() local
596 struct bpf_object *obj; in test_tailcall_bpf2bpf_1() local
680 struct bpf_object *obj; in test_tailcall_bpf2bpf_2() local
760 struct bpf_object *obj; in test_tailcall_bpf2bpf_3() local
855 struct bpf_object *obj; in test_tailcall_bpf2bpf_4() local
935 struct tailcall_bpf2bpf6 *obj; in test_tailcall_bpf2bpf_6() local
[all …]
Dsubskeleton.c8 static void subskeleton_lib_setup(struct bpf_object *obj) in subskeleton_lib_setup()
23 static int subskeleton_lib_subresult(struct bpf_object *obj) in subskeleton_lib_subresult()
Dglobal_func_args.c7 static void test_global_func_args0(struct bpf_object *obj) in test_global_func_args0()
43 struct bpf_object *obj; in test_global_func_args() local
Dmetadata.c68 struct metadata_unused *obj; in test_metadata_unused() local
102 struct metadata_used *obj; in test_metadata_used() local
Dcg_storage_multi.c90 struct cg_storage_multi_egress_only *obj; in test_egress_only() local
160 struct cg_storage_multi_isolated *obj; in test_isolated() local
273 struct cg_storage_multi_shared *obj; in test_shared() local
Dtrampoline_count.c6 struct bpf_object *obj; member
12 struct bpf_object *obj; in load_prog() local
Dpinning.c8 __u32 get_map_id(struct bpf_object *obj, const char *name) in get_map_id()
38 struct bpf_object *obj; in test_pinning() local
Dfexit_bpf2bpf.c12 static int check_data_map(struct bpf_object *obj, int prog_cnt, bool reset) in check_data_map()
63 struct bpf_object *obj = NULL, *tgt_obj; in test_fexit_bpf2bpf_common() local
228 static int test_second_attach(struct bpf_object *obj) in test_second_attach()
358 struct bpf_object *obj = NULL, *pkt_obj; in test_obj_load_failure_common() local
Dtcp_estats.c8 struct bpf_object *obj; in test_tcp_estats() local
Dpkt_md_access.c8 struct bpf_object *obj; in test_pkt_md_access() local
/tools/perf/scripts/python/Perf-Trace-Util/
DContext.c63 static PyObject *perf_trace_context_common_pc(PyObject *obj, PyObject *args) in perf_trace_context_common_pc()
73 static PyObject *perf_trace_context_common_flags(PyObject *obj, in perf_trace_context_common_flags()
84 static PyObject *perf_trace_context_common_lock_depth(PyObject *obj, in perf_trace_context_common_lock_depth()
96 static PyObject *perf_sample_insn(PyObject *obj, PyObject *args) in perf_sample_insn()
114 static PyObject *perf_set_itrace_options(PyObject *obj, PyObject *args) in perf_set_itrace_options()
140 static PyObject *perf_sample_src(PyObject *obj, PyObject *args, bool get_srccode) in perf_sample_src()
175 static PyObject *perf_sample_srcline(PyObject *obj, PyObject *args) in perf_sample_srcline()
180 static PyObject *perf_sample_srccode(PyObject *obj, PyObject *args) in perf_sample_srccode()
/tools/lib/bpf/
Dlibbpf.c474 struct bpf_object *obj; member
545 struct bpf_object *obj; member
798 bpf_object__init_prog(struct bpf_object *obj, struct bpf_program *prog, in bpf_object__init_prog()
859 bpf_object__add_programs(struct bpf_object *obj, Elf_Data *sec_data, in bpf_object__add_programs()
983 find_struct_ops_kern_types(struct bpf_object *obj, const char *tname_raw, in find_struct_ops_kern_types()
1053 static bool is_valid_st_ops_program(struct bpf_object *obj, in is_valid_st_ops_program()
1071 static int bpf_object_adjust_struct_ops_autoload(struct bpf_object *obj) in bpf_object_adjust_struct_ops_autoload()
1117 struct bpf_object *obj = map->obj; in bpf_map__init_kern_struct_ops() local
1311 static int bpf_object__init_kern_struct_ops_maps(struct bpf_object *obj) in bpf_object__init_kern_struct_ops_maps()
1334 static int init_struct_ops_maps(struct bpf_object *obj, const char *sec_name, in init_struct_ops_maps()
[all …]
Dlinker.c445 struct src_obj obj = {}; in bpf_linker__add_file() local
518 static struct src_sec *add_src_sec(struct src_obj *obj, const char *sec_name) in add_src_sec()
542 struct src_obj *obj) in linker_load_obj_file()
696 static int linker_sanity_check_elf(struct src_obj *obj) in linker_sanity_check_elf()
778 static int linker_sanity_check_elf_symtab(struct src_obj *obj, struct src_sec *sec) in linker_sanity_check_elf_symtab()
852 static int linker_sanity_check_elf_relos(struct src_obj *obj, struct src_sec *sec) in linker_sanity_check_elf_relos()
953 static int linker_sanity_check_btf(struct src_obj *obj) in linker_sanity_check_btf()
988 static int linker_sanity_check_btf_ext(struct src_obj *obj) in linker_sanity_check_btf_ext()
1198 static int linker_append_sec_data(struct bpf_linker *linker, struct src_obj *obj) in linker_append_sec_data()
1250 static int linker_append_elf_syms(struct bpf_linker *linker, struct src_obj *obj) in linker_append_elf_syms()
[all …]
/tools/include/linux/
Dhashtable.h105 #define hash_for_each(name, bkt, obj, member) \ argument
119 #define hash_for_each_safe(name, bkt, tmp, obj, member) \ argument
132 #define hash_for_each_possible(name, obj, member, key) \ argument
144 #define hash_for_each_possible_safe(name, obj, tmp, member, key) \ argument
/tools/bpf/resolve_btfids/
Dmain.c259 static struct btf_id *add_set(struct object *obj, char *name, bool is_set8) in add_set()
328 static int elf_collect(struct object *obj) in elf_collect()
429 static int symbols_collect(struct object *obj) in symbols_collect()
531 static int symbols_resolve(struct object *obj) in symbols_resolve()
621 static int id_patch(struct object *obj, struct btf_id *id) in id_patch()
651 static int __symbols_patch(struct object *obj, struct rb_root *root) in __symbols_patch()
675 static int sets_patch(struct object *obj) in sets_patch()
737 static int symbols_patch(struct object *obj) in symbols_patch()
774 struct object obj = { in main() local
/tools/bpf/bpftool/
Dgen.c147 static int codegen_datasec_def(struct bpf_object *obj, in codegen_datasec_def()
275 static int codegen_datasecs(struct bpf_object *obj, const char *obj_name) in codegen_datasecs()
324 static int codegen_subskel_datasecs(struct bpf_object *obj, const char *obj_name) in codegen_subskel_datasecs()
497 static void codegen_asserts(struct bpf_object *obj, const char *obj_name) in codegen_asserts()
562 static void codegen_attach_detach(struct bpf_object *obj, const char *obj_name) in codegen_attach_detach()
644 static void codegen_destroy(struct bpf_object *obj, const char *obj_name) in codegen_destroy()
688 static int gen_trace(struct bpf_object *obj, const char *obj_name, const char *header_guard) in gen_trace()
851 codegen_maps_skeleton(struct bpf_object *obj, size_t map_cnt, bool mmaped, bool populate_links) in codegen_maps_skeleton()
920 codegen_progs_skeleton(struct bpf_object *obj, size_t prog_cnt, bool populate_links) in codegen_progs_skeleton()
1106 static int gen_st_ops_shadow(const char *obj_name, struct btf *btf, struct bpf_object *obj) in gen_st_ops_shadow()
[all …]

1234