From 634620bdef2856af57c950ea1f6b4515f5984786 Mon Sep 17 00:00:00 2001 From: Akihiro Nagai Date: Wed, 23 Mar 2011 16:29:39 +0900 Subject: [PATCH] --- yaml --- r: 242517 b: refs/heads/master c: ce2d17ca7f85dcade62cd608601a0d52ccdaf0e6 h: refs/heads/master i: 242515: 53374d3439adf7f29a3bfc6093a9a294e1cf76bb v: v3 --- [refs] | 2 +- trunk/tools/perf/builtin-top.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 33d84f4879de..dc3a0259dbfa 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e1eb029081f9cd4f73bdd05d495e5011839546f5 +refs/heads/master: ce2d17ca7f85dcade62cd608601a0d52ccdaf0e6 diff --git a/trunk/tools/perf/builtin-top.c b/trunk/tools/perf/builtin-top.c index 70f1075cc5b0..676b4fb0070f 100644 --- a/trunk/tools/perf/builtin-top.c +++ b/trunk/tools/perf/builtin-top.c @@ -515,7 +515,9 @@ static void handle_keypress(struct perf_session *session, int c) break; case 'E': if (top.evlist->nr_entries > 1) { - int counter; + /* Select 0 as the default event: */ + int counter = 0; + fprintf(stderr, "\nAvailable events:"); list_for_each_entry(top.sym_evsel, &top.evlist->entries, node)