From 6bc65de7e6778e258ac1d9b8bf4b33a38a1e0f92 Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Tue, 21 Jan 2020 15:57:16 -0500 Subject: [PATCH] doc: event notifier on kretprobe is not supported The kretprobe behavior is to fire twice (entry and exit of target function), placing an event notifier on such function does not make sense at first glance. If we come up with a use case it will be quite easy to enable. Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers Change-Id: I6f214501706d1ef170c81b80a1f82c039d687502 --- src/lttng-abi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lttng-abi.c b/src/lttng-abi.c index 7001aa0e..1407d41b 100644 --- a/src/lttng-abi.c +++ b/src/lttng-abi.c @@ -1811,8 +1811,9 @@ int lttng_abi_create_event_notifier(struct file *event_notifier_group_file, case LTTNG_KERNEL_KPROBE: event_notifier_param->event.u.kprobe.symbol_name[LTTNG_KERNEL_SYM_NAME_LEN - 1] = '\0'; break; - case LTTNG_KERNEL_UPROBE: case LTTNG_KERNEL_KRETPROBE: + /* Placing a trigger on kretprobe is not supported. */ + case LTTNG_KERNEL_UPROBE: case LTTNG_KERNEL_FUNCTION: case LTTNG_KERNEL_NOOP: case LTTNG_KERNEL_SYSCALL: -- 2.34.1