Add --userspace-probe kernel event type
[lttng-tools.git] / src / bin / lttng-sessiond / kernel.c
index e13925e27c715d2dc796184f105bdef759df3257..f5979c9b4f2cf26028c8d4f6f120349b9a0eed9c 100644 (file)
@@ -492,6 +492,13 @@ int kernel_create_event(struct lttng_event *ev,
                }
        }
 
+       if (ev->type == LTTNG_EVENT_USERSPACE_PROBE) {
+               ret = userspace_probe_add_callsites(ev, channel->session, event->fd);
+               if (ret) {
+                       goto add_callsite_error;
+               }
+       }
+
        err = kernctl_enable(event->fd);
        if (err < 0) {
                switch (-err) {
@@ -514,6 +521,7 @@ int kernel_create_event(struct lttng_event *ev,
 
        return 0;
 
+add_callsite_error:
 enable_error:
 filter_error:
        {
This page took 0.024518 seconds and 5 git commands to generate.