X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Fevents.h;h=f89fe1d01fcb54c0177ae12dae01a21678d3af9c;hb=8bf17deb525927d1191c59a1765d5b11b37c4320;hp=5fb7a7804a1807ba8d5f22e960c2b31ccae2d5e0;hpb=b01155bac7199bfef02b9bc06e85421c28859626;p=lttng-modules.git diff --git a/include/lttng/events.h b/include/lttng/events.h index 5fb7a780..f89fe1d0 100644 --- a/include/lttng/events.h +++ b/include/lttng/events.h @@ -276,6 +276,11 @@ struct lttng_uprobe_handler { struct list_head node; }; +struct lttng_kprobe { + struct kprobe kp; + char *symbol_name; +}; + enum lttng_syscall_entryexit { LTTNG_SYSCALL_ENTRY, LTTNG_SYSCALL_EXIT, @@ -300,10 +305,7 @@ struct lttng_event { struct lttng_ctx *ctx; enum lttng_kernel_instrumentation instrumentation; union { - struct { - struct kprobe kp; - char *symbol_name; - } kprobe; + struct lttng_kprobe kprobe; struct { struct lttng_krp *lttng_krp; char *symbol_name; @@ -1007,16 +1009,16 @@ void lttng_logger_exit(void); extern int lttng_statedump_start(struct lttng_session *session); #ifdef CONFIG_KPROBES -int lttng_kprobes_register(const char *name, +int lttng_kprobes_register_event(const char *name, const char *symbol_name, uint64_t offset, uint64_t addr, struct lttng_event *event); -void lttng_kprobes_unregister(struct lttng_event *event); -void lttng_kprobes_destroy_private(struct lttng_event *event); +void lttng_kprobes_unregister_event(struct lttng_event *event); +void lttng_kprobes_destroy_event_private(struct lttng_event *event); #else static inline -int lttng_kprobes_register(const char *name, +int lttng_kprobes_register_event(const char *name, const char *symbol_name, uint64_t offset, uint64_t addr, @@ -1026,7 +1028,12 @@ int lttng_kprobes_register(const char *name, } static inline -void lttng_kprobes_unregister(struct lttng_event *event) +void lttng_kprobes_unregister_event(struct lttng_event *event) +{ +} + +static inline +void lttng_kprobes_destroy_event_private(struct lttng_event *event) { }