Update program name in bpfRingbufProg.c
Update program name to match the attach point definition, with forward slashes `/` replaced with underscores `_`. This is required to pin the program to the same path the legacy platform bpf loader uses. Bug: 410982483 Test: TH Change-Id: Ibdb24707c58792a61da6a6c7fe5f57fb7267f6e5
This commit is contained in:
parent
886a957f4c
commit
d8a79700dd
1 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,8 @@ DEFINE_BPF_RINGBUF(test_ringbuf, __u64, 4096, AID_ROOT, AID_ROOT, 0660);
|
|||
|
||||
// This program is for test purposes only - it should never be attached to a
|
||||
// socket, only executed manually with BPF_PROG_RUN.
|
||||
DEFINE_BPF_PROG_KVER("skfilter/ringbuf_test", AID_ROOT, AID_ROOT, test_ringbuf_prog, KVER(5, 8, 0))
|
||||
DEFINE_BPF_PROG_KVER("skfilter/ringbuf_test", AID_ROOT, AID_ROOT, skfilter_ringbuf_test,
|
||||
KVER(5, 8, 0))
|
||||
(void* __unused ctx) {
|
||||
__u64* output = bpf_test_ringbuf_reserve();
|
||||
if (output == NULL) return 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue