Skip to content

Immediate Values

Mathieu Desnoyers lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12x86: text_poke_early non staticarch/x86/include/asm/alternative.h arch/x86/kernel/alternative.c+7 -20 replies
2/12Immediate Values - Architecture Independent Codeinclude/asm-generic/vmlinux.lds.h include/linux/immediate.h include/linux/module.h +4 more+345 -013 replies
3/12Immediate Values - Kconfig menu in EMBEDDEDinit/Kconfig+18 -00 replies
4/12Immediate Values - x86 Optimizationarch/x86/Kconfig arch/x86/include/asm/immediate.h+78 -00 replies
5/12Add text_poke and sync_core to powerpcarch/powerpc/include/asm/cacheflush.h+3 -10 replies
6/12Immediate Values - Powerpc Optimizationarch/powerpc/Kconfig arch/powerpc/include/asm/immediate.h+57 -00 replies
7/12Sparc create asm.harch/sparc/include/asm/asm.h+11 -01 reply
8/12sparc64: Optimized immediate value implementation.arch/sparc/Kconfig arch/sparc/Makefile arch/sparc/include/asm/immediate.h +2 more+94 -00 replies
9/12Immediate Values - DocumentationDocumentation/immediate.txt+221 -00 replies
10/12Immediate Values Support initDocumentation/immediate.txt arch/powerpc/include/asm/immediate.h arch/x86/include/asm/immediate.h +6 more+54 -152 replies
11/12Scheduler Profiling - Use Immediate Valuesarch/x86/kvm/x86.c include/linux/profile.h kernel/ksysfs.c +2 more+19 -210 replies
12/12Tracepoints - Immediate Valuesinclude/linux/tracepoint.h kernel/tracepoint.c+36 -115 replies

Reviews trailers per patch

2 of 12 patches have a Reviewed-by or Acked-by.

PatchSam RavnborgDavid S. Miller
1/12
2/12
3/12
4/12
5/12
6/12
7/12A-b
8/12
9/12
10/12A-b
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [patch 00/12] Immediate Values

Hi Ingo,

Here is an updated version of the immediate values, applying to current tip.

[impact: data-cache optimization]

The main benefit of this infrastructure is to encode read-often variables into the instruction stream. It can benefit to tracepoints by replacing the memory load by an immediate value instruction. There is still room for improvement
through: an effort to provide static jump patching is ongoing, involving the kernel and gcc communities.

Even then, the immediate values have their niche: when a value (rather than a branch selection) is read often on fast-paths, the immediate value infrastructure can encode these in the instruction stream without any d-cache cost.

Two sample users are provided: prof_on from the scheduler code and tracepoints. Feel free to merge/drop any of these.

Thanks,

Mathieu

Signature · 2 lines
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68