Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forbid trampolines for archs other than x86_64
The trampoline support check in bcc does not work properly, so the feature is detected even on architectures that do not support it - all archs other than x86_64. We are checking for bpf_trampoline_link_prog to exist in kernel, which works fine on x86_64 to check if the feature is supported, but it's global function, so it exists also in other archs even when the feature is not supported so it returns True also on other archs. Adding explicit x86_64 check to support_kfunc function. Signed-off-by: Jiri Olsa <[email protected]>
- Loading branch information