aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorXin Liu <liuxin350@huawei.com>2022-12-10 16:20:45 +0800
committerDaniel Borkmann <daniel@iogearbox.net>2022-12-14 18:39:33 +0100
commitc9883ee9d110703ccb3dfe2ca13e0b7a01351077 (patch)
tree98c9d223d38b5090aca23c78b62fbe81466fc339 /tools/perf/scripts/python/export-to-sqlite.py
parentMerge tag 'net-next-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/net... (diff)
downloadlinux-c9883ee9d110703ccb3dfe2ca13e0b7a01351077.tar.gz
linux-c9883ee9d110703ccb3dfe2ca13e0b7a01351077.zip
libbpf: Optimized return value in libbpf_strerror when errno is libbpf errno
This is a small improvement in libbpf_strerror. When libbpf_strerror is used to obtain the system error description, if the length of the buf is insufficient, libbpf_sterror returns ERANGE and sets errno to ERANGE. However, this processing is not performed when the error code customized by libbpf is obtained. Make some minor improvements here, return -ERANGE and set errno to ERANGE when buf is not enough for custom description. Signed-off-by: Xin Liu <liuxin350@huawei.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20221210082045.233697-1-liuxin350@huawei.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions