diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index bf368f1663d1acf4e95d6eeccf03098bf6eda143..7a871714d44ed52866545a203421366855cb0b99 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -438,6 +438,7 @@ static int key_mapped(int c) case 'S': return 1; case 'E': + return top.evlist->nr_entries > 1 ? 1 : 0; default: break; }