Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116571
b: refs/heads/master
c: 9795302
h: refs/heads/master
i:
  116569: 604e31d
  116567: 6389787
v: v3
  • Loading branch information
Mathieu Desnoyers authored and Ingo Molnar committed Oct 14, 2008
1 parent 66d35f4 commit ae6e9bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 611b1597680dd4a57896bcca1af0484be463c55e
refs/heads/master: 9795302acf2817d0842e56d23df6008e43df0970
6 changes: 3 additions & 3 deletions trunk/kernel/tracepoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static struct tracepoint_entry *get_tracepoint(const char *name)
struct tracepoint_entry *e;
u32 hash = jhash(name, strlen(name), 0);

head = &tracepoint_table[hash & ((1 << TRACEPOINT_HASH_BITS)-1)];
head = &tracepoint_table[hash & (TRACEPOINT_TABLE_SIZE - 1)];
hlist_for_each_entry(e, node, head, hlist) {
if (!strcmp(name, e->name))
return e;
Expand All @@ -197,7 +197,7 @@ static struct tracepoint_entry *add_tracepoint(const char *name)
size_t name_len = strlen(name) + 1;
u32 hash = jhash(name, name_len-1, 0);

head = &tracepoint_table[hash & ((1 << TRACEPOINT_HASH_BITS)-1)];
head = &tracepoint_table[hash & (TRACEPOINT_TABLE_SIZE - 1)];
hlist_for_each_entry(e, node, head, hlist) {
if (!strcmp(name, e->name)) {
printk(KERN_NOTICE
Expand Down Expand Up @@ -233,7 +233,7 @@ static int remove_tracepoint(const char *name)
size_t len = strlen(name) + 1;
u32 hash = jhash(name, len-1, 0);

head = &tracepoint_table[hash & ((1 << TRACEPOINT_HASH_BITS)-1)];
head = &tracepoint_table[hash & (TRACEPOINT_TABLE_SIZE - 1)];
hlist_for_each_entry(e, node, head, hlist) {
if (!strcmp(name, e->name)) {
found = 1;
Expand Down

0 comments on commit ae6e9bc

Please sign in to comment.