]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf trace: Convert syscall_stats to hashmap
authorNamhyung Kim <namhyung@kernel.org>
Wed, 5 Feb 2025 20:54:41 +0000 (12:54 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 13 Feb 2025 03:44:15 +0000 (19:44 -0800)
commitef2da619b132c6f749c99f8fea15b5fe563c8cf9
tree9bad6c86bbee8098ad0cc99505300fda4a6e466f
parentc7f821b8768df6f889dd8993db94925c6636a691
perf trace: Convert syscall_stats to hashmap

It was using a RBtree-based int-list as a hash and a custom resort
logic for that.  As we have hashmap, let's convert to it and add a
custom sort function for the hashmap entries using an array.  It
should be faster and more light-weighted.  It's also to prepare
supporting system-wide syscall stats.

No functional changes intended.

Reviewed-by: Howard Chu <howardchu95@gmail.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20250205205443.1986408-3-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-trace.c