]> git.baikalelectronics.ru Git - kernel.git/commit
perf target: Add cpu flag to sample_type if target has cpu
authorNamhyung Kim <namhyung.kim@lge.com>
Mon, 21 May 2012 01:42:07 +0000 (10:42 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 22 May 2012 15:37:12 +0000 (12:37 -0300)
commit2015fd34b4c2a05a8a2e16014cc88d4508de1a4d
treee416c878d5ceb38659774967e42e83e4af13ea64
parent670f97cd5c46a1c51defe5d9f468db28169ea006
perf target: Add cpu flag to sample_type if target has cpu

Add PERF_SAMPLE_CPU flag into attr->sample_type if an user specified any
of cpu target (either system-wide or cpu list).

It will show correct values when cpu sort key is given for perf top and
perf report.

Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1337564527-9367-1-git-send-email-namhyung.kim@lge.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c
tools/perf/util/evsel.c