From e978f27486ddac0b9cbea5577fc413c67bc61141 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 3 May 2021 10:44:45 -0400 Subject: [PATCH] Move kprobes, uprobes, kretprobes, syscall structures to internal header Signed-off-by: Mathieu Desnoyers Change-Id: Id2d352182084cd50998df0a23dcab16d3e7212fc --- include/lttng/events-internal.h | 29 +++++++++++++++++++++++++++++ include/lttng/events.h | 29 ----------------------------- 2 files changed, 29 insertions(+), 29 deletions(-) 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. */ -- 2.34.1