X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=tools%2Fperf%2Fbuiltin-top.c;h=676b4fb0070f09be3d09fcb253f776754f7f711c;hb=50f3515828024582402044bcced6804c070c491c;hp=70f1075cc5b03493a13ddf943f126b96d4035554;hpb=fd57ed021990157ee5b3997c3f21c734093a9e23;p=karo-tx-linux.git diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 70f1075cc5b0..676b4fb0070f 100644 --- a/tools/perf/builtin-top.c +++ b/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)