const struct lttng_kernel_event_desc *desc;
unsigned int i;
+ if (!IS_ENABLED(CONFIG_COMPAT) && (type == SC_TYPE_COMPAT_ENTRY || type == SC_TYPE_COMPAT_EXIT))
+ return;
+
/* iterate over all syscall and create event_notifier that match */
for (i = 0; i < table_len; i++) {
struct lttng_kernel_event_common_private *event_priv;
bool found = false;
struct hlist_head *head;
+ if (!IS_ENABLED(CONFIG_COMPAT) && (type == SC_TYPE_COMPAT_ENTRY || type == SC_TYPE_COMPAT_EXIT))
+ return;
+
/*
* Considering that currently system calls can only be enabled on a per
* name basis (or wildcard based on a name), unknown syscall events are
create_unknown_syscall_event(syscall_event_enabler, SC_TYPE_ENTRY);
create_unknown_syscall_event(syscall_event_enabler, SC_TYPE_EXIT);
-#ifdef CONFIG_COMPAT
lttng_syscall_event_enabler_create_matching_events(&event_recorder_enabler->parent, compat_sc_table.table, compat_sc_table.len,
syscall_table->compat_syscall_dispatch, SC_TYPE_COMPAT_ENTRY);
lttng_syscall_event_enabler_create_matching_events(&event_recorder_enabler->parent, compat_sc_exit_table.table, compat_sc_exit_table.len,
syscall_table->compat_syscall_exit_dispatch, SC_TYPE_COMPAT_EXIT);
create_unknown_syscall_event(syscall_event_enabler, SC_TYPE_COMPAT_ENTRY);
create_unknown_syscall_event(syscall_event_enabler, SC_TYPE_COMPAT_EXIT);
-#endif
+
return ret;
}
return -ENOMEM;
}
-
#ifdef CONFIG_COMPAT
if (!syscall_table->compat_syscall_dispatch) {
/* create syscall table mapping compat syscall to events */