projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wrapper: remove list wrapper
[lttng-modules.git]
/
lttng-tracker-id.c
diff --git
a/lttng-tracker-id.c
b/lttng-tracker-id.c
index 2248acd6d49148fa140a6a94e21f8d2e39ffb400..a789e7c4919d3db0eca007bcdf2e92a410a78c4c 100644
(file)
--- a/
lttng-tracker-id.c
+++ b/
lttng-tracker-id.c
@@
-15,9
+15,6
@@
#include <linux/hash.h>
#include <linux/rcupdate.h>
#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-events.h>
/*
@@
-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)];
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 */
}
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)];
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;
}
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.
*/
* 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;
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;
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);
id_tracker_del_node(e);
}
kfree(p);
This page took
0.025207 seconds
and
4
git commands to generate.