aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tracepoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/tracepoint.h')
-rw-r--r--include/linux/tracepoint.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
index acd522a91539..be586c632a0c 100644
--- a/include/linux/tracepoint.h
+++ b/include/linux/tracepoint.h
@@ -14,8 +14,10 @@
14 * See the file COPYING for more details. 14 * See the file COPYING for more details.
15 */ 15 */
16 16
17#include <linux/smp.h>
17#include <linux/errno.h> 18#include <linux/errno.h>
18#include <linux/types.h> 19#include <linux/types.h>
20#include <linux/cpumask.h>
19#include <linux/rcupdate.h> 21#include <linux/rcupdate.h>
20#include <linux/tracepoint-defs.h> 22#include <linux/tracepoint-defs.h>
21 23
@@ -338,15 +340,19 @@ extern void syscall_unregfunc(void);
338 * "void *__data, proto" as the callback prototype. 340 * "void *__data, proto" as the callback prototype.
339 */ 341 */
340#define DECLARE_TRACE_NOARGS(name) \ 342#define DECLARE_TRACE_NOARGS(name) \
341 __DECLARE_TRACE(name, void, , 1, void *__data, __data) 343 __DECLARE_TRACE(name, void, , \
344 cpu_online(raw_smp_processor_id()), \
345 void *__data, __data)
342 346
343#define DECLARE_TRACE(name, proto, args) \ 347#define DECLARE_TRACE(name, proto, args) \
344 __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \ 348 __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
345 PARAMS(void *__data, proto), \ 349 cpu_online(raw_smp_processor_id()), \
346 PARAMS(__data, args)) 350 PARAMS(void *__data, proto), \
351 PARAMS(__data, args))
347 352
348#define DECLARE_TRACE_CONDITION(name, proto, args, cond) \ 353#define DECLARE_TRACE_CONDITION(name, proto, args, cond) \
349 __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), PARAMS(cond), \ 354 __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
355 cpu_online(raw_smp_processor_id()) && (PARAMS(cond)), \
350 PARAMS(void *__data, proto), \ 356 PARAMS(void *__data, proto), \
351 PARAMS(__data, args)) 357 PARAMS(__data, args))
352 358