bpf: Extract the is_struct_ops_tramp helper

Extract the is_struct_ops_tramp helper, and use it in riscv
as the current checks are somewhat hacky.

Signed-off-by: Pu Lehui <pulehui@huawei.com>
Reviewed-by: Björn Töpel <bjorn@kernel.org>
Acked-by: Björn Töpel <bjorn@kernel.org>
Link: https://lore.kernel.org/bpf/20260708064436.2971933-2-pulehui@huaweicloud.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
This commit is contained in:
Pu Lehui 2026-07-08 06:44:30 +00:00 • committed by Kumar Kartikeya Dwivedi
commit 6bcecae4b6
No known key found for this signature in database
GPG key ID: 472D377B63542F83
3 changed files with 7 additions and 7 deletions