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:
Motomu Utsumi 2025-05-14 12:37:04 +09:00
commit d8a79700dd

View file

@ -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;