X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=liblttng-ust%2Ftracepoint.c;h=526ee00e58d130cd2093ab59e31078b7cdbf52b4;hb=2b2d6ff75efc17aa74ea9b0a7f8c756d812804bb;hp=217ef4c22af2de76e8fe2990d7facc187f825386;hpb=b728d87e617189fe9898a9492a559ecf949d2348;p=lttng-ust.git diff --git a/liblttng-ust/tracepoint.c b/liblttng-ust/tracepoint.c index 217ef4c2..526ee00e 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,7 +32,9 @@ #include #include +#include "tracepoint-internal.h" #include "ltt-tracer-core.h" +#include "jhash.h" /* Set to 1 to enable tracepoint debug output */ static const int tracepoint_debug; @@ -199,7 +200,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 +220,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) {