From f97c8781d75064c7cd62e0486ff93ebd74fba868 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 22 Feb 2022 11:59:09 -0500 Subject: [PATCH] Cleanup: remove kprobes/kretprobes/uprobes unused exports Can be removed now that those are embedded in the tracer core. Signed-off-by: Mathieu Desnoyers Change-Id: I14f4b011c562d7a2e669749159fda23ee964554f --- src/lttng-kprobes.c | 3 --- src/lttng-kretprobes.c | 4 ---- src/lttng-uprobes.c | 4 ---- 3 files changed, 11 deletions(-) diff --git a/src/lttng-kprobes.c b/src/lttng-kprobes.c index bb6decc0..11d1d35c 100644 --- a/src/lttng-kprobes.c +++ b/src/lttng-kprobes.c @@ -221,13 +221,11 @@ register_error: error: return ret; } -EXPORT_SYMBOL_GPL(lttng_kprobes_register_event); void lttng_kprobes_unregister_event(struct lttng_kernel_event_common *event) { unregister_kprobe(&event->priv->u.kprobe.kp); } -EXPORT_SYMBOL_GPL(lttng_kprobes_unregister_event); void lttng_kprobes_destroy_event_private(struct lttng_kernel_event_common *event) { @@ -235,7 +233,6 @@ void lttng_kprobes_destroy_event_private(struct lttng_kernel_event_common *event kfree(event->priv->desc->event_name); kfree(event->priv->desc); } -EXPORT_SYMBOL_GPL(lttng_kprobes_destroy_event_private); MODULE_LICENSE("GPL and additional rights"); MODULE_AUTHOR("Mathieu Desnoyers "); diff --git a/src/lttng-kretprobes.c b/src/lttng-kretprobes.c index 55866a82..b1f4f7f8 100644 --- a/src/lttng-kretprobes.c +++ b/src/lttng-kretprobes.c @@ -274,7 +274,6 @@ event_exit_error: error: return ret; } -EXPORT_SYMBOL_GPL(lttng_kretprobes_register); static void _lttng_kretprobes_unregister_release(struct kref *kref) @@ -289,7 +288,6 @@ void lttng_kretprobes_unregister(struct lttng_kernel_event_common *event) kref_put(&event->priv->u.kretprobe.lttng_krp->kref_register, _lttng_kretprobes_unregister_release); } -EXPORT_SYMBOL_GPL(lttng_kretprobes_unregister); static void _lttng_kretprobes_release(struct kref *kref) @@ -306,7 +304,6 @@ void lttng_kretprobes_destroy_private(struct lttng_kernel_event_common *event) kref_put(&event->priv->u.kretprobe.lttng_krp->kref_alloc, _lttng_kretprobes_release); } -EXPORT_SYMBOL_GPL(lttng_kretprobes_destroy_private); int lttng_kretprobes_event_enable_state(struct lttng_kernel_event_common *event, int enable) @@ -326,7 +323,6 @@ int lttng_kretprobes_event_enable_state(struct lttng_kernel_event_common *event, WRITE_ONCE(event_exit->enabled, enable); return 0; } -EXPORT_SYMBOL_GPL(lttng_kretprobes_event_enable_state); MODULE_LICENSE("GPL and additional rights"); MODULE_AUTHOR("Mathieu Desnoyers "); diff --git a/src/lttng-uprobes.c b/src/lttng-uprobes.c index bf4305f3..63a6595f 100644 --- a/src/lttng-uprobes.c +++ b/src/lttng-uprobes.c @@ -255,7 +255,6 @@ int lttng_uprobes_event_add_callsite(struct lttng_kernel_event_common *event, return lttng_uprobes_add_callsite(&event->priv->u.uprobe, callsite, lttng_uprobes_event_handler_pre, event); } -EXPORT_SYMBOL_GPL(lttng_uprobes_event_add_callsite); static int lttng_uprobes_register(struct lttng_uprobe *uprobe, int fd) @@ -296,7 +295,6 @@ register_error: error: return ret; } -EXPORT_SYMBOL_GPL(lttng_uprobes_register_event); static void lttng_uprobes_unregister(struct inode *inode, struct list_head *head) @@ -318,7 +316,6 @@ void lttng_uprobes_unregister_event(struct lttng_kernel_event_common *event) { lttng_uprobes_unregister(event->priv->u.uprobe.inode, &event->priv->u.uprobe.head); } -EXPORT_SYMBOL_GPL(lttng_uprobes_unregister_event); void lttng_uprobes_destroy_event_private(struct lttng_kernel_event_common *event) { @@ -326,7 +323,6 @@ void lttng_uprobes_destroy_event_private(struct lttng_kernel_event_common *event kfree(event->priv->desc->event_name); kfree(event->priv->desc); } -EXPORT_SYMBOL_GPL(lttng_uprobes_destroy_event_private); MODULE_LICENSE("GPL and additional rights"); MODULE_AUTHOR("Yannick Brosseau"); -- 2.34.1