diff options
author | Rongguang Wei <[email protected]> | 2022-07-26 17:30:45 +0800 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2022-07-29 10:40:51 -0700 |
commit | 5eff8c18f124e47da0be79fb2b776e1c2cac0b07 (patch) | |
tree | eea924fb22caecc8a815801ffd8338247afcda8f /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 58250ae350de8d28ce91ade4605d32c9e7f062a8 (diff) |
bpftool: Replace sizeof(arr)/sizeof(arr[0]) with ARRAY_SIZE macro
Use the ARRAY_SIZE macro and make the code more compact.
Signed-off-by: Rongguang Wei <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions