#define _LGPL_SOURCE
#include <stdbool.h>
-#include <common/common.h>
-#include <common/kernel-ctl/kernel-ctl.h>
+#include <common/common.hpp>
+#include <common/kernel-ctl/kernel-ctl.hpp>
-#include "lttng-sessiond.h"
-#include "kernel.h"
-#include "lttng-syscall.h"
-#include "utils.h"
+#include "lttng-sessiond.hpp"
+#include "kernel.hpp"
+#include "lttng-syscall.hpp"
+#include "utils.hpp"
/* Global syscall table. */
struct syscall *syscall_table;
struct lttng_ht_iter iter;
struct syscall *ksyscall;
+ ASSERT_RCU_READ_LOCKED();
+
DBG3("Destroying syscall hash table.");
if (!ht) {
LTTNG_ASSERT(!ret);
free(ksyscall);
}
- ht_cleanup_push(ht);
+ lttng_ht_destroy(ht);
}
/*