diff options
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index f5362a0529eb..821064914c80 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -258,9 +258,6 @@ struct trace_array_cpu { | |||
258 | atomic_t disabled; | 258 | atomic_t disabled; |
259 | void *buffer_page; /* ring buffer spare */ | 259 | void *buffer_page; /* ring buffer spare */ |
260 | 260 | ||
261 | /* these fields get copied into max-trace: */ | ||
262 | unsigned long trace_idx; | ||
263 | unsigned long overrun; | ||
264 | unsigned long saved_latency; | 261 | unsigned long saved_latency; |
265 | unsigned long critical_start; | 262 | unsigned long critical_start; |
266 | unsigned long critical_end; | 263 | unsigned long critical_end; |
@@ -268,6 +265,7 @@ struct trace_array_cpu { | |||
268 | unsigned long nice; | 265 | unsigned long nice; |
269 | unsigned long policy; | 266 | unsigned long policy; |
270 | unsigned long rt_priority; | 267 | unsigned long rt_priority; |
268 | unsigned long skipped_entries; | ||
271 | cycle_t preempt_timestamp; | 269 | cycle_t preempt_timestamp; |
272 | pid_t pid; | 270 | pid_t pid; |
273 | uid_t uid; | 271 | uid_t uid; |
@@ -441,12 +439,13 @@ void init_tracer_sysprof_debugfs(struct dentry *d_tracer); | |||
441 | 439 | ||
442 | struct ring_buffer_event; | 440 | struct ring_buffer_event; |
443 | 441 | ||
444 | struct ring_buffer_event *trace_buffer_lock_reserve(struct trace_array *tr, | 442 | struct ring_buffer_event * |
445 | int type, | 443 | trace_buffer_lock_reserve(struct ring_buffer *buffer, |
446 | unsigned long len, | 444 | int type, |
447 | unsigned long flags, | 445 | unsigned long len, |
448 | int pc); | 446 | unsigned long flags, |
449 | void trace_buffer_unlock_commit(struct trace_array *tr, | 447 | int pc); |
448 | void trace_buffer_unlock_commit(struct ring_buffer *buffer, | ||
450 | struct ring_buffer_event *event, | 449 | struct ring_buffer_event *event, |
451 | unsigned long flags, int pc); | 450 | unsigned long flags, int pc); |
452 | 451 | ||
@@ -497,18 +496,20 @@ void unregister_tracer(struct tracer *type); | |||
497 | 496 | ||
498 | extern unsigned long nsecs_to_usecs(unsigned long nsecs); | 497 | extern unsigned long nsecs_to_usecs(unsigned long nsecs); |
499 | 498 | ||
499 | #ifdef CONFIG_TRACER_MAX_TRACE | ||
500 | extern unsigned long tracing_max_latency; | 500 | extern unsigned long tracing_max_latency; |
501 | extern unsigned long tracing_thresh; | 501 | extern unsigned long tracing_thresh; |
502 | 502 | ||
503 | void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu); | 503 | void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu); |
504 | void update_max_tr_single(struct trace_array *tr, | 504 | void update_max_tr_single(struct trace_array *tr, |
505 | struct task_struct *tsk, int cpu); | 505 | struct task_struct *tsk, int cpu); |
506 | #endif /* CONFIG_TRACER_MAX_TRACE */ | ||
506 | 507 | ||
507 | #ifdef CONFIG_STACKTRACE | 508 | #ifdef CONFIG_STACKTRACE |
508 | void ftrace_trace_stack(struct trace_array *tr, unsigned long flags, | 509 | void ftrace_trace_stack(struct ring_buffer *buffer, unsigned long flags, |
509 | int skip, int pc); | 510 | int skip, int pc); |
510 | 511 | ||
511 | void ftrace_trace_userstack(struct trace_array *tr, unsigned long flags, | 512 | void ftrace_trace_userstack(struct ring_buffer *buffer, unsigned long flags, |
512 | int pc); | 513 | int pc); |
513 | 514 | ||
514 | void __trace_stack(struct trace_array *tr, unsigned long flags, int skip, | 515 | void __trace_stack(struct trace_array *tr, unsigned long flags, int skip, |
@@ -589,6 +590,11 @@ extern int | |||
589 | trace_vbprintk(unsigned long ip, const char *fmt, va_list args); | 590 | trace_vbprintk(unsigned long ip, const char *fmt, va_list args); |
590 | extern int | 591 | extern int |
591 | trace_vprintk(unsigned long ip, const char *fmt, va_list args); | 592 | trace_vprintk(unsigned long ip, const char *fmt, va_list args); |
593 | extern int | ||
594 | trace_array_vprintk(struct trace_array *tr, | ||
595 | unsigned long ip, const char *fmt, va_list args); | ||
596 | int trace_array_printk(struct trace_array *tr, | ||
597 | unsigned long ip, const char *fmt, ...); | ||
592 | 598 | ||
593 | extern unsigned long trace_flags; | 599 | extern unsigned long trace_flags; |
594 | 600 | ||