]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Handle kernels that don't support attr.exclude_{guest,host}
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 14 Feb 2012 16:05:30 +0000 (14:05 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 3 Mar 2012 15:19:56 +0000 (12:19 -0300)
commita9d6a7713184ddd9c6be8e2cb37ce4d047643aa3
tree4494b12fe85f4a4f088a82588d23b2e19e6500ad
parent453ae6847e16641ef33c3b45674983ca276d0e79
perf tools: Handle kernels that don't support attr.exclude_{guest,host}

Just fall back to resetting those fields, if set, warning the user that
that feature is not available.

If guest samples appear they will just be discarded because no struct
machine will be found and thus the event will be accounted as not
handled and dropped, see 0c09571.

Reported-by: Namhyung Kim <namhyung@gmail.com>
Tested-by: Joerg Roedel <joerg.roedel@amd.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Joerg Roedel <joerg.roedel@amd.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-vuwxig36mzprl5n7nzvnxxsh@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/builtin-top.c
tools/perf/perf.h
tools/perf/util/top.h