From: Mathieu Desnoyers Date: Mon, 3 May 2021 14:44:45 +0000 (-0400) Subject: Move kprobes, uprobes, kretprobes, syscall structures to internal header X-Git-Tag: v2.13.0-rc2~50 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0dba22ad99622d5f51796f0c4f26e1bf8e57b67a;p=lttng-modules.git Move kprobes, uprobes, kretprobes, syscall structures to internal header Signed-off-by: Mathieu Desnoyers Change-Id: Id2d352182084cd50998df0a23dcab16d3e7212fc --- diff --git a/include/lttng/events-internal.h b/include/lttng/events-internal.h index 58e625df..f3bcdf63 100644 --- a/include/lttng/events-internal.h +++ b/include/lttng/events-internal.h @@ -23,6 +23,35 @@ struct lttng_enabler_ref { struct lttng_enabler *ref; /* backward ref */ }; +struct lttng_krp; /* Kretprobe handling */ + +struct lttng_uprobe_handler { + struct lttng_kernel_event_common *event; + loff_t offset; + struct uprobe_consumer up_consumer; + struct list_head node; +}; + +struct lttng_kprobe { + struct kprobe kp; + char *symbol_name; +}; + +struct lttng_uprobe { + struct inode *inode; + struct list_head head; +}; + +enum lttng_syscall_entryexit { + LTTNG_SYSCALL_ENTRY, + LTTNG_SYSCALL_EXIT, +}; + +enum lttng_syscall_abi { + LTTNG_SYSCALL_ABI_NATIVE, + LTTNG_SYSCALL_ABI_COMPAT, +}; + struct lttng_kernel_event_common_private { struct lttng_kernel_event_common *pub; /* Public event interface */ diff --git a/include/lttng/events.h b/include/lttng/events.h index 942622fa..4b688367 100644 --- a/include/lttng/events.h +++ b/include/lttng/events.h @@ -316,35 +316,6 @@ struct lttng_kernel_probe_desc { int lazy; /* lazy registration */ }; -struct lttng_krp; /* Kretprobe handling */ - -struct lttng_uprobe_handler { - struct lttng_kernel_event_common *event; - loff_t offset; - struct uprobe_consumer up_consumer; - struct list_head node; -}; - -struct lttng_kprobe { - struct kprobe kp; - char *symbol_name; -}; - -struct lttng_uprobe { - struct inode *inode; - struct list_head head; -}; - -enum lttng_syscall_entryexit { - LTTNG_SYSCALL_ENTRY, - LTTNG_SYSCALL_EXIT, -}; - -enum lttng_syscall_abi { - LTTNG_SYSCALL_ABI_NATIVE, - LTTNG_SYSCALL_ABI_COMPAT, -}; - /* * Result of the run_filter() callback. */