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.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index be3b3cf95f4b..648433d18ccb 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -72,6 +72,23 @@ struct print_entry {
72}; 72};
73 73
74/* 74/*
75 * trace_flag_type is an enumeration that holds different
76 * states when a trace occurs. These are:
77 * IRQS_OFF - interrupts were disabled
78 * NEED_RESCED - reschedule is requested
79 * HARDIRQ - inside an interrupt handler
80 * SOFTIRQ - inside a softirq handler
81 * CONT - multiple entries hold the trace item
82 */
83enum trace_flag_type {
84 TRACE_FLAG_IRQS_OFF = 0x01,
85 TRACE_FLAG_NEED_RESCHED = 0x02,
86 TRACE_FLAG_HARDIRQ = 0x04,
87 TRACE_FLAG_SOFTIRQ = 0x08,
88 TRACE_FLAG_CONT = 0x10,
89};
90
91/*
75 * The trace field - the most basic unit of tracing. This is what 92 * The trace field - the most basic unit of tracing. This is what
76 * is printed in the end as a single line in the trace output, such as: 93 * is printed in the end as a single line in the trace output, such as:
77 * 94 *
@@ -330,6 +347,8 @@ extern int trace_selftest_startup_sysprof(struct tracer *trace,
330 347
331extern void *head_page(struct trace_array_cpu *data); 348extern void *head_page(struct trace_array_cpu *data);
332extern int trace_seq_printf(struct trace_seq *s, const char *fmt, ...); 349extern int trace_seq_printf(struct trace_seq *s, const char *fmt, ...);
350extern void trace_seq_print_cont(struct trace_seq *s,
351 struct trace_iterator *iter);
333extern ssize_t trace_seq_to_user(struct trace_seq *s, char __user *ubuf, 352extern ssize_t trace_seq_to_user(struct trace_seq *s, char __user *ubuf,
334 size_t cnt); 353 size_t cnt);
335extern long ns2usecs(cycle_t nsec); 354extern long ns2usecs(cycle_t nsec);