perf timechart: Add backtrace support to CPU info
Add backtrace info to the CPU usage timechart. Signed-off-by: Stanislav Fomichev <stfomichev@yandex-team.ru> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Ramkumar Ramachandra <artagnon@gmail.com> Link: http://lkml.kernel.org/r/1385995056-20158-2-git-send-email-stfomichev@yandex-team.ru Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
553873e1df
commit
8b6dcca017
@@ -837,8 +837,14 @@ static void draw_cpu_usage(struct timechart *tchart)
|
||||
while (c) {
|
||||
sample = c->samples;
|
||||
while (sample) {
|
||||
if (sample->type == TYPE_RUNNING)
|
||||
svg_process(sample->cpu, sample->start_time, sample->end_time, "sample", c->comm);
|
||||
if (sample->type == TYPE_RUNNING) {
|
||||
svg_process(sample->cpu,
|
||||
sample->start_time,
|
||||
sample->end_time,
|
||||
"sample",
|
||||
c->comm,
|
||||
sample->backtrace);
|
||||
}
|
||||
|
||||
sample = sample->next;
|
||||
}
|
||||
|
Reference in New Issue
Block a user