break;
case LTTNG_EVENT_SYSCALL:
ret = event_kernel_disable_syscall(kchan, event_name);
+ if (ret != LTTNG_OK) {
+ goto error;
+ }
break;
default:
ret = LTTNG_ERR_UNK;
struct lttng_event *event)
{
int ret;
- char *event_name;
-
- event_name = event->name;
rcu_read_lock();
}
break;
case LTTNG_EVENT_SYSCALL:
- ret = event_kernel_disable_syscall(kchan, event_name);
+ ret = event_kernel_disable_syscall(kchan, "");
+ if (ret != LTTNG_OK) {
+ goto error;
+ }
break;
default:
ret = LTTNG_ERR_UNK;
break;
case LTTNG_EVENT_SYSCALL:
ret = event_kernel_enable_syscall(kchan, event->name);
+ if (ret != LTTNG_OK) {
+ goto error;
+ }
break;
default:
ret = LTTNG_ERR_UNK;
switch (event->type) {
case LTTNG_EVENT_SYSCALL:
ret = event_kernel_enable_syscall(kchan, "");
+ if (ret != LTTNG_OK) {
+ goto error;
+ }
break;
case LTTNG_EVENT_TRACEPOINT:
/*