diff options
author | Pekka Paalanen <pq@iki.fi> | 2008-09-16 15:06:42 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-14 04:37:20 -0400 |
commit | 5bf9a1ee350a10feb94107de32a203d81fbbe706 (patch) | |
tree | ac6b11aaa35194aed9fe9f1403c9542d070d0c62 /kernel/trace/trace.h | |
parent | 4427414170a63331a9cc36b9598502c5cdfe453b (diff) |
ftrace: inject markers via trace_marker file
Allow a user to inject a marker (TRACE_PRINT entry) into the trace ring
buffer. The related file operations are derived from code by Frédéric
Weisbecker <fweisbec@gmail.com>.
Signed-off-by: Pekka Paalanen <pq@iki.fi>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 648433d18ccb..42f65d0097f0 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -124,6 +124,10 @@ struct trace_entry { | |||
124 | }; | 124 | }; |
125 | 125 | ||
126 | #define TRACE_ENTRY_SIZE sizeof(struct trace_entry) | 126 | #define TRACE_ENTRY_SIZE sizeof(struct trace_entry) |
127 | #define TRACE_BUF_SIZE 1024 | ||
128 | #define TRACE_PRINT_BUF_SIZE \ | ||
129 | (sizeof(struct trace_field) - offsetof(struct trace_field, print.buf)) | ||
130 | #define TRACE_CONT_BUF_SIZE sizeof(struct trace_field) | ||
127 | 131 | ||
128 | /* | 132 | /* |
129 | * The CPU trace array - it consists of thousands of trace entries | 133 | * The CPU trace array - it consists of thousands of trace entries |