diff options
Diffstat (limited to 'kernel/trace/trace.h')
| -rw-r--r-- | kernel/trace/trace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 57d7e5397d56..2081971367ea 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
| @@ -283,11 +283,15 @@ struct tracer { | |||
| 283 | enum print_line_t (*print_line)(struct trace_iterator *iter); | 283 | enum print_line_t (*print_line)(struct trace_iterator *iter); |
| 284 | /* If you handled the flag setting, return 0 */ | 284 | /* If you handled the flag setting, return 0 */ |
| 285 | int (*set_flag)(u32 old_flags, u32 bit, int set); | 285 | int (*set_flag)(u32 old_flags, u32 bit, int set); |
| 286 | /* Return 0 if OK with change, else return non-zero */ | ||
| 287 | int (*flag_changed)(struct tracer *tracer, | ||
| 288 | u32 mask, int set); | ||
| 286 | struct tracer *next; | 289 | struct tracer *next; |
| 287 | struct tracer_flags *flags; | 290 | struct tracer_flags *flags; |
| 288 | bool print_max; | 291 | bool print_max; |
| 289 | bool use_max_tr; | 292 | bool use_max_tr; |
| 290 | bool allocated_snapshot; | 293 | bool allocated_snapshot; |
| 294 | bool enabled; | ||
| 291 | }; | 295 | }; |
| 292 | 296 | ||
| 293 | 297 | ||
| @@ -943,6 +947,8 @@ extern const char *__stop___trace_bprintk_fmt[]; | |||
| 943 | 947 | ||
| 944 | void trace_printk_init_buffers(void); | 948 | void trace_printk_init_buffers(void); |
| 945 | void trace_printk_start_comm(void); | 949 | void trace_printk_start_comm(void); |
| 950 | int trace_keep_overwrite(struct tracer *tracer, u32 mask, int set); | ||
| 951 | int set_tracer_flag(unsigned int mask, int enabled); | ||
| 946 | 952 | ||
| 947 | #undef FTRACE_ENTRY | 953 | #undef FTRACE_ENTRY |
| 948 | #define FTRACE_ENTRY(call, struct_name, id, tstruct, print, filter) \ | 954 | #define FTRACE_ENTRY(call, struct_name, id, tstruct, print, filter) \ |
