Last active
February 8, 2022 19:32
-
-
Save mauriciovasquezbernal/0e71d181413cac9e2a7a629cb4c3348f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/btf.c b/src/btf.c | |
index 9aa19c8..065ddc8 100644 | |
--- a/src/btf.c | |
+++ b/src/btf.c | |
@@ -4627,6 +4627,8 @@ struct btf *btf__load_vmlinux_btf(void) | |
const char *path_fmt; | |
bool raw_btf; | |
} locations[] = { | |
+ /* try custom path first */ | |
+ { "/tmp/vmlinux.btf", true /* raw BTF */ }, | |
/* try canonical vmlinux BTF through sysfs first */ | |
{ "/sys/kernel/btf/vmlinux", true /* raw BTF */ }, | |
/* fall back to trying to find vmlinux ELF on disk otherwise * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment