Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169544
b: refs/heads/master
c: dd004c4
h: refs/heads/master
v: v3
  • Loading branch information
Masami Hiramatsu authored and Ingo Molnar committed Oct 29, 2009
1 parent ac32f63 commit a810187
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 3f7e454af1dd8b9cea410d9380d3f71477e94f2b
refs/heads/master: dd004c475cd15a5749b04b0283d41ffdfa57d658
8 changes: 5 additions & 3 deletions trunk/kernel/trace/trace_kprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,14 @@ static void free_trace_probe(struct trace_probe *tp)
kfree(tp);
}

static struct trace_probe *find_probe_event(const char *event)
static struct trace_probe *find_probe_event(const char *event,
const char *group)
{
struct trace_probe *tp;

list_for_each_entry(tp, &probe_list, list)
if (!strcmp(tp->call.name, event))
if (strcmp(tp->call.name, event) == 0 &&
strcmp(tp->call.system, group) == 0)
return tp;
return NULL;
}
Expand All @@ -383,7 +385,7 @@ static int register_trace_probe(struct trace_probe *tp)
mutex_lock(&probe_lock);

/* register as an event */
old_tp = find_probe_event(tp->call.name);
old_tp = find_probe_event(tp->call.name, tp->call.system);
if (old_tp) {
/* delete old event */
unregister_trace_probe(old_tp);
Expand Down

0 comments on commit a810187

Please sign in to comment.