diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2016-03-15 17:55:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-15 19:55:16 -0400 |
commit | 20f6e03a40ba536dfc7c6f83dd894d994aeb39f3 (patch) | |
tree | 3cf137c5c626d95c4e9ee3046af1c175f4b9d27e /include | |
parent | ebded02788b5d7c7600f8cff26ae07896d568649 (diff) |
tracepoints: move trace_print_flags definitions to tracepoint-defs.h
The following patch will need to declare array of struct
trace_print_flags in a header. To prevent this header from pulling in
all of RCU through trace_events.h, move the struct
trace_print_flags{_64} definitions to the new lightweight
tracepoint-defs.h header.
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/trace_events.h | 10 | ||||
-rw-r--r-- | include/linux/tracepoint-defs.h | 14 |
2 files changed, 12 insertions, 12 deletions
diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 925730bc9fc1..705df7db4482 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h | |||
@@ -15,16 +15,6 @@ struct tracer; | |||
15 | struct dentry; | 15 | struct dentry; |
16 | struct bpf_prog; | 16 | struct bpf_prog; |
17 | 17 | ||
18 | struct trace_print_flags { | ||
19 | unsigned long mask; | ||
20 | const char *name; | ||
21 | }; | ||
22 | |||
23 | struct trace_print_flags_u64 { | ||
24 | unsigned long long mask; | ||
25 | const char *name; | ||
26 | }; | ||
27 | |||
28 | const char *trace_print_flags_seq(struct trace_seq *p, const char *delim, | 18 | const char *trace_print_flags_seq(struct trace_seq *p, const char *delim, |
29 | unsigned long flags, | 19 | unsigned long flags, |
30 | const struct trace_print_flags *flag_array); | 20 | const struct trace_print_flags *flag_array); |
diff --git a/include/linux/tracepoint-defs.h b/include/linux/tracepoint-defs.h index e1ee97c713bf..4ac89acb6136 100644 --- a/include/linux/tracepoint-defs.h +++ b/include/linux/tracepoint-defs.h | |||
@@ -3,13 +3,23 @@ | |||
3 | 3 | ||
4 | /* | 4 | /* |
5 | * File can be included directly by headers who only want to access | 5 | * File can be included directly by headers who only want to access |
6 | * tracepoint->key to guard out of line trace calls. Otherwise | 6 | * tracepoint->key to guard out of line trace calls, or the definition of |
7 | * linux/tracepoint.h should be used. | 7 | * trace_print_flags{_u64}. Otherwise linux/tracepoint.h should be used. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <linux/atomic.h> | 10 | #include <linux/atomic.h> |
11 | #include <linux/static_key.h> | 11 | #include <linux/static_key.h> |
12 | 12 | ||
13 | struct trace_print_flags { | ||
14 | unsigned long mask; | ||
15 | const char *name; | ||
16 | }; | ||
17 | |||
18 | struct trace_print_flags_u64 { | ||
19 | unsigned long long mask; | ||
20 | const char *name; | ||
21 | }; | ||
22 | |||
13 | struct tracepoint_func { | 23 | struct tracepoint_func { |
14 | void *func; | 24 | void *func; |
15 | void *data; | 25 | void *data; |