mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-10 08:46:39 +07:00
6f8d67fa0c
Add -g flag to `perf timechart record` which saves callchain info in the perf.data. When generating SVG, add backtrace information to the figure details, so now it's possible to see which code path woke up the task and why some task went to sleep. Signed-off-by: Stanislav Fomichev <stfomichev@yandex-team.ru> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1383323151-19810-8-git-send-email-stfomichev@yandex-team.ru Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
78 lines
1.7 KiB
Plaintext
78 lines
1.7 KiB
Plaintext
perf-timechart(1)
|
|
=================
|
|
|
|
NAME
|
|
----
|
|
perf-timechart - Tool to visualize total system behavior during a workload
|
|
|
|
SYNOPSIS
|
|
--------
|
|
[verse]
|
|
'perf timechart' [<timechart options>] {record} [<record options>]
|
|
|
|
DESCRIPTION
|
|
-----------
|
|
There are two variants of perf timechart:
|
|
|
|
'perf timechart record <command>' to record the system level events
|
|
of an arbitrary workload.
|
|
|
|
'perf timechart' to turn a trace into a Scalable Vector Graphics file,
|
|
that can be viewed with popular SVG viewers such as 'Inkscape'.
|
|
|
|
TIMECHART OPTIONS
|
|
-----------------
|
|
-o::
|
|
--output=::
|
|
Select the output file (default: output.svg)
|
|
-i::
|
|
--input=::
|
|
Select the input file (default: perf.data unless stdin is a fifo)
|
|
-w::
|
|
--width=::
|
|
Select the width of the SVG file (default: 1000)
|
|
-P::
|
|
--power-only::
|
|
Only output the CPU power section of the diagram
|
|
-T::
|
|
--tasks-only::
|
|
Don't output processor state transitions
|
|
-p::
|
|
--process::
|
|
Select the processes to display, by name or PID
|
|
|
|
--symfs=<directory>::
|
|
Look for files with symbols relative to this directory.
|
|
|
|
EXAMPLES
|
|
--------
|
|
|
|
$ perf timechart record git pull
|
|
|
|
[ perf record: Woken up 13 times to write data ]
|
|
[ perf record: Captured and wrote 4.253 MB perf.data (~185801 samples) ]
|
|
|
|
$ perf timechart
|
|
|
|
Written 10.2 seconds of trace to output.svg.
|
|
|
|
-n::
|
|
--proc-num::
|
|
Print task info for at least given number of tasks.
|
|
|
|
RECORD OPTIONS
|
|
--------------
|
|
-P::
|
|
--power-only::
|
|
Record only power-related events
|
|
-T::
|
|
--tasks-only::
|
|
Record only tasks-related events
|
|
-g::
|
|
--callchain::
|
|
Do call-graph (stack chain/backtrace) recording
|
|
|
|
SEE ALSO
|
|
--------
|
|
linkperf:perf-record[1]
|