]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: freplace tests for tracking of changes_packet_data
authorEduard Zingerman <eddyz87@gmail.com>
Tue, 10 Dec 2024 04:10:58 +0000 (20:10 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 10 Dec 2024 18:24:57 +0000 (10:24 -0800)
commit89ff40890d8f12a7d7e93fb602cc27562f3834f0
tree1ca4e620a9874f4154492b3bebb61791ef3760cd
parent81f6d0530ba031b5f038a091619bf2ff29568852
selftests/bpf: freplace tests for tracking of changes_packet_data

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>
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]