linux/arch
Steven Rostedt 658fa653b4 mm, x86/mm: move creating the tlb_flush event back to x86 code
Commit e73ad5ff2f ("mm, x86/mm: Make the batched unmap TLB flush API
more generic") moved the trace_tlb_flush out of mm/rmap.c and back into
x86 specific architecture, but it kept the include to the events/tlb.h
file, even though it didn't use that event.

Then another commit came in and added more events to the mm/rmap.c file
and moved the #define CREATE_TRACE_POINTS define from the x86 specific
architecture to the generic mm/rmap.h file to create both the tlb_flush
tracepoint and the new tracepoints.

But since the tlb_flush tracepoint is only x86 specific, it now creates
that tracepoint for all other architectures and this wastes approximately
5K of text and meta data that will not be used.

Remove the events/tlb.h from mm/rmap.c and add the define
CREATE_TRACE_POINTS back in the x86 code.

Link: https://lkml.kernel.org/r/20250612100313.3b9a8b80@batman.local.home
Fixes: e73ad5ff2f ("mm, x86/mm: Make the batched unmap TLB flush API more generic")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Betkov <bp@alien8.de>
Cc: David Hildenbrand <david@redhat.com>
Cc: "Masami Hiramatsu (Google)" <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleinxer <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-09-13 16:55:14 -07:00
..
alpha Significant patch series in this pull request: 2025-08-03 16:23:09 -07:00
arc mm: introduce memdesc_flags_t 2025-09-13 16:55:07 -07:00
arm mm: introduce memdesc_flags_t 2025-09-13 16:55:07 -07:00
arm64 mm: introduce memdesc_flags_t 2025-09-13 16:55:07 -07:00
csky mm: introduce memdesc_flags_t 2025-09-13 16:55:07 -07:00
hexagon
loongarch LoongArch: KVM: Add address alignment check in pch_pic register access 2025-08-20 22:51:15 +08:00
m68k treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
microblaze ftrace changes for v6.17: 2025-07-30 16:04:10 -07:00
mips mm: introduce memdesc_flags_t 2025-09-13 16:55:07 -07:00
nios2 mm: introduce memdesc_flags_t 2025-09-13 16:55:07 -07:00
openrisc mm: introduce memdesc_flags_t 2025-09-13 16:55:07 -07:00
parisc mm: introduce memdesc_flags_t 2025-09-13 16:55:07 -07:00
powerpc mm: introduce memdesc_flags_t 2025-09-13 16:55:07 -07:00
riscv mm: introduce memdesc_flags_t 2025-09-13 16:55:07 -07:00
s390 mm: introduce memdesc_flags_t 2025-09-13 16:55:07 -07:00
sh mm: introduce memdesc_flags_t 2025-09-13 16:55:07 -07:00
sparc mm: introduce memdesc_flags_t 2025-09-13 16:55:07 -07:00
um Mostly cleanups, except: 2025-07-29 20:31:45 -07:00
x86 mm, x86/mm: move creating the tlb_flush event back to x86 code 2025-09-13 16:55:14 -07:00
xtensa mm: introduce memdesc_flags_t 2025-09-13 16:55:07 -07:00
.gitignore
Kconfig Deferred unwind changes for 6.17 2025-08-01 09:46:24 -07:00