From d8a79700ddbcb520dff5b6083795b5789866a270 Mon Sep 17 00:00:00 2001 From: Motomu Utsumi Date: Wed, 14 May 2025 12:37:04 +0900 Subject: [PATCH] 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 --- progs/bpfRingbufProg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/progs/bpfRingbufProg.c b/progs/bpfRingbufProg.c index 19147e0..de17483 100644 --- a/progs/bpfRingbufProg.c +++ b/progs/bpfRingbufProg.c @@ -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;