Rename C++ header files to .hpp
[lttng-tools.git] / src / bin / lttng-sessiond / lttng-syscall.cpp
index f14563457aeff498f1815d83c5725ce316febf76..d7f6327ae788cbce1cd536ed45861f66c978da39 100644 (file)
@@ -8,13 +8,13 @@
 #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;
@@ -156,6 +156,8 @@ static void destroy_syscall_ht(struct lttng_ht *ht)
        struct lttng_ht_iter iter;
        struct syscall *ksyscall;
 
+       ASSERT_RCU_READ_LOCKED();
+
        DBG3("Destroying syscall hash table.");
 
        if (!ht) {
@@ -169,7 +171,7 @@ static void destroy_syscall_ht(struct lttng_ht *ht)
                LTTNG_ASSERT(!ret);
                free(ksyscall);
        }
-       ht_cleanup_push(ht);
+       lttng_ht_destroy(ht);
 }
 
 /*
This page took 0.023919 seconds and 4 git commands to generate.