linux/arch/arc/kernel
Yu-Chun Lin 857f451796 ARC: unwind: Use built-in sort swap to reduce code size and improve performance
The custom swap function used in sort() was identical to the default
built-in sort swap. Remove the custom swap function and passes NULL to
sort(), allowing it to use the default swap function.

This change reduces code size and improves performance, particularly when
CONFIG_MITIGATION_RETPOLINE is enabled. With RETPOLINE mitigation, indirect
function calls incur significant overhead, and using the default swap
function avoids this cost.

$ ./scripts/bloat-o-meter ./unwind.o.old ./unwind.o.new
add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-22 (-22)
Function                                     old     new   delta
init_unwind_hdr.constprop                    544     540      -4
swap_eh_frame_hdr_table_entries               18       -     -18
Total: Before=4410, After=4388, chg -0.50%

Signed-off-by: Yu-Chun Lin <eleanor15x@gmail.com>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
2025-06-09 09:18:12 -07:00
..
.gitignore
arc_hostlink.c
arcksyms.c
asm-offsets.c ARC: pt_regs: create seperate type for ecr 2023-08-18 10:30:47 -07:00
ctx_sw_asm.S ARC: __switch_to: move ksp to thread_info from thread_struct 2023-08-17 20:31:59 -07:00
devtree.c of/fdt: add dt_phys arg to early_init_dt_scan and early_init_dt_verify 2024-10-29 15:32:45 -05:00
disasm.c
entry-arcv2.S ARC: Fix typos 2024-04-01 18:40:39 -07:00
entry-compact.S ARC: entry: Add more common chores to EXCEPTION_PROLOGUE 2023-08-18 10:30:07 -07:00
entry.S ARC: Fix typos 2024-04-01 18:40:39 -07:00
fpu.c
head.S ARC: Fix typos 2024-04-01 18:40:39 -07:00
intc-arcv2.c ARC: Switch to irq_domain_create_linear() 2025-05-16 21:06:08 +02:00
intc-compact.c ARC: Switch to irq_domain_create_linear() 2025-05-16 21:06:08 +02:00
irq.c
jump_label.c
kgdb.c ARC: pt_regs: create seperate type for ecr 2023-08-18 10:30:47 -07:00
kprobes.c ARC: Fix -Wmissing-prototypes warnings 2024-04-01 18:40:39 -07:00
Makefile arch: use always-$(KBUILD_BUILTIN) for vmlinux.lds 2025-06-07 14:38:07 +09:00
Makefile.syscalls arc: convert to generic syscall table 2024-07-10 14:23:38 +02:00
mcip.c ARC: Switch to irq_domain_create_linear() 2025-05-16 21:06:08 +02:00
module.c
perf_event.c arc/perf: Remove driver-specific throttle support 2025-05-21 13:57:45 +02:00
process.c ARC: __switch_to: move ksp to thread_info from thread_struct 2023-08-17 20:31:59 -07:00
ptrace.c ARC: pt_regs: create seperate type for ecr 2023-08-18 10:30:47 -07:00
reset.c
setup.c ARC: Fix typos 2024-04-01 18:40:39 -07:00
signal.c ARC: Fix typos 2024-04-01 18:40:39 -07:00
smp.c smp: Consolidate smp_prepare_boot_cpu() 2024-03-04 12:01:54 +01:00
stacktrace.c ARC: -Wmissing-prototype warning fixes 2023-08-13 16:53:02 -07:00
sys.c arc: convert to generic syscall table 2024-07-10 14:23:38 +02:00
traps.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
troubleshoot.c fs: create helper file_user_path() for user displayed mapped file path 2023-10-19 11:03:15 +02:00
unaligned.c arch: remove get_task_comm() and print task comm directly 2025-01-12 20:21:15 -08:00
unaligned.h arc: get rid of private asm/unaligned.h 2024-10-02 17:22:47 -04:00
unwind.c ARC: unwind: Use built-in sort swap to reduce code size and improve performance 2025-06-09 09:18:12 -07:00
vmlinux.lds.S ARC: Fix typos 2024-04-01 18:40:39 -07:00