Add DEFINE_BPF_PROG_KVER to android_bpf_defs.h
Bug: 410982483 Test: m bpfMemEvents.bpf bpfMemEventsTest.bpf Change-Id: I97b7cbe5d033dbe4b15a52b1487e9ace3d12ee7d
This commit is contained in:
parent
f349602777
commit
867009fdab
1 changed files with 3 additions and 0 deletions
|
|
@ -44,6 +44,9 @@
|
|||
SEC(SECTION_NAME) \
|
||||
int the_prog
|
||||
|
||||
#define DEFINE_BPF_PROG_KVER(SECTION_NAME, prog_uid, prog_gid, the_prog, kver) \
|
||||
DEFINE_BPF_PROG(SECTION_NAME, prog_uid, prog_gid, the_prog)
|
||||
|
||||
#define LICENSE(NAME) char _license[] SEC("license") = (NAME)
|
||||
|
||||
#else // LIBBPF DISABLED
|
||||
|
|
|
|||
Loading…
Reference in a new issue