summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorZhixing Chen <running910@gmail.com>2026-09-03 18:43:58 +0800
committerAlexei Starovoitov <ast@kernel.org>2026-09-12 12:11:41 -0700
commit7d70a0b02d262971201fdd1e221586bdd95c2910 (patch)
tree0c2fa06ff2b22f0067b962dc454ced74aecd0a40 /tools/perf/scripts/python/stackcollapse.py
parent75f8cf22463d82bb1fb0239a3d485fc8f4c8ef03 (diff)
downloadlinux-next-7d70a0b02d262971201fdd1e221586bdd95c2910.tar.gz
linux-next-7d70a0b02d262971201fdd1e221586bdd95c2910.zip
bpf: Use kvfree() in xdp_test_run_teardown()
xdp_test_run_setup() allocates xdp->frames and xdp->skbs with kvmalloc_array(). The setup error path already releases both arrays with kvfree(), while the normal teardown path still uses kfree(). Use kvfree() in xdp_test_run_teardown() as well, so the release helper matches the allocator on both paths. Signed-off-by: Zhixing Chen <running910@gmail.com> Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com> Link: https://lore.kernel.org/r/20260903104358.29228-1-running910@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions