]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf maps: Fix fixup_overlap_and_insert that can break sorted by name order
authorIan Rogers <irogers@google.com>
Wed, 8 Apr 2026 02:08:37 +0000 (19:08 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 8 Apr 2026 17:28:49 +0000 (10:28 -0700)
commitc4f3ff3289380437d26177e8f2fe4b7507816ee3
tree964b36675d069a785ff0a48d57138717892b9a25
parentb01741b2854aef073a8106468903aba0cf4f8539
perf maps: Fix fixup_overlap_and_insert that can break sorted by name order

When an entry in the address array is replaced, the corresponding name
entry is replaced. The entries names may sort differently and so it is
important that the sorted by name property be cleared on the maps.

Fixes: 0d11fab32714 ("perf maps: Fixup maps_by_name when modifying maps_by_address")
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/maps.c