]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: freplace tests for tracking of changes_packet_data
authorEduard Zingerman <eddyz87@gmail.com>
Wed, 30 Apr 2025 08:19:48 +0000 (16:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 May 2025 07:43:55 +0000 (09:43 +0200)
commit70234fbfa266266723fe58d36ce5f9aa599bdcd8
tree0fc470dafc33ab5699b0f4acd7c3e0d77b739cf1
parent7197fc4acdf238ec8ad06de5a8235df0c1f9c7d7
selftests/bpf: freplace tests for tracking of changes_packet_data

commit 89ff40890d8f12a7d7e93fb602cc27562f3834f0 upstream.

Try different combinations of global functions replacement:
- replace function that changes packet data with one that doesn't;
- replace function that changes packet data with one that does;
- replace function that doesn't change packet data with one that does;
- replace function that doesn't change packet data with one that doesn't;

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20241210041100.1898468-7-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/bpf/prog_tests/changes_pkt_data.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/changes_pkt_data.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/changes_pkt_data_freplace.c [new file with mode: 0644]