From 1c4fd5452ee511508e52e7b2d9e26be778a020a1 Mon Sep 17 00:00:00 2001 From: GalaxyG Date: Tue, 18 Nov 2025 19:21:13 +0800 Subject: [PATCH] Fix cacheline comparison in pmu_datasrc --- example/pmu_datasrc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/pmu_datasrc.cpp b/example/pmu_datasrc.cpp index 4b31498..714bbea 100644 --- a/example/pmu_datasrc.cpp +++ b/example/pmu_datasrc.cpp @@ -122,7 +122,7 @@ void ComputeRacePc(const ulong mypc, const map &vas, if (otherPc.pc == mypc) { continue; } - if (va - otherVa <= CACHE_LINE || otherVa - va <= CACHE_LINE) { + if (va - otherVa < CACHE_LINE || otherVa - va < CACHE_LINE) { VaItem otherRacePc; otherRacePc.pc = otherPc.pc; otherRacePc.cnt = vaItemPair.second.cnt; -- Gitee