Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at master 20 lines 371 B view raw
1// SPDX-License-Identifier: GPL-2.0 2 3#include <vmlinux.h> 4#include <bpf/bpf_helpers.h> 5#include "bpf_misc.h" 6 7SEC("fentry/bpf_fentry_test1") 8__success __retval(0) 9__arch_x86_64 10__jited(" addq %gs:{{.*}}, %rax") 11__arch_arm64 12__jited(" mrs x7, SP_EL0") 13int inline_bpf_get_current_task(void) 14{ 15 bpf_get_current_task(); 16 17 return 0; 18} 19 20char _license[] SEC("license") = "GPL";