Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:print_trace_header

Proto:void print_trace_header(struct seq_file *m, struct trace_iterator *iter)

Type:void

Parameter:

TypeParameterName
struct seq_file *m
struct trace_iterator *iter
3724  sym_flags = trace_flags & TRACE_ITER_SYM_MASK masks the options in trace_flags that* control the output of kernel symbols.
3725  buf = trace_buffer
3726  data = per_cpu_ptr(data, cpu)
3727  type = trace
3730  name = "preemption"
3732  name = name
3734  get_total_entries(buf, & total, & entries)
3736  seq_printf(m, "# %s latency trace v1.1.5 on %s\n", name, UTS_RELEASE)
3738  seq_puts(m, "# --------------------------------------------------------------------\n")
3740  seq_printf(m, "# latency: %lu us, #%lu/%lu, CPU#%d | (M:%s VP:%d, KP:%d, SP:%d HP:%d", nsecs_to_usecs(saved_latency), entries, total, cpu, "unknown", 0, 0, 0, 0)
3762  seq_puts(m, ")\n")
3764  seq_puts(m, "# -----------------\n")
3765  seq_printf(m, "# | task: %.16s-%d (uid:%d nice:%ld policy:%ld rt_prio:%ld)\n", comm, pid, m_kuid_munged - Create a uid from a kuid user-namespace pair.*@targ: The user namespace we want a uid in.*@kuid: The kernel internal uid to start with.* Map @kuid into the user-namespace specified by @targ and* return the resulting uid., nice, policy, rt_priority)
3770  seq_puts(m, "# -----------------\n")
3772  If critical_start Then
3773  seq_puts(m, "# => started at: ")
3774  seq_print_ip_sym( & The below is zeroed out in pipe_read , critical_start, sym_flags)
3775  trace_print_seq(m, & The below is zeroed out in pipe_read )
3776  seq_puts(m, "\n# => ended at: ")
3777  seq_print_ip_sym( & The below is zeroed out in pipe_read , critical_end, sym_flags)
3778  trace_print_seq(m, & The below is zeroed out in pipe_read )
3779  seq_puts(m, "\n#\n")
3782  seq_puts(m, "#\n")
Caller
NameDescribe
trace_latency_header
trace_default_header
print_graph_headers_flags