]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Test small task local data allocation
authorAmery Hung <ameryhung@gmail.com>
Mon, 13 Apr 2026 19:02:59 +0000 (12:02 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 15 Apr 2026 19:10:20 +0000 (12:10 -0700)
commitb4b0233730d5b2cdb170f6f5f183bfb1047b6dfa
treecaa25d2ce49d86d7013af377749d6a2457423379
parent615e55a2418405b628921e0596ac50317fd04474
selftests/bpf: Test small task local data allocation

Make sure task local data is working correctly for different allocation
sizes. Existing task local data selftests allocate the maximum amount of
data possible but miss the garbage data issue when only small amount of
data is allocated. Therefore, test small data allocations as well.

Signed-off-by: Amery Hung <ameryhung@gmail.com>
Link: https://lore.kernel.org/r/20260413190259.358442-4-ameryhung@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/test_task_local_data.c