perf kvm: Disable live command if timerfd is not supported
authorDavid Ahern <dsahern@gmail.com>
Tue, 29 Oct 2013 16:43:16 +0000 (10:43 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 Nov 2013 13:03:22 +0000 (10:03 -0300)
commit87419c9afff1431d4b62b388baf6bfa07e0b14ff
tree67790f43f93fb6fde554ef37357e9bee7b124a89
parent41a4e6e2a0237e8ac895f43158ef7c91ab7af157
perf kvm: Disable live command if timerfd is not supported

If the OS does not have timerfd support (e.g., older OS'es like RHEL5)
disable perf kvm stat live.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Jiri Olsa <jolsa@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1383064996-20933-2-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-kvm.c
tools/perf/config/Makefile
tools/perf/config/feature-checks/Makefile
tools/perf/config/feature-checks/test-all.c
tools/perf/config/feature-checks/test-timerfd.c [new file with mode: 0644]