diff options
| author | Wedson Almeida Filho <wedsonaf@google.com> | 2020-11-21 04:55:09 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2020-11-25 07:29:26 +0300 |
| commit | 59e2e27d227a0a4e7ec0e22c63ca36a5ad1ab438 (patch) | |
| tree | 6ae4ae1dadba03d270b2214ea6aa25ee9e0b3d27 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 607c543f939d8ca6fed7afe90b3a8d6f6684dd17 (diff) | |
| download | linux-59e2e27d227a0a4e7ec0e22c63ca36a5ad1ab438.tar.xz | |
bpf: Refactor check_cfg to use a structured loop.
The current implementation uses a number of gotos to implement a loop
and different paths within the loop, which makes the code less readable
than it would be with an explicit while-loop. This patch also replaces a
chain of if/if-elses keyed on the same expression with a switch
statement.
No change in behaviour is intended.
Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201121015509.3594191-1-wedsonaf@google.com
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
