[PATCH 1/7] perf top: Defaults to system_wide target

From: Namhyung Kim
Date: Mon May 07 2012 - 01:12:56 EST


The default behaviour of perf to is monitoring events
system-wide, so make it explicit.

Signed-off-by: Namhyung Kim <namhyung.kim@xxxxxxx>
---
tools/perf/builtin-top.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 2a0ec09b9b77..3ffb2b697968 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -1152,6 +1152,9 @@ int cmd_top(int argc, const char **argv, const char *prefix __used)
struct perf_evsel *pos;
int status = -ENOMEM;
struct perf_top top = {
+ .target = {
+ .system_wide = true,
+ },
.count_filter = 5,
.delay_secs = 2,
.freq = 1000, /* 1 KHz */
--
1.7.10.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/