diff options
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 2cd96399463f..0605fc00c176 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -338,6 +338,14 @@ struct trace_entry *tracing_get_trace_entry(struct trace_array *tr, | |||
338 | struct trace_entry *trace_find_next_entry(struct trace_iterator *iter, | 338 | struct trace_entry *trace_find_next_entry(struct trace_iterator *iter, |
339 | int *ent_cpu, u64 *ent_ts); | 339 | int *ent_cpu, u64 *ent_ts); |
340 | 340 | ||
341 | int trace_empty(struct trace_iterator *iter); | ||
342 | |||
343 | void *trace_find_next_entry_inc(struct trace_iterator *iter); | ||
344 | |||
345 | void trace_init_global_iter(struct trace_iterator *iter); | ||
346 | |||
347 | void tracing_iter_reset(struct trace_iterator *iter, int cpu); | ||
348 | |||
341 | void default_wait_pipe(struct trace_iterator *iter); | 349 | void default_wait_pipe(struct trace_iterator *iter); |
342 | void poll_wait_pipe(struct trace_iterator *iter); | 350 | void poll_wait_pipe(struct trace_iterator *iter); |
343 | 351 | ||
@@ -380,6 +388,15 @@ void tracing_start_sched_switch_record(void); | |||
380 | int register_tracer(struct tracer *type); | 388 | int register_tracer(struct tracer *type); |
381 | void unregister_tracer(struct tracer *type); | 389 | void unregister_tracer(struct tracer *type); |
382 | int is_tracing_stopped(void); | 390 | int is_tracing_stopped(void); |
391 | enum trace_file_type { | ||
392 | TRACE_FILE_LAT_FMT = 1, | ||
393 | TRACE_FILE_ANNOTATE = 2, | ||
394 | }; | ||
395 | |||
396 | extern cpumask_var_t __read_mostly tracing_buffer_mask; | ||
397 | |||
398 | #define for_each_tracing_cpu(cpu) \ | ||
399 | for_each_cpu(cpu, tracing_buffer_mask) | ||
383 | 400 | ||
384 | extern int process_new_ksym_entry(char *ksymname, int op, unsigned long addr); | 401 | extern int process_new_ksym_entry(char *ksymname, int op, unsigned long addr); |
385 | 402 | ||
@@ -471,6 +488,8 @@ trace_array_vprintk(struct trace_array *tr, | |||
471 | unsigned long ip, const char *fmt, va_list args); | 488 | unsigned long ip, const char *fmt, va_list args); |
472 | int trace_array_printk(struct trace_array *tr, | 489 | int trace_array_printk(struct trace_array *tr, |
473 | unsigned long ip, const char *fmt, ...); | 490 | unsigned long ip, const char *fmt, ...); |
491 | void trace_printk_seq(struct trace_seq *s); | ||
492 | enum print_line_t print_trace_line(struct trace_iterator *iter); | ||
474 | 493 | ||
475 | extern unsigned long trace_flags; | 494 | extern unsigned long trace_flags; |
476 | 495 | ||