Considering that additional events can be added after the probe
registration, there is no point in registering the probes after the
event creation in the first instance.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Iba2ce2c1e718969f81e067e56dd106cd38a11447
return -ENOMEM;
}
- lttng_syscall_event_enabler_create_matching_events(syscall_event_enabler);
-
if (!syscall_table->sys_enter_registered) {
ret = lttng_wrapper_tracepoint_probe_register("sys_enter",
(void *) syscall_entry_event_probe, syscall_table);
syscall_table->sys_exit_registered = 1;
}
+ lttng_syscall_event_enabler_create_matching_events(syscall_event_enabler);
+
return ret;
}