You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
features: rename HaveProgType API
In order to be in line with other naming schemes throughout
the library this commit deprecates HaveProgType() in favor
of HaveProgamType().
Signed-off-by: Robin Gögge <r.goegge@gmail.com>
btf: move vmlinux search logic into findVMLinux()
loadKernelSpec() gets short-circuited in the first statement on most kernels,
resulting in the vmlinux search code being rarely exercised successfully in CI.
Split the search logic out into its own function to make it testable in
isolation. Although virtme VMs don't have images at any of these paths,
running the test suite on a host with a full distro does result in a proper
test execution.
Signed-off-by: Timo Beckers <timo@isovalent.com>
map: include errnos with errors
We replace some errnos from map syscalls with more descriptive
sentinel errors. Include the original errno with the error so
that both
errors.Is(err, ErrKeyNotExist)
errors.Is(err, unix.ENOENT)
work. We'll use this for other errors in the future where we
want to introduce our own errors without breaking callers that
rely on the (coarser) errno semantics.
link: return os.ErrNotExist when symbol doesn't exist
Some of the tracing related links currently return ErrNotSupported
when trying to attach to a non-existant symbol. This is misleading.
Consistently return os.ErrNotExist in such cases.