aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/parse-events.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2012-01-04 11:54:20 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-01-06 12:47:37 -0500
commit1aed2671738785e8f5aea663a6fda91aa7ef59b5 (patch)
treec28239bcbdc3b86278cceb27e2b33187c81ac20e /tools/perf/util/parse-events.c
parentdf25f989a4390ca0dbc9cb24516d4b10c01ceda8 (diff)
perf kvm: Do guest-only counting by default
Make use of exclude_guest and exlude_host in perf-kvm to do only guest-only counting by default. Cc: Gleb Natapov <gleb@redhat.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Joerg Roedel <joro@8bytes.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> [ committer note: Moved perf_{guest,host} & event_attr_init to util.c ] [ so as not to drag more stuff to the python binding] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/parse-events.c')
-rw-r--r--tools/perf/util/parse-events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c
index 531c283fc0c5..dcf999c766b1 100644
--- a/tools/perf/util/parse-events.c
+++ b/tools/perf/util/parse-events.c
@@ -838,6 +838,7 @@ int parse_events(struct perf_evlist *evlist , const char *str, int unset __used)
838 for (;;) { 838 for (;;) {
839 ostr = str; 839 ostr = str;
840 memset(&attr, 0, sizeof(attr)); 840 memset(&attr, 0, sizeof(attr));
841 event_attr_init(&attr);
841 ret = parse_event_symbols(evlist, &str, &attr); 842 ret = parse_event_symbols(evlist, &str, &attr);
842 if (ret == EVT_FAILED) 843 if (ret == EVT_FAILED)
843 return -1; 844 return -1;