diff options
| author | Shang XiaoJing <[email protected]> | 2022-09-22 14:14:36 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-10-04 11:55:22 +0000 |
| commit | cdd3b15d6871e7b164e3dd82514dfcc4daa7559b (patch) | |
| tree | 206b9bcd7fb078763354bdb94a6c0a5e53f93c07 /tools/perf/builtin-stat.c | |
| parent | perf genelf: Fix error code in jit_write_elf() (diff) | |
| download | kernel-cdd3b15d6871e7b164e3dd82514dfcc4daa7559b.tar.gz kernel-cdd3b15d6871e7b164e3dd82514dfcc4daa7559b.zip | |
perf stat: Merge cases in process_evlist
As two cases in process_evlist has same behavior, make the first fall
through to the second.
Commiter notes:
Added __fallthrough, the kernel has "fallthrough", we need to make
tools/ use it.
Signed-off-by: Shang XiaoJing <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-stat.c')
| -rw-r--r-- | tools/perf/builtin-stat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index e05fe72c1d87..7b8e901bce10 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -662,9 +662,7 @@ static void process_evlist(struct evlist *evlist, unsigned int interval) if (evlist__ctlfd_process(evlist, &cmd) > 0) { switch (cmd) { case EVLIST_CTL_CMD_ENABLE: - if (interval) - process_interval(); - break; + __fallthrough; case EVLIST_CTL_CMD_DISABLE: if (interval) process_interval(); |
