path: root/tools/perf/util/top.h
diff options
authorArnaldo Carvalho de Melo <>2012-02-14 14:05:30 -0200
committerArnaldo Carvalho de Melo <>2012-02-14 14:05:30 -0200
commit0c9781280fb672ca09c997df3f14ba506bbdb977 (patch)
treec69f428b2717025d5afb2a8997d82ff9a4b8aea1 /tools/perf/util/top.h
parent7e1ccd3804281fc0755eb726b654469c40a96d89 (diff)
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 <> Tested-by: Joerg Roedel <> Cc: David Ahern <> Cc: Frederic Weisbecker <> Cc: Joerg Roedel <> Cc: Mike Galbraith <> Cc: Paul Mackerras <> Cc: Peter Zijlstra <> Cc: Stephane Eranian <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/util/top.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/top.h b/tools/perf/util/top.h
index 49eb8481f19f..7dea8912aa97 100644
--- a/tools/perf/util/top.h
+++ b/tools/perf/util/top.h
@@ -35,6 +35,7 @@ struct perf_top {
bool inherit;
bool group;
bool sample_id_all_avail;
+ bool exclude_guest_missing;
bool dump_symtab;
const char *cpu_list;
struct hist_entry *sym_filter_entry;