函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace.c Create Date:2022-07-27 13:05:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:print_trace_header

函数原型:void print_trace_header(struct seq_file *m, struct trace_iterator *iter)

返回类型:void

参数:

类型参数名称
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  如果critical_start
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")
调用者
名称描述
trace_latency_header
trace_default_header
print_graph_headers_flags