aboutsummaryrefslogtreecommitdiff
path: root/include/linux/tracepoint.h
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>2008-11-14 17:47:44 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-16 09:01:33 +0100
commitc420970ef476d7d68df119711700666224001f43 (patch)
treec10ebb11a03199f99d779472037bd49129b43abb /include/linux/tracepoint.h
parentda7b3eab167091693ad215ad7692f7d0d24d1356 (diff)
downloadlinux-linaro-stable-c420970ef476d7d68df119711700666224001f43.tar.gz
tracepoints: use unregister return value
Impact: bugfix. Unregistering a tracepoint can fail. Return the error value. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/tracepoint.h')
-rw-r--r--include/linux/tracepoint.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
index 69648c54a326..c60a791f8874 100644
--- a/include/linux/tracepoint.h
+++ b/include/linux/tracepoint.h
@@ -73,9 +73,9 @@ struct tracepoint {
return tracepoint_probe_register(#name ":" #proto, \
(void *)probe); \
} \
- static inline void unregister_trace_##name(void (*probe)(proto))\
+ static inline int unregister_trace_##name(void (*probe)(proto)) \
{ \
- tracepoint_probe_unregister(#name ":" #proto, \
+ return tracepoint_probe_unregister(#name ":" #proto, \
(void *)probe); \
}
@@ -92,8 +92,10 @@ extern void tracepoint_update_probe_range(struct tracepoint *begin,
{ \
return -ENOSYS; \
} \
- static inline void unregister_trace_##name(void (*probe)(proto))\
- { }
+ static inline int unregister_trace_##name(void (*probe)(proto)) \
+ { \
+ return -ENOSYS; \
+ }
static inline void tracepoint_update_probe_range(struct tracepoint *begin,
struct tracepoint *end)