bpftool icon indicating copy to clipboard operation
bpftool copied to clipboard

Improve formatting of error messages (error names)

Open qmonnet opened this issue 2 years ago • 0 comments

Following the discussion with Andrii on the BPF mailing list, we want to improve error messages by writing explicitly the name of the error returned from the kernel in addition to its interpretation, for example:

Error: can't get next program: [-EPERM] Operation not permitted

There's some work to do in libbpf (teaching libbpf_strerror_r() to do this), and then we could wrap error messages in bpftool to use that function.

qmonnet avatar Jan 08 '23 22:01 qmonnet