diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-08-07 02:36:12 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-08-07 02:36:12 -0400 |
| commit | 5e2aa2ed08e2e280121dc7cf5609c87d464f12ef (patch) | |
| tree | ca7d7b1480285e3b617fecc5b41f0ce150a82c32 /include/linux/tracepoint.h | |
| parent | f62d14a8072b9756db36ba394e2b267470a40240 (diff) | |
| parent | fc8104bc5a3f6f49d79f45f2706f79f77a9fb2ae (diff) | |
Merge branch 'next' into for-linus
Prepare first round of input updates for 3.17.
Diffstat (limited to 'include/linux/tracepoint.h')
| -rw-r--r-- | include/linux/tracepoint.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h index 9d30ee469c2a..2e2a5f7717e5 100644 --- a/include/linux/tracepoint.h +++ b/include/linux/tracepoint.h | |||
| @@ -185,6 +185,11 @@ extern void syscall_unregfunc(void); | |||
| 185 | static inline void \ | 185 | static inline void \ |
| 186 | check_trace_callback_type_##name(void (*cb)(data_proto)) \ | 186 | check_trace_callback_type_##name(void (*cb)(data_proto)) \ |
| 187 | { \ | 187 | { \ |
| 188 | } \ | ||
| 189 | static inline bool \ | ||
| 190 | trace_##name##_enabled(void) \ | ||
| 191 | { \ | ||
| 192 | return static_key_false(&__tracepoint_##name.key); \ | ||
| 188 | } | 193 | } |
| 189 | 194 | ||
| 190 | /* | 195 | /* |
| @@ -230,6 +235,11 @@ extern void syscall_unregfunc(void); | |||
| 230 | } \ | 235 | } \ |
| 231 | static inline void check_trace_callback_type_##name(void (*cb)(data_proto)) \ | 236 | static inline void check_trace_callback_type_##name(void (*cb)(data_proto)) \ |
| 232 | { \ | 237 | { \ |
| 238 | } \ | ||
| 239 | static inline bool \ | ||
| 240 | trace_##name##_enabled(void) \ | ||
| 241 | { \ | ||
| 242 | return false; \ | ||
| 233 | } | 243 | } |
| 234 | 244 | ||
| 235 | #define DEFINE_TRACE_FN(name, reg, unreg) | 245 | #define DEFINE_TRACE_FN(name, reg, unreg) |
