-/* 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>
/*
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 */
}
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;
}
* 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;
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);