-/*
- * The trace field - the most basic unit of tracing. This is what
- * is printed in the end as a single line in the trace output, such as:
- *
- * bash-15816 [01] 235.197585: idle_cpu <- irq_enter
- */
-struct trace_field {
- char cpu;
- char flags;
- char preempt_count;
- int pid;
- union {
- struct ftrace_entry fn;
- struct ctx_switch_entry ctx;
- struct special_entry special;
- struct stack_entry stack;
- struct print_entry print;
- struct mmiotrace_rw mmiorw;
- struct mmiotrace_map mmiomap;
- struct boot_trace initcall;
- };
-};
-
-struct trace_field_cont {
- char buf[sizeof(struct trace_field)];
-};
-
-struct trace_entry {
- char type;
- union {
- struct trace_field field;
- struct trace_field_cont cont;
- };
-};
-
-#define TRACE_ENTRY_SIZE sizeof(struct trace_entry)