]> git.baikalelectronics.ru Git - kernel.git/commit
perf c2c: Fix sorting in percent_rmt_hitm_cmp()
authorLeo Yan <leo.yan@linaro.org>
Mon, 30 May 2022 08:42:53 +0000 (16:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:13 +0000 (18:36 +0200)
commit5757a8d50d9bd2fd95e6a2a52334f79e55c1554b
treea18ff75778ae76d18eaa5c5454173cde757004ba
parent29ec344d6070e793780777d43c117844c7179507
perf c2c: Fix sorting in percent_rmt_hitm_cmp()

[ Upstream commit 0a6c28de8b0ba24bd109f2683604c2a6f50b61c5 ]

The function percent_rmt_hitm_cmp() wrongly uses local HITMs for
sorting remote HITMs.

Since this function is to sort cache lines for remote HITMs, this patch
changes to use 'rmt_hitm' field for correct sorting.

Fixes: 6acd8fb40c1aecc3 ("perf c2c report: Add hitm/store percent related sort keys")
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Joe Mario <jmario@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220530084253.750190-1-leo.yan@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/builtin-c2c.c