* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
#define _LGPL_SOURCE
#include <common/bitfield.h>
#include <common/common.h>
strncpy(events[count].name, syscall_table[i].name,
sizeof(events[count].name));
events[count].enabled = 1;
- events[count].type = LTTNG_KERNEL_SYSCALL;
+ events[count].type = LTTNG_EVENT_SYSCALL;
count++;
}
+ rcu_read_lock();
+ destroy_syscall_ht(syscalls_ht);
+ rcu_read_unlock();
+
*_events = events;
return count;