/samples/ |
D | Makefile | 4 obj-$(CONFIG_SAMPLE_ANDROID_BINDERFS) += binderfs/ 5 obj-$(CONFIG_SAMPLE_CONFIGFS) += configfs/ 6 obj-$(CONFIG_SAMPLE_CONNECTOR) += connector/ 8 obj-$(CONFIG_SAMPLE_HW_BREAKPOINT) += hw_breakpoint/ 9 obj-$(CONFIG_SAMPLE_KDB) += kdb/ 10 obj-$(CONFIG_SAMPLE_KFIFO) += kfifo/ 11 obj-$(CONFIG_SAMPLE_KOBJECT) += kobject/ 12 obj-$(CONFIG_SAMPLE_KPROBES) += kprobes/ 13 obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch/ 15 obj-$(CONFIG_SAMPLE_QMI_CLIENT) += qmi/ [all …]
|
/samples/livepatch/ |
D | livepatch-callbacks-demo.c | 98 static void callback_info(const char *callback, struct klp_object *obj) in callback_info() argument 100 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() [all …]
|
D | Makefile | 2 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
|
D | livepatch-shadow-fix1.c | 53 static int shadow_leak_ctor(void *obj, void *shadow_data, void *ctor_data) in shadow_leak_ctor() argument 94 static void livepatch_fix1_dummy_leak_dtor(void *obj, void *shadow_data) in livepatch_fix1_dummy_leak_dtor() argument 96 void *d = obj; in livepatch_fix1_dummy_leak_dtor()
|
D | livepatch-shadow-fix2.c | 59 static void livepatch_fix2_dummy_leak_dtor(void *obj, void *shadow_data) in livepatch_fix2_dummy_leak_dtor() argument 61 void *d = obj; in livepatch_fix2_dummy_leak_dtor()
|
/samples/vfio-mdev/ |
D | Makefile | 2 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/kprobes/ |
D | Makefile | 5 obj-$(CONFIG_SAMPLE_KPROBES) += kprobe_example.o 6 obj-$(CONFIG_SAMPLE_KRETPROBES) += kretprobe_example.o
|
/samples/bpf/ |
D | xdp_redirect_cpu_user.c | 106 static void print_avail_progs(struct bpf_object *obj) in print_avail_progs() argument 110 bpf_object__for_each_program(pos, obj) { in print_avail_progs() 116 static void usage(char *argv[], struct bpf_object *obj) in usage() argument 135 print_avail_progs(obj); in usage() 601 static struct bpf_link * attach_tp(struct bpf_object *obj, in attach_tp() argument 615 prog = bpf_object__find_program_by_title(obj, sec_name); in attach_tp() 628 static void init_tracepoints(struct bpf_object *obj) { in init_tracepoints() argument 629 tp_links[tp_cnt++] = attach_tp(obj, "xdp", "xdp_redirect_err"); in init_tracepoints() 630 tp_links[tp_cnt++] = attach_tp(obj, "xdp", "xdp_redirect_map_err"); in init_tracepoints() 631 tp_links[tp_cnt++] = attach_tp(obj, "xdp", "xdp_exception"); in init_tracepoints() [all …]
|
D | sockex1_user.c | 13 struct bpf_object *obj; in main() local 22 &obj, &prog_fd)) in main() 25 map_fd = bpf_object__find_map_fd_by_name(obj, "my_map"); in main()
|
D | sockex2_user.c | 20 struct bpf_object *obj; in main() local 30 &obj, &prog_fd)) in main() 33 map_fd = bpf_object__find_map_fd_by_name(obj, "hash_map"); in main()
|
D | xdp_redirect_user.c | 109 struct bpf_object *obj; in main() local 154 if (bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd)) in main() 157 prog = bpf_program__next(NULL, obj); in main() 158 dummy_prog = bpf_program__next(prog, obj); in main() 172 tx_port_map_fd = bpf_object__find_map_fd_by_name(obj, "tx_port"); in main() 173 rxcnt_map_fd = bpf_object__find_map_fd_by_name(obj, "rxcnt"); in main()
|
D | xdp_redirect_map_user.c | 108 struct bpf_object *obj; in main() local 153 if (bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd)) in main() 156 prog = bpf_program__next(NULL, obj); in main() 157 dummy_prog = bpf_program__next(prog, obj); in main() 171 tx_port_map_fd = bpf_object__find_map_fd_by_name(obj, "tx_port"); in main() 172 rxcnt_map_fd = bpf_object__find_map_fd_by_name(obj, "rxcnt"); in main()
|
D | xdp_fwd_user.c | 81 struct bpf_object *obj; in main() local 115 err = bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd); in main() 124 prog = bpf_object__find_program_by_title(obj, prog_name); in main() 130 map_fd = bpf_map__fd(bpf_object__find_map_by_name(obj, in main()
|
D | xdp1_user.c | 90 struct bpf_object *obj; in main() local 131 if (bpf_prog_load_xattr(&prog_load_attr, &obj, &prog_fd)) in main() 134 map = bpf_map__next(NULL, obj); in main()
|
/samples/binderfs/ |
D | Makefile | 2 obj-$(CONFIG_SAMPLE_ANDROID_BINDERFS) += binderfs_example.o
|
/samples/configfs/ |
D | Makefile | 3 obj-$(CONFIG_SAMPLE_CONFIGFS) += configfs_sample.o
|
/samples/hw_breakpoint/ |
D | Makefile | 2 obj-$(CONFIG_SAMPLE_HW_BREAKPOINT) += data_breakpoint.o
|
/samples/rpmsg/ |
D | Makefile | 2 obj-$(CONFIG_SAMPLE_RPMSG_CLIENT) += rpmsg_client_sample.o
|
/samples/qmi/ |
D | Makefile | 2 obj-$(CONFIG_SAMPLE_QMI_CLIENT) += qmi_sample_client.o
|
/samples/kdb/ |
D | Makefile | 2 obj-$(CONFIG_SAMPLE_KDB) += kdb_hello.o
|
/samples/trace_printk/ |
D | Makefile | 7 obj-$(CONFIG_SAMPLE_TRACE_PRINTK) += trace-printk.o
|
/samples/v4l/ |
D | Makefile | 2 obj-$(CONFIG_VIDEO_PCI_SKELETON) := v4l2-pci-skeleton.o
|
/samples/kobject/ |
D | Makefile | 2 obj-$(CONFIG_SAMPLE_KOBJECT) += kobject-example.o kset-example.o
|
/samples/trace_events/ |
D | Makefile | 15 obj-$(CONFIG_SAMPLE_TRACE_EVENTS) += trace-events-sample.o
|
/samples/kfifo/ |
D | Makefile | 2 obj-$(CONFIG_SAMPLE_KFIFO) += bytestream-example.o dma-example.o inttype-example.o record-example.o
|