context_param.u.perf_counter.config,
context_param.u.perf_counter.name,
ctx);
- case LTTNG_KERNEL_CONTEXT_COMM:
- return lttng_add_comm_to_ctx(ctx);
+ case LTTNG_KERNEL_CONTEXT_PROCNAME:
+ return lttng_add_procname_to_ctx(ctx);
default:
return -EINVAL;
}
* 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;
}
* 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;
/* 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;