aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorMenglong Dong <[email protected]>2023-01-13 17:34:27 +0800
committerAndrii Nakryiko <[email protected]>2023-01-13 14:05:47 -0800
commit2fa074536590a82ee6c670d5f119f3dfb4ca6015 (patch)
tree1b17e1c7a76fae27f4c0dad931d3c15687410cb0 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent878625e1c7a10dfbb1fdaaaae2c4d2a58fbce627 (diff)
libbpf: Replace '.' with '_' in legacy kprobe event name
'.' is not allowed in the event name of kprobe. Therefore, we will get a EINVAL if the kernel function name has a '.' in legacy kprobe attach case, such as 'icmp_reply.constprop.0'. In order to adapt this case, we need to replace the '.' with other char in gen_kprobe_legacy_event_name(). And I use '_' for this propose. Signed-off-by: Menglong Dong <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Reviewed-by: Alan Maguire <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions