diff options
author | Benjamin Poirier <bpoirier@suse.com> | 2019-04-15 16:15:35 +0900 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-04-16 10:16:33 +0200 |
commit | 0478c3bf812451315da6eeb79f8cf151db094767 (patch) | |
tree | cfd4f4a5b2dbb7c21000fecba7ee568df87353f0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 25df480def17eb792860d86b8f90fda00035f0f9 (diff) |
bpftool: Use print_entry_error() in case of ENOENT when dumping
Commit bf598a8f0f77 ("bpftool: Improve handling of ENOENT on map dumps")
used print_entry_plain() in case of ENOENT. However, that commit introduces
dead code. Per-cpu maps are zero-filled. When reading them, it's all or
nothing. There will never be a case where some cpus have an entry and
others don't.
The truth is that ENOENT is an error case. Use print_entry_error() to
output the desired message. That function's "value" parameter is also
renamed to indicate that we never use it for an actual map value.
The output format is unchanged.
Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions