trace-cmd 最常用的场景就是 record/report # trace-cmd record -e ext4 ls[...]# trace-cmd reportversion=6CPU1is emptycpus=2trace-cmd-7374[000]1062.484227: ext4_request_inode:\dev 253:2 dir40801mode33188trace-cmd-7374[000]1062.484309: ext4_allocate_inode:\dev 253:2 ino10454dir40801mode3318...
trace-cmd record [OPTIONS] [command] DESCRIPTION The trace-cmd(1) record command will set up the Ftrace Linux kernel tracer to record the specified plugins or events that happen while the command executes. If no command is given, then it will record until the user hits Ctrl-C. The recor...
trace-cmd-12697 [000] 11303.928123: funcgraph_entry: 0.083 us | ext4_init_pending_tree(); trace-cmd-12697 [000] 11303.928123: funcgraph_entry: 0.141 us | ext4_fc_init_inode(); trace-cmd-12697 [000] 11303.928123: funcgraph_exit: 0.931 us | } trace-cmd-12697 [000] 11303.928124: funcg...
trace-cmd record用于录制ftrace信息,通过如下选项可以指定只跟踪特定traceevents,或者跟踪特定pid、或者跟踪特定funtion/function_graph函数。 还可以设置cpumask、ringbuffer大小等等。 usage: trace-cmd record [-v][-e event [-ffilter]][-p plugin][-F][-d][-D][-o file] \ [-s usecs][-O option ]...
trace-cmd record用于录制ftrace信息,通过如下选项可以指定只跟踪特定traceevents,或者跟踪特定pid、或者跟踪特定funtion/function_graph函数。 还可以设置cpumask、ringbuffer大小等等。 usage: trace-cmd record [-v][-e event [-f filter]][-p plugin][-F][-d][-D][-o file] \ ...
源代码下载地址:https://github.com/rostedt/trace-cmd 3、2 使用帮助手册 $ trace-cmd record -h trace-cmd version 2.3.1 usage: trace-cmd record [-v][-e event [-f filter]][-p plugin][-F][-d][-D][-o file] \ [-s usecs][-O option ][-l func][-g func][-n func] \ ...
The android port of trace-cmd tool. Contribute to pniemine/trace-cmd development by creating an account on GitHub.
trace-cmd stream ['OPTIONS'] ['command'] profile 类似于trace-cmd record - profile命令,但profile不会将跟踪内容写入文件,可以节省磁盘空间,适用于长时间跟踪。 trace-cmd profile ['OPTIONS'] ['command'] hist 对trace.dat显式统计信息。 trace-cmd hist ['OPTIONS']['input-file'] ...
# trace-cmd list -f | grep ^ext4_# trace-cmd record -l ext4_* -p function_graph plugin ...
#trace-cmd record -e kmalloc-f 'bytes_alloc==4096' -e kfree -T (-T 打印堆栈) 等待几分钟之后… #ctrl ^c 中断trace-cmd #trace-cmd report 以上步骤相当于: 等待几分钟之后… #cp /sys/kernel/debug/tracing/trace_pipe /tmp/kmalloc-trace ...