projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tracing: Add percpu buffers for trace_printk()
[deliverable/linux.git]
/
include
/
linux
/
kernel.h
diff --git
a/include/linux/kernel.h
b/include/linux/kernel.h
index 645231c373c8a5b5684e806a9d13647d1eb3300e..c0d34420a913ded0708a39aaed33a525cdc9e65b 100644
(file)
--- a/
include/linux/kernel.h
+++ b/
include/linux/kernel.h
@@
-480,15
+480,16
@@
do { \
#define trace_printk(fmt, args...) \
do { \
#define trace_printk(fmt, args...) \
do { \
+ static const char *trace_printk_fmt \
+ __attribute__((section("__trace_printk_fmt"))) = \
+ __builtin_constant_p(fmt) ? fmt : NULL; \
+ \
__trace_printk_check_format(fmt, ##args); \
__trace_printk_check_format(fmt, ##args); \
- if (__builtin_constant_p(fmt)) { \
- static const char *trace_printk_fmt \
- __attribute__((section("__trace_printk_fmt"))) = \
- __builtin_constant_p(fmt) ? fmt : NULL; \
\
\
+ if (__builtin_constant_p(fmt)) \
__trace_bprintk(_THIS_IP_, trace_printk_fmt, ##args); \
__trace_bprintk(_THIS_IP_, trace_printk_fmt, ##args); \
-
} else
\
- __trace_printk(_THIS_IP_, fmt, ##args); \
+
else
\
+ __trace_printk(_THIS_IP_, fmt, ##args);
\
} while (0)
extern __printf(2, 3)
} while (0)
extern __printf(2, 3)
This page took
0.026231 seconds
and
5
git commands to generate.