From: Francis Deslauriers Date: Tue, 21 Jan 2020 20:57:16 +0000 (-0500) Subject: doc: event notifier on kretprobe is not supported X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=6bc65de7e6778e258ac1d9b8bf4b33a38a1e0f92;hp=2b16f0c9dfdc1b1a593c5ed58fd08a89e18eccae;p=deliverable%2Flttng-modules.git 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 --- 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: