Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118013
b: refs/heads/master
c: f66af45
h: refs/heads/master
i:
  118011: 2f1e611
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Oct 27, 2008
1 parent 56e8f44 commit 514ba0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5209f08dc8e5f520ca81b87fa9a7142f58a109f4
refs/heads/master: f66af459a931f25807e1df7915b2b66bb5978d82
8 changes: 8 additions & 0 deletions trunk/kernel/tracepoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ tracepoint_entry_remove_probe(struct tracepoint_entry *entry, void *probe)

old = entry->funcs;

if (!old)
return NULL;

debug_print_probes(entry);
/* (N -> M), (N > 1, M >= 0) probes */
for (nr_probes = 0; old[nr_probes]; nr_probes++) {
Expand Down Expand Up @@ -388,6 +391,11 @@ int tracepoint_probe_unregister(const char *name, void *probe)
if (entry->rcu_pending)
rcu_barrier_sched();
old = tracepoint_entry_remove_probe(entry, probe);
if (!old) {
printk(KERN_WARNING "Warning: Trying to unregister a probe"
"that doesn't exist\n");
goto end;
}
mutex_unlock(&tracepoints_mutex);
tracepoint_update_probes(); /* may update entry */
mutex_lock(&tracepoints_mutex);
Expand Down

0 comments on commit 514ba0e

Please sign in to comment.