diff options
| author | Quentin Monnet <[email protected]> | 2020-09-10 11:26:50 +0100 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-09-10 17:29:20 -0700 |
| commit | a20693b6e72e59fb9b896193df0f8007693447d0 (patch) | |
| tree | 55052492ed2377c4545740ed5fb1cb035e3d1674 /tools/perf/scripts/python | |
| parent | 2f7de9865ba3cbfcf8b504f07154fdb6124176a4 (diff) | |
tools: bpftool: Clean up function to dump map entry
The function used to dump a map entry in bpftool is a bit difficult to
follow, as a consequence to earlier refactorings. There is a variable
("num_elems") which does not appear to be necessary, and the error
handling would look cleaner if moved to its own function. Let's clean it
up. No functional change.
v2:
- v1 was erroneously removing the check on fd maps in an attempt to get
support for outer map dumps. This is already working. Instead, v2
focuses on cleaning up the dump_map_elem() function, to avoid
similar confusion in the future.
Signed-off-by: Quentin Monnet <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions