Move headers under include/
[lttng-modules.git] / lttng-tracker-id.c
index 9a4b98b2ef7ef17ffc834b77cc9305c5205346e6..fac0ab70d150bb1c767277ce63b82ec47ffa7be4 100644 (file)
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
+/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
  *
  * lttng-tracker-pid.c
  *
 #include <linux/hash.h>
 #include <linux/rcupdate.h>
 
-#include <wrapper/tracepoint.h>
-#include <wrapper/rcu.h>
-#include <wrapper/list.h>
-#include <lttng-events.h>
+#include <lttng/lttng-events.h>
 
 /*
  * Hash table is allocated and freed when there are no possible
@@ -47,7 +44,7 @@ bool lttng_id_tracker_lookup(struct lttng_id_tracker_rcu *p, int id)
        uint32_t hash = hash_32(id, 32);
 
        head = &p->id_hash[hash & (LTTNG_ID_TABLE_SIZE - 1)];
-       lttng_hlist_for_each_entry_rcu(e, head, hlist) {
+       hlist_for_each_entry_rcu_notrace(e, head, hlist) {
                if (id == e->id)
                        return true;    /* Found */
        }
@@ -83,7 +80,7 @@ int lttng_id_tracker_add(struct lttng_id_tracker *lf, int id)
                allocated = true;
        }
        head = &p->id_hash[hash & (LTTNG_ID_TABLE_SIZE - 1)];
-       lttng_hlist_for_each_entry(e, head, hlist) {
+       hlist_for_each_entry(e, head, hlist) {
                if (id == e->id)
                        return -EEXIST;
        }
@@ -139,7 +136,7 @@ int lttng_id_tracker_del(struct lttng_id_tracker *lf, int id)
         * No need of _safe iteration, because we stop traversal as soon
         * as we remove the entry.
         */
-       lttng_hlist_for_each_entry(e, head, hlist) {
+       hlist_for_each_entry(e, head, hlist) {
                if (id == e->id) {
                        id_tracker_del_node_rcu(e);
                        return 0;
@@ -159,7 +156,7 @@ static void lttng_id_tracker_rcu_destroy(struct lttng_id_tracker_rcu *p)
                struct lttng_id_hash_node *e;
                struct hlist_node *tmp;
 
-               lttng_hlist_for_each_entry_safe(e, tmp, head, hlist)
+               hlist_for_each_entry_safe(e, tmp, head, hlist)
                        id_tracker_del_node(e);
        }
        kfree(p);
This page took 0.027868 seconds and 4 git commands to generate.