diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-02-14 11:18:57 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-02-14 11:18:57 -0500 |
commit | 808e122630d45a7f036d25582474d70548a87e2c (patch) | |
tree | 96a8d45358110ce48f184d2a62f7816022ff5c1a /tools/perf/util/top.h | |
parent | 0c9781280fb672ca09c997df3f14ba506bbdb977 (diff) |
perf tools: Invert the sample_id_all logic
Instead of requiring that users of perf_record_opts set
.sample_id_all_avail to true, just invert the logic, using
.sample_id_all_missing, that doesn't need to be explicitely initialized
since gcc will zero members ommitted in a struct initialization.
Just like the newly introduced .exclude_{guest,host} feature test.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.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-ab772uzk78cwybihf0vt7kxw@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/top.h')
-rw-r--r-- | tools/perf/util/top.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/top.h b/tools/perf/util/top.h index 7dea8912aa97..ce61cb2d1acf 100644 --- a/tools/perf/util/top.h +++ b/tools/perf/util/top.h | |||
@@ -34,7 +34,7 @@ struct perf_top { | |||
34 | bool vmlinux_warned; | 34 | bool vmlinux_warned; |
35 | bool inherit; | 35 | bool inherit; |
36 | bool group; | 36 | bool group; |
37 | bool sample_id_all_avail; | 37 | bool sample_id_all_missing; |
38 | bool exclude_guest_missing; | 38 | bool exclude_guest_missing; |
39 | bool dump_symtab; | 39 | bool dump_symtab; |
40 | const char *cpu_list; | 40 | const char *cpu_list; |