Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_output.c Create Date:2022-07-28 12:04:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:trace_print_context

Proto:int trace_print_context(struct trace_iterator *iter)

Type:int

Parameter:

TypeParameterName
struct trace_iterator *iter
582  tr = tr
583  s = The below is zeroed out in pipe_read
584  entry = ent
589  trace_find_cmdline(pid, comm)
591  Currently only defined when tracing is enabled.
593  If trace_flags & TRACE_ITER_RECORD_TGID Then
594  tgid = trace_find_tgid(pid)
596  If Not tgid Then Currently only defined when tracing is enabled.
598  Else Currently only defined when tracing is enabled.
602  Currently only defined when tracing is enabled.
604  If trace_flags & TRACE_ITER_IRQ_INFO Then race_print_lat_fmt - print the irq, preempt and lockdep fields*@s: trace seq struct to write to*@entry: The trace entry field from the ring buffer* Prints the generic fields of irqs off, in hard or softirq, preempt* count.
607  If iter_flags & TRACE_FILE_TIME_IN_NS Then
608  t = ns2usecs(ts)
609  usec_rem = do_div() is NOT a C function(t, USEC_PER_SEC)
610  secs = t
611  Currently only defined when tracing is enabled.
612  Else Currently only defined when tracing is enabled.
615  Return Not race_seq_has_overflowed - return true if the trace_seq took too much*@s: trace sequence descriptor* Returns true if too much data was added to the trace_seq and it is* now full and will not take anymore.
Caller
NameDescribe
print_trace_fmt