summaryrefslogtreecommitdiff
path: root/arch/x86/mm
diff options
context:
space:
mode:
authorRik van Riel <riel@surriel.com>2024-11-14 18:26:17 +0300
committerIngo Molnar <mingo@kernel.org>2024-11-19 14:02:46 +0300
commit2815a56e4b7252a836969f5674ee356ea1ce482c (patch)
tree9bd31904dce6af7473f220d5183aae7209051419 /arch/x86/mm
parent209954cbc7d0ce1a190fc725d20ce303d74d2680 (diff)
downloadlinux-2815a56e4b7252a836969f5674ee356ea1ce482c.tar.xz
x86/mm/tlb: Add tracepoint for TLB flush IPI to stale CPU
Add a tracepoint when we send a TLB flush IPI to a CPU that used to be in the mm_cpumask, but isn't any more. Suggested-by: Dave Hansen <dave.hansen@intel.com> Signed-off-by: Rik van Riel <riel@surriel.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20241114152723.1294686-3-riel@surriel.com
Diffstat (limited to 'arch/x86/mm')
-rw-r--r--arch/x86/mm/tlb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c
index cc4e57ae690f..1aac4fa90d3d 100644
--- a/arch/x86/mm/tlb.c
+++ b/arch/x86/mm/tlb.c
@@ -760,6 +760,7 @@ static void flush_tlb_func(void *info)
/* Can only happen on remote CPUs */
if (f->mm && f->mm != loaded_mm) {
cpumask_clear_cpu(raw_smp_processor_id(), mm_cpumask(f->mm));
+ trace_tlb_flush(TLB_REMOTE_WRONG_CPU, 0);
return;
}
}