X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Ftracepoint.c;h=66e58d0a5a34bb8dfe2e6d931ce6ddb416930c7d;hb=23c8854a5fa1120df5cfdfbf08f00e00976f95fa;hp=217ef4c22af2de76e8fe2990d7facc187f825386;hpb=2fed87aef82aaa8edfb6d8d8ac6bbf5f1e67b955;p=lttng-ust.git diff --git a/liblttng-ust/tracepoint.c b/liblttng-ust/tracepoint.c index 217ef4c2..66e58d0a 100644 --- a/liblttng-ust/tracepoint.c +++ b/liblttng-ust/tracepoint.c @@ -22,7 +22,6 @@ #define _LGPL_SOURCE #include #include -#include #include #include #include @@ -33,6 +32,7 @@ #include #include +#include "tracepoint-internal.h" #include "ltt-tracer-core.h" /* Set to 1 to enable tracepoint debug output */ @@ -199,7 +199,7 @@ static struct tracepoint_entry *get_tracepoint(const char *name) struct cds_hlist_head *head; struct cds_hlist_node *node; struct tracepoint_entry *e; - u32 hash = jhash(name, strlen(name), 0); + uint32_t hash = jhash(name, strlen(name), 0); head = &tracepoint_table[hash & (TRACEPOINT_TABLE_SIZE - 1)]; cds_hlist_for_each_entry(e, node, head, hlist) { @@ -219,7 +219,7 @@ static struct tracepoint_entry *add_tracepoint(const char *name) struct cds_hlist_node *node; struct tracepoint_entry *e; size_t name_len = strlen(name) + 1; - u32 hash = jhash(name, name_len-1, 0); + uint32_t hash = jhash(name, name_len-1, 0); head = &tracepoint_table[hash & (TRACEPOINT_TABLE_SIZE - 1)]; cds_hlist_for_each_entry(e, node, head, hlist) {