diff options
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index e541a6b7e312..a921ba5d292d 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -177,6 +177,14 @@ struct trace_array { | |||
177 | struct trace_array_cpu *data[NR_CPUS]; | 177 | struct trace_array_cpu *data[NR_CPUS]; |
178 | }; | 178 | }; |
179 | 179 | ||
180 | |||
181 | /* Return values for print_line callback */ | ||
182 | enum print_line_t { | ||
183 | TRACE_TYPE_PARTIAL_LINE = 0, /* Retry after flushing the seq */ | ||
184 | TRACE_TYPE_HANDLED = 1, | ||
185 | TRACE_TYPE_UNHANDLED = 2 /* Relay to other output functions */ | ||
186 | }; | ||
187 | |||
180 | /* | 188 | /* |
181 | * A specific tracer, represented by methods that operate on a trace array: | 189 | * A specific tracer, represented by methods that operate on a trace array: |
182 | */ | 190 | */ |
@@ -197,7 +205,7 @@ struct tracer { | |||
197 | int (*selftest)(struct tracer *trace, | 205 | int (*selftest)(struct tracer *trace, |
198 | struct trace_array *tr); | 206 | struct trace_array *tr); |
199 | #endif | 207 | #endif |
200 | int (*print_line)(struct trace_iterator *iter); | 208 | enum print_line_t (*print_line)(struct trace_iterator *iter); |
201 | struct tracer *next; | 209 | struct tracer *next; |
202 | int print_max; | 210 | int print_max; |
203 | }; | 211 | }; |