Allow rust bpfloader to load bpfRingbufProg.bpf
Test: TH Bug: 410982483 Change-Id: Ic1301be9a49935f4845d09d70d6b80d215dce5fa
This commit is contained in:
parent
f088c4a66e
commit
256af2c856
1 changed files with 9 additions and 0 deletions
|
|
@ -334,6 +334,15 @@ const FILE_ARR: &[BpfFileDesc] = &[
|
|||
ProgDesc::new_kver(GID_ROOT, KVER_6_1, "skfilter_calculate_totalreserve_pages"),
|
||||
],
|
||||
},
|
||||
BpfFileDesc {
|
||||
filename: "bpfRingbufProg.bpf",
|
||||
dir: "/etc/bpf/",
|
||||
prefix: "",
|
||||
critical: true,
|
||||
skip_on_user: true,
|
||||
maps: &[MapDesc::new_kver(GID_ROOT, PERM_GRW, KVER_5_10, "test_ringbuf")],
|
||||
progs: &[ProgDesc::new_kver(GID_ROOT, KVER_5_10, "skfilter_ringbuf_test")],
|
||||
},
|
||||
];
|
||||
|
||||
// TODO: Remove this code when fuse-bpf is upstreamed
|
||||
|
|
|
|||
Loading…
Reference in a new issue