]> www.infradead.org Git - users/jedix/linux-maple.git/commit
veristat: Fix top source line stat collection
authorMykyta Yatsenko <yatsenko@meta.com>
Tue, 17 Dec 2024 18:11:13 +0000 (18:11 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 17 Dec 2024 23:09:33 +0000 (15:09 -0800)
commita7c205120d339b6ad2557fe3f33fdf20394f1a0f
treea58fc919e269c140190391e1e2949c019a8f9ac0
parent58ecb3a789fdc2b015112a31a91aa674c040a5ba
veristat: Fix top source line stat collection

Fix comparator implementation to return most popular source code
lines instead of least.
Introduce min/max macro for building veristat outside of Linux
repository.

Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241217181113.364651-1-mykyta.yatsenko5@gmail.com
tools/testing/selftests/bpf/veristat.c