X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt-debugfs-abi.c;h=d4d1e3ea6457f104e650e77868b811ae07139a7a;hb=bc55cda31cd8fbcdfb16777b585b1d097aeb61f1;hp=3d231c0d211c10f01a1542b02615f2ab0e2bf2ec;hpb=e6a17f26e9b344e9d2349a81f9dcee09e96593d6;p=lttng-modules.git diff --git a/ltt-debugfs-abi.c b/ltt-debugfs-abi.c index 3d231c0d..d4d1e3ea 100644 --- a/ltt-debugfs-abi.c +++ b/ltt-debugfs-abi.c @@ -268,7 +268,7 @@ void lttng_metadata_create_events(struct file *channel_file) * We tolerate no failure path after event creation. It will stay * invariant for the rest of the session. */ - event = ltt_event_create(channel, &metadata_params, NULL); + event = ltt_event_create(channel, &metadata_params, NULL, NULL); if (!event) { goto create_error; } @@ -534,7 +534,7 @@ int lttng_abi_create_event(struct file *channel_file, * We tolerate no failure path after event creation. It * will stay invariant for the rest of the session. */ - event = ltt_event_create(channel, &event_param, NULL); + event = ltt_event_create(channel, &event_param, NULL, NULL); if (!event) { ret = -EINVAL; goto event_error; @@ -544,7 +544,12 @@ int lttng_abi_create_event(struct file *channel_file, /* The event holds a reference on the channel */ atomic_long_inc(&channel_file->f_count); break; - case LTTNG_KERNEL_SYSCALLS: + case LTTNG_KERNEL_SYSCALL: + /* + * Only all-syscall tracing supported for now. + */ + if (event_param.name[0] != '\0') + return -EINVAL; ret = lttng_syscalls_register(channel, NULL); if (ret) goto fd_error;