This set of functions can be used to extract common fields from a record.
The tep_data_type() function gets the event id from the record rec.
It reads the "common_type" field. The tep argument is the trace event parser
context.
The tep_data_pid() function gets the process id from the record rec.
It reads the "common_pid" field. The tep argument is the trace event parser
context.
The tep_data_preempt_count() function gets the preemption count from the
record rec. It reads the "common_preempt_count" field. The tep argument is
the trace event parser context.
The tep_data_flags() function gets the latency flags from the record rec.
It reads the "common_flags" field. The tep argument is the trace event parser
context. Supported latency flags are:
TRACE_FLAG_IRQS_OFF, Interrupts are disabled.
TRACE_FLAG_IRQS_NOSUPPORT, Reading IRQ flag is not supported by the architecture.
TRACE_FLAG_NEED_RESCHED, Task needs rescheduling.
TRACE_FLAG_HARDIRQ, Hard IRQ is running.
TRACE_FLAG_SOFTIRQ, Soft IRQ is running.