Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 59) sorted by relevance

123

/samples/
A DMakefile8 obj-$(CONFIG_SAMPLE_CONFIGFS) += configfs/
13 obj-$(CONFIG_SAMPLE_KDB) += kdb/
14 obj-$(CONFIG_SAMPLE_KFIFO) += kfifo/
15 obj-$(CONFIG_SAMPLE_KOBJECT) += kobject/
16 obj-$(CONFIG_SAMPLE_KPROBES) += kprobes/
20 obj-$(CONFIG_SAMPLE_QMI_CLIENT) += qmi/
33 obj-y += vfio-mdev/
35 obj-$(CONFIG_SAMPLE_INTEL_MEI) += mei/
41 obj-$(CONFIG_SAMPLE_FPROBE) += fprobe/
42 obj-$(CONFIG_SAMPLES_RUST) += rust/
[all …]
/samples/rust/
A DMakefile4 obj-$(CONFIG_SAMPLE_RUST_MINIMAL) += rust_minimal.o
5 obj-$(CONFIG_SAMPLE_RUST_MISC_DEVICE) += rust_misc_device.o
6 obj-$(CONFIG_SAMPLE_RUST_PRINT) += rust_print.o
7 obj-$(CONFIG_SAMPLE_RUST_DMA) += rust_dma.o
8 obj-$(CONFIG_SAMPLE_RUST_DRIVER_PCI) += rust_driver_pci.o
9 obj-$(CONFIG_SAMPLE_RUST_DRIVER_PLATFORM) += rust_driver_platform.o
10 obj-$(CONFIG_SAMPLE_RUST_DRIVER_FAUX) += rust_driver_faux.o
11 obj-$(CONFIG_SAMPLE_RUST_DRIVER_AUXILIARY) += rust_driver_auxiliary.o
12 obj-$(CONFIG_SAMPLE_RUST_CONFIGFS) += rust_configfs.o
/samples/livepatch/
A DMakefile2 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-sample.o
3 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-shadow-mod.o
4 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-shadow-fix1.o
5 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-shadow-fix2.o
6 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-callbacks-demo.o
7 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-callbacks-mod.o
8 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-callbacks-busymod.o
A Dlivepatch-callbacks-demo.c100 if (obj->mod) in callback_info()
101 pr_info("%s: %s -> %s\n", callback, obj->mod->name, in callback_info()
102 module_state[obj->mod->state]); in callback_info()
108 static int pre_patch_callback(struct klp_object *obj) in pre_patch_callback() argument
110 callback_info(__func__, obj); in pre_patch_callback()
115 static void post_patch_callback(struct klp_object *obj) in post_patch_callback() argument
117 callback_info(__func__, obj); in post_patch_callback()
121 static void pre_unpatch_callback(struct klp_object *obj) in pre_unpatch_callback() argument
123 callback_info(__func__, obj); in pre_unpatch_callback()
127 static void post_unpatch_callback(struct klp_object *obj) in post_unpatch_callback() argument
[all …]
/samples/ftrace/
A DMakefile3 obj-$(CONFIG_SAMPLE_FTRACE_DIRECT) += ftrace-direct.o
4 obj-$(CONFIG_SAMPLE_FTRACE_DIRECT) += ftrace-direct-too.o
5 obj-$(CONFIG_SAMPLE_FTRACE_DIRECT) += ftrace-direct-modify.o
6 obj-$(CONFIG_SAMPLE_FTRACE_DIRECT_MULTI) += ftrace-direct-multi.o
7 obj-$(CONFIG_SAMPLE_FTRACE_DIRECT_MULTI) += ftrace-direct-multi-modify.o
8 obj-$(CONFIG_SAMPLE_FTRACE_OPS) += ftrace-ops.o
11 obj-$(CONFIG_SAMPLE_TRACE_ARRAY) += sample-trace-array.o
/samples/bpf/
A Dtracex1_user.c11 struct bpf_object *obj; in main() local
16 obj = bpf_object__open_file(filename, NULL); in main()
17 if (libbpf_get_error(obj)) { in main()
22 prog = bpf_object__find_program_by_name(obj, "bpf_prog1"); in main()
29 if (bpf_object__load(obj)) { in main()
48 bpf_object__close(obj); in main()
A Dspintest_user.c12 struct bpf_object *obj = NULL; in main() local
26 obj = bpf_object__open_file(filename, NULL); in main()
27 if (libbpf_get_error(obj)) { in main()
29 obj = NULL; in main()
34 if (bpf_object__load(obj)) { in main()
39 map_fd = bpf_object__find_map_fd_by_name(obj, "my_map"); in main()
45 bpf_object__for_each_program(prog, obj) { in main()
82 bpf_object__close(obj); in main()
A Dtracex5_user.c39 struct bpf_object *obj; in main() local
46 obj = bpf_object__open_file(filename, NULL); in main()
47 if (libbpf_get_error(obj)) { in main()
52 prog = bpf_object__find_program_by_name(obj, "bpf_prog1"); in main()
59 if (bpf_object__load(obj)) { in main()
71 progs_fd = bpf_object__find_map_fd_by_name(obj, "progs"); in main()
77 bpf_object__for_each_program(prog, obj) { in main()
96 bpf_object__close(obj); in main()
A Dibumad_user.c30 static struct bpf_object *obj; variable
64 bpf_object__close(obj); in dump_exit()
116 obj = bpf_object__open_file(filename, NULL); in main()
117 if (libbpf_get_error(obj)) { in main()
123 if (bpf_object__load(obj)) { in main()
128 map_fd[0] = bpf_object__find_map_fd_by_name(obj, "read_count"); in main()
129 map_fd[1] = bpf_object__find_map_fd_by_name(obj, "write_count"); in main()
135 bpf_object__for_each_program(prog, obj) { in main()
156 bpf_object__close(obj); in main()
A Dtest_map_in_map_user.c120 struct bpf_object *obj; in main() local
124 obj = bpf_object__open_file(filename, NULL); in main()
125 if (libbpf_get_error(obj)) { in main()
137 if (bpf_object__load(obj)) { in main()
142 map_fd[0] = bpf_object__find_map_fd_by_name(obj, "port_a"); in main()
143 map_fd[1] = bpf_object__find_map_fd_by_name(obj, "port_h"); in main()
144 map_fd[2] = bpf_object__find_map_fd_by_name(obj, "reg_result_h"); in main()
146 map_fd[4] = bpf_object__find_map_fd_by_name(obj, "a_of_port_a"); in main()
147 map_fd[5] = bpf_object__find_map_fd_by_name(obj, "h_of_port_a"); in main()
148 map_fd[6] = bpf_object__find_map_fd_by_name(obj, "h_of_port_h"); in main()
[all …]
A Dsockex1_user.c13 struct bpf_object *obj; in main() local
22 obj = bpf_object__open_file(filename, NULL); in main()
23 if (libbpf_get_error(obj)) in main()
26 prog = bpf_object__next_program(obj, NULL); in main()
29 err = bpf_object__load(obj); in main()
34 map_fd = bpf_object__find_map_fd_by_name(obj, "my_map"); in main()
A Dsockex2_user.c19 struct bpf_object *obj; in main() local
26 obj = bpf_object__open_file(filename, NULL); in main()
27 if (libbpf_get_error(obj)) in main()
30 prog = bpf_object__next_program(obj, NULL); in main()
33 err = bpf_object__load(obj); in main()
38 map_fd = bpf_object__find_map_fd_by_name(obj, "hash_map"); in main()
A Dtracex4_user.c52 struct bpf_object *obj; in main() local
57 obj = bpf_object__open_file(filename, NULL); in main()
58 if (libbpf_get_error(obj)) { in main()
64 if (bpf_object__load(obj)) { in main()
69 map_fd = bpf_object__find_map_fd_by_name(obj, "my_map"); in main()
75 bpf_object__for_each_program(prog, obj) { in main()
94 bpf_object__close(obj); in main()
A Dtrace_output_user.c49 struct bpf_object *obj; in main() local
55 obj = bpf_object__open_file(filename, NULL); in main()
56 if (libbpf_get_error(obj)) { in main()
62 if (bpf_object__load(obj)) { in main()
67 map_fd = bpf_object__find_map_fd_by_name(obj, "my_map"); in main()
73 prog = bpf_object__find_program_by_name(obj, "bpf_prog1"); in main()
103 bpf_object__close(obj); in main()
A Dsockex3_user.c29 struct bpf_object *obj; in main() local
35 obj = bpf_object__open_file(filename, NULL); in main()
36 if (libbpf_get_error(obj)) { in main()
42 if (bpf_object__load(obj)) { in main()
47 hash_map_fd = bpf_object__find_map_fd_by_name(obj, "hash_map"); in main()
55 bpf_object__for_each_program(prog, obj) { in main()
98 bpf_object__close(obj); in main()
A DMakefile.target33 tprog-csingle := $(addprefix $(obj)/,$(tprog-csingle))
34 tprog-cmulti := $(addprefix $(obj)/,$(tprog-cmulti))
35 tprog-cobjs := $(addprefix $(obj)/,$(tprog-cobjs))
46 _tprogc_flags += -I $(objtree)/$(obj)
57 $(tprog-csingle): $(obj)/%: $(src)/%.c FORCE
64 $(addprefix $(obj)/,$($(@F)-objs)) \
74 $(tprog-cobjs): $(obj)/%.o: $(src)/%.c FORCE
A Doffwaketime_user.c97 struct bpf_object *obj = NULL; in main() local
109 obj = bpf_object__open_file(filename, NULL); in main()
110 if (libbpf_get_error(obj)) { in main()
112 obj = NULL; in main()
117 if (bpf_object__load(obj)) { in main()
122 map_fd[0] = bpf_object__find_map_fd_by_name(obj, "counts"); in main()
123 map_fd[1] = bpf_object__find_map_fd_by_name(obj, "stackmap"); in main()
132 bpf_object__for_each_program(prog, obj) { in main()
151 bpf_object__close(obj); in main()
A Dlathist_user.c85 struct bpf_object *obj; in main() local
90 obj = bpf_object__open_file(filename, NULL); in main()
91 if (libbpf_get_error(obj)) { in main()
97 if (bpf_object__load(obj)) { in main()
102 map_fd = bpf_object__find_map_fd_by_name(obj, "my_lat"); in main()
108 bpf_object__for_each_program(prog, obj) { in main()
128 bpf_object__close(obj); in main()
A Dtracex3_user.c111 struct bpf_object *obj; in main() local
129 obj = bpf_object__open_file(filename, NULL); in main()
130 if (libbpf_get_error(obj)) { in main()
136 if (bpf_object__load(obj)) { in main()
141 map_fd = bpf_object__find_map_fd_by_name(obj, "lat_map"); in main()
147 bpf_object__for_each_program(prog, obj) { in main()
181 bpf_object__close(obj); in main()
A Dtracex6_user.c179 struct bpf_object *obj; in main() local
184 obj = bpf_object__open_file(filename, NULL); in main()
185 if (libbpf_get_error(obj)) { in main()
191 if (bpf_object__load(obj)) { in main()
196 map_fd[0] = bpf_object__find_map_fd_by_name(obj, "counters"); in main()
197 map_fd[1] = bpf_object__find_map_fd_by_name(obj, "values"); in main()
198 map_fd[2] = bpf_object__find_map_fd_by_name(obj, "values2"); in main()
204 bpf_object__for_each_program(prog, obj) { in main()
220 bpf_object__close(obj); in main()
A Dxdp_adjust_tail_user.c91 struct bpf_object *obj; in main() local
149 obj = bpf_object__open_file(filename, NULL); in main()
150 if (libbpf_get_error(obj)) in main()
153 prog = bpf_object__next_program(obj, NULL); in main()
156 err = bpf_object__load(obj); in main()
164 map_fd = bpf_object__find_map_fd_by_name(obj, "xdp_adju.data"); in main()
173 map_fd = bpf_object__find_map_fd_by_name(obj, "icmpcnt"); in main()
/samples/vfio-mdev/
A DMakefile2 obj-$(CONFIG_SAMPLE_VFIO_MDEV_MTTY) += mtty.o
3 obj-$(CONFIG_SAMPLE_VFIO_MDEV_MDPY) += mdpy.o
4 obj-$(CONFIG_SAMPLE_VFIO_MDEV_MDPY_FB) += mdpy-fb.o
5 obj-$(CONFIG_SAMPLE_VFIO_MDEV_MBOCHS) += mbochs.o
/samples/damon/
A DMakefile3 obj-$(CONFIG_SAMPLE_DAMON_WSSE) += wsse.o
4 obj-$(CONFIG_SAMPLE_DAMON_PRCL) += prcl.o
5 obj-$(CONFIG_SAMPLE_DAMON_MTIER) += mtier.o
/samples/hid/
A DMakefile.target33 tprog-csingle := $(addprefix $(obj)/,$(tprog-csingle))
34 tprog-cmulti := $(addprefix $(obj)/,$(tprog-cmulti))
35 tprog-cobjs := $(addprefix $(obj)/,$(tprog-cobjs))
46 _tprogc_flags += -I $(objtree)/$(obj)
57 $(tprog-csingle): $(obj)/%: $(src)/%.c FORCE
64 $(addprefix $(obj)/,$($(@F)-objs)) \
74 $(tprog-cobjs): $(obj)/%.o: $(src)/%.c FORCE
/samples/kprobes/
A DMakefile5 obj-$(CONFIG_SAMPLE_KPROBES) += kprobe_example.o
6 obj-$(CONFIG_SAMPLE_KRETPROBES) += kretprobe_example.o

Completed in 24 milliseconds

123