aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h28
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
442struct ring_buffer_event; 440struct ring_buffer_event;
443 441
444struct ring_buffer_event *trace_buffer_lock_reserve(struct trace_array *tr, 442struct ring_buffer_event *
445 int type, 443trace_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,
449void trace_buffer_unlock_commit(struct trace_array *tr, 447 int pc);
448void 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
498extern unsigned long nsecs_to_usecs(unsigned long nsecs); 497extern unsigned long nsecs_to_usecs(unsigned long nsecs);
499 498
499#ifdef CONFIG_TRACER_MAX_TRACE
500extern unsigned long tracing_max_latency; 500extern unsigned long tracing_max_latency;
501extern unsigned long tracing_thresh; 501extern unsigned long tracing_thresh;
502 502
503void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu); 503void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu);
504void update_max_tr_single(struct trace_array *tr, 504void 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
508void ftrace_trace_stack(struct trace_array *tr, unsigned long flags, 509void ftrace_trace_stack(struct ring_buffer *buffer, unsigned long flags,
509 int skip, int pc); 510 int skip, int pc);
510 511
511void ftrace_trace_userstack(struct trace_array *tr, unsigned long flags, 512void ftrace_trace_userstack(struct ring_buffer *buffer, unsigned long flags,
512 int pc); 513 int pc);
513 514
514void __trace_stack(struct trace_array *tr, unsigned long flags, int skip, 515void __trace_stack(struct trace_array *tr, unsigned long flags, int skip,
@@ -589,6 +590,11 @@ extern int
589trace_vbprintk(unsigned long ip, const char *fmt, va_list args); 590trace_vbprintk(unsigned long ip, const char *fmt, va_list args);
590extern int 591extern int
591trace_vprintk(unsigned long ip, const char *fmt, va_list args); 592trace_vprintk(unsigned long ip, const char *fmt, va_list args);
593extern int
594trace_array_vprintk(struct trace_array *tr,
595 unsigned long ip, const char *fmt, va_list args);
596int trace_array_printk(struct trace_array *tr,
597 unsigned long ip, const char *fmt, ...);
592 598
593extern unsigned long trace_flags; 599extern unsigned long trace_flags;
594 600