Created
August 12, 2021 18:58
-
-
Save mauriciovasquezbernal/fdf3ef8b263779b3e4df87f9ab06ca99 to your computer and use it in GitHub Desktop.
Download btf info from btfhub
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
#! /bin/bash | |
set -e | |
set -x | |
source /etc/os-release | |
KERNEL=$(uname -r) | |
ARCH=$(uname -m) | |
URL="https://github.com/aquasecurity/btfhub/raw/main/$ID/$VERSION_ID/$ARCH/$KERNEL.btf.tar.xz" | |
wget -q -O /tmp/vmlinux.btf.tar.xz "$URL" | |
tar -xf /tmp/vmlinux.btf.tar.xz | |
mv *.btf /tmp/vmlinux.btf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment