use ftrace during boot phase

use ftrace during boot phase

trace_buf_size [KMG]

比如trace_buf_size=1M,这将会把每个cpu的trace buffer设置为1M

trace_event

trace_event=sched:*,timer:*,irq:*

trace_options

用逗号隔开的option list,比如trace_options=stacktrace(trace里的结果将包含stacktrace)

trace option有如下这些:

复制代码
/sys/kernel/debug/tracing # cat trace_options                          
print-parent
nosym-offset
nosym-addr
noverbose
noraw
nohex
nobin
noblock
trace_printk
annotate
nouserstacktrace
nosym-userobj
noprintk-msg-only
context-info
nolatency-format
record-cmd
norecord-tgid
overwrite
nodisable_on_free
irq-info
markers
noevent-fork
stacktrace
notest_nop_accept
notest_nop_refuse
复制代码

 

ftrace

比如ftrace=function_graph,tracer设置为function_graph,开机过程中会自动开启tracing,tracing_on的值将为1。如果没有设置ftrace cmdline arg,尽管你有设置trace event,开机过程中不会自动enable trace(tracing_on的值还是0)

reference: https://cloud.tencent.com/developer/article/1797239

 

posted @   aspirs  阅读(119)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 在鹅厂做java开发是什么体验
· 百万级群聊的设计实践
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
· 永远不要相信用户的输入:从 SQL 注入攻防看输入验证的重要性
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
点击右上角即可分享
微信分享提示