X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-tracepoint.c;h=f8a9cedcd74b9b61a6b3a4fe8af0e50e7bb182f4;hb=refs%2Fheads%2Fstable-2.7;hp=13f9c247d440ca3dc7d69e44a995ec8b90f99370;hpb=20591cf76d5dfd42d61a18bd494b40a70a04dd59;p=lttng-modules.git diff --git a/lttng-tracepoint.c b/lttng-tracepoint.c index 13f9c247..f8a9cedc 100644 --- a/lttng-tracepoint.c +++ b/lttng-tracepoint.c @@ -20,7 +20,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include #include #include #include @@ -30,6 +29,7 @@ #include #include "lttng-tracepoint.h" +#include "wrapper/list.h" /* * Protect the tracepoint table. lttng_tracepoint_mutex nests within @@ -119,7 +119,7 @@ struct tracepoint_entry *get_tracepoint(const char *name) u32 hash = jhash(name, strlen(name), 0); head = &tracepoint_table[hash & (TRACEPOINT_TABLE_SIZE - 1)]; - hlist_for_each_entry(e, head, hlist) { + lttng_hlist_for_each_entry(e, head, hlist) { if (!strcmp(name, e->name)) return e; } @@ -139,7 +139,7 @@ struct tracepoint_entry *add_tracepoint(const char *name) u32 hash = jhash(name, name_len - 1, 0); head = &tracepoint_table[hash & (TRACEPOINT_TABLE_SIZE - 1)]; - hlist_for_each_entry(e, head, hlist) { + lttng_hlist_for_each_entry(e, head, hlist) { if (!strcmp(name, e->name)) { printk(KERN_NOTICE "tracepoint %s busy\n", name);