kernel: Add `struct lttng_kernel_syscall` to ABI
[lttng-tools.git] / src / bin / lttng-sessiond / trace-kernel.c
index 044fc98d2510ddd17c1bb36353e99f9780b8d933..a8154a3cc32c98d3286394c9238f48a54d7ed546 100644 (file)
@@ -391,16 +391,10 @@ enum lttng_error_code trace_kernel_create_event(
 
                        /*
                         * Save a reference to the probe location used during
-                        * the listing of events. Close its FD since it won't
-                        * be needed for listing.
+                        * the listing of events.
                         */
                        userspace_probe_location =
                                        lttng_userspace_probe_location_copy(location);
-                       ret = lttng_userspace_probe_location_function_set_binary_fd(
-                                       userspace_probe_location, -1);
-                       if (ret) {
-                               goto error;
-                       }
                        break;
                case LTTNG_USERSPACE_PROBE_LOCATION_LOOKUP_METHOD_TYPE_TRACEPOINT_SDT:
                        /* Get the file descriptor on the target binary. */
@@ -409,15 +403,10 @@ enum lttng_error_code trace_kernel_create_event(
 
                        /*
                         * Save a reference to the probe location used during the listing of
-                        * events. Close its FD since it won't be needed for listing.
+                        * events.
                         */
                        userspace_probe_location =
                                        lttng_userspace_probe_location_copy(location);
-                       ret = lttng_userspace_probe_location_tracepoint_set_binary_fd(
-                                       userspace_probe_location, -1);
-                       if (ret) {
-                               goto error;
-                       }
                        break;
                default:
                        DBG("Unsupported lookup method type");
@@ -445,6 +434,9 @@ enum lttng_error_code trace_kernel_create_event(
                break;
        case LTTNG_EVENT_SYSCALL:
                attr->instrumentation = LTTNG_KERNEL_SYSCALL;
+               attr->u.syscall.abi = LTTNG_KERNEL_SYSCALL_ABI_ALL;
+               attr->u.syscall.entryexit = LTTNG_KERNEL_SYSCALL_ENTRYEXIT;
+               attr->u.syscall.match = LTTNG_KERNEL_SYSCALL_MATCH_NAME;
                break;
        case LTTNG_EVENT_ALL:
                attr->instrumentation = LTTNG_KERNEL_ALL;
This page took 0.023848 seconds and 4 git commands to generate.