diff options
| author | Amery Hung <ameryhung@gmail.com> | 2025-08-06 09:25:39 -0700 |
|---|---|---|
| committer | Martin KaFai Lau <martin.lau@kernel.org> | 2025-08-06 16:01:56 -0700 |
| commit | eeb52b6279cfebae07703f772621fb9d5972e541 (patch) | |
| tree | 224105f80187b8b967f24547756653ad0bf98947 /tools/testing/selftests/bpf/progs/struct_ops_id_ops_mapping2.c | |
| parent | bpf: Allow struct_ops to get map id by kdata (diff) | |
| download | linux-eeb52b6279cfebae07703f772621fb9d5972e541.tar.gz linux-eeb52b6279cfebae07703f772621fb9d5972e541.zip | |
selftests/bpf: Add multi_st_ops that supports multiple instances
Current struct_ops in bpf_testmod only support attaching single instance.
Add multi_st_ops that supports multiple instances. The struct_ops uses map
id as the struct_ops id and will reject attachment with an existing id.
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20250806162540.681679-3-ameryhung@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/struct_ops_id_ops_mapping2.c')
0 files changed, 0 insertions, 0 deletions
