Skip to content

x86 cleanups and static_call()

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 71 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15x86/entry/32: Clean up return from interrupt preemption patharch/x86/entry/entry_32.S+10 -141 reply
2/15x86: Move ENCODE_FRAME_POINTER to asm/frame.harch/x86/entry/calling.h arch/x86/entry/entry_32.S arch/x86/include/asm/frame.h+49 -311 reply
3/15x86/kprobes: Fix frame pointer annotationsarch/x86/kernel/kprobes/common.h+12 -124 replies
4/15x86/ftrace: Add pt_regs frame annotationsarch/x86/kernel/ftrace_32.S arch/x86/kernel/ftrace_64.S+6 -01 reply
5/15x86_32: Provide consistent pt_regsarch/x86/entry/entry_32.S arch/x86/include/asm/kexec.h arch/x86/include/asm/ptrace.h +12 more+178 -1913 replies
6/15x86_32: Allow int3_emulate_push()arch/x86/include/asm/text-patching.h arch/x86/kernel/ftrace.c+0 -90 replies
7/15x86: Add int3_emulate_call() selftestarch/x86/kernel/alternative.c+77 -43 replies
8/15x86/alternatives: Teach text_poke_bp() to emulate instructionsarch/x86/include/asm/text-patching.h arch/x86/kernel/alternative.c arch/x86/kernel/jump_label.c +1 more+46 -1730 replies
9/15compiler.h: Make __ADDRESSABLE() symbol truly uniqueinclude/linux/compiler.h+1 -10 replies
10/15static_call: Add basic static call infrastructurearch/Kconfig include/linux/static_call.h include/linux/static_call_types.h+151 -07 replies
11/15static_call: Add inline static call infrastructurearch/Kconfig include/asm-generic/vmlinux.lds.h include/linux/module.h +5 more+414 -18 replies
12/15x86/static_call: Add out-of-line static call implementationarch/x86/Kconfig arch/x86/include/asm/static_call.h arch/x86/kernel/Makefile +1 more+68 -04 replies
13/15x86/static_call: Add inline static call implementation for x86-64arch/x86/Kconfig arch/x86/include/asm/static_call.h arch/x86/kernel/asm-offsets.c +8 more+193 -96 replies
14/15static_call: Simple self-test modulelib/Kconfig.debug lib/Makefile lib/test_static_call.c+50 -03 replies
15/15tracepoints: Use static_callinclude/linux/tracepoint-defs.h include/linux/tracepoint.h include/trace/define_trace.h +1 more+80 -360 replies

Reviews trailers per patch

8 of 15 patches have a Reviewed-by or Acked-by.

PatchAndy LutomirskiArd BiesheuvelMasami HiramatsuJosh Poimboeuf
1/15R-b
2/15R-b
3/15A-b R-b
4/15R-b
5/15A-b R-b
6/15
7/15Requested-by R-b
8/15R-b
9/15A-b
10/15
11/15
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 00/15] x86 cleanups and static_call()

Hi!

Now that all the x86_64 int3_emulate_call() stuff is upstream, here are the i386 patches and all the rest of the cleanups that resulted from that discussion.

And I figured I should have a go at making that static_call() thing working now that we have the prerequisites sorted. This is mostly a combination of the v2 and v3 static_call() patches done on top of an 'enhanced' text_poke_bp().

I wrote a little self-test and added Steve's ftrace convertion on top for testing, and suspicously I've not had it explode, so I'm sure this is going to set all your computers on fire.

Enjoy!