diff options
Diffstat (limited to 'include/linux/ftrace_event.h')
| -rw-r--r-- | include/linux/ftrace_event.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index 28672e87e910..0bebb5c348b8 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
| @@ -138,6 +138,17 @@ enum print_line_t { | |||
| 138 | TRACE_TYPE_NO_CONSUME = 3 /* Handled but ask to not consume */ | 138 | TRACE_TYPE_NO_CONSUME = 3 /* Handled but ask to not consume */ |
| 139 | }; | 139 | }; |
| 140 | 140 | ||
| 141 | /* | ||
| 142 | * Several functions return TRACE_TYPE_PARTIAL_LINE if the trace_seq | ||
| 143 | * overflowed, and TRACE_TYPE_HANDLED otherwise. This helper function | ||
| 144 | * simplifies those functions and keeps them in sync. | ||
| 145 | */ | ||
| 146 | static inline enum print_line_t trace_handle_return(struct trace_seq *s) | ||
| 147 | { | ||
| 148 | return trace_seq_has_overflowed(s) ? | ||
| 149 | TRACE_TYPE_PARTIAL_LINE : TRACE_TYPE_HANDLED; | ||
| 150 | } | ||
| 151 | |||
| 141 | void tracing_generic_entry_update(struct trace_entry *entry, | 152 | void tracing_generic_entry_update(struct trace_entry *entry, |
| 142 | unsigned long flags, | 153 | unsigned long flags, |
| 143 | int pc); | 154 | int pc); |
