selftests/bpf: add tests for the "module: Function" syntax
authorViktor Malik <vmalik@redhat.com>
Tue, 30 Apr 2024 09:38:07 +0000 (11:38 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 1 May 2024 16:53:48 +0000 (09:53 -0700)
commit960635887c967338fd567def3e7905a294f5002b
treea8820f8570a0b6634fc1f0e84099a18c8fac9137
parent8f8a024272f3e335854515b41638bdf89c6d3146
selftests/bpf: add tests for the "module: Function" syntax

The previous patch added support for the "module:function" syntax for
tracing programs. This adds tests for explicitly specifying the module
name via the SEC macro and via the bpf_program__set_attach_target call.

Signed-off-by: Viktor Malik <vmalik@redhat.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/8a076168ed847f7c8a6c25715737b1fea84e38be.1714469650.git.vmalik@redhat.com
tools/testing/selftests/bpf/prog_tests/module_attach.c
tools/testing/selftests/bpf/progs/test_module_attach.c