Skip to content

Linux Kernel Markers - Use Immediate Values Optimization

Mathieu Desnoyers lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Immediate Values - Move Kprobes x86 restore_interrupt to kdebug.hinclude/asm-x86/kdebug.h include/asm-x86/kprobes_32.h include/asm-x86/kprobes_64.h+12 -180 replies
2/6Add __discard section to x86arch/x86/kernel/vmlinux_32.lds.S arch/x86/kernel/vmlinux_64.lds.S+2 -00 replies
3/6Immediate Values - x86 Optimization NMI and MCE supportarch/x86/kernel/Makefile_32 arch/x86/kernel/Makefile_64 arch/x86/kernel/immediate.c +2 more+323 -91 reply
4/6Immediate Values - Powerpc Optimization NMI MCE supportarch/powerpc/kernel/Makefile arch/powerpc/kernel/immediate.c include/asm-powerpc/immediate.h+92 -00 replies
5/6Immediate Values Use Arch NMI and MCE Supportinclude/linux/immediate.h kernel/immediate.c+4 -1200 replies
6/6Linux Kernel Markers - Use Immediate ValuesDocumentation/markers.txt include/linux/marker.h kernel/marker.c +1 more+52 -160 replies

Reviews trailers per patch

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

PatchH. Peter AnvinAnanth N Mavinakayanahalli
1/6A-b
2/6A-b
3/6
4/6
5/6
6/6

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 0/6] Linux Kernel Markers - Use Immediate Values Optimization

Hi,

The Markers are meant to have a _very_ low impact on performance (even on d-cache hits) when disabled. This is provided by the Immediate Values.

However, to be able to instrument code called from traps (NMI, MCE handler, all code called by there functions and all traps that can be triggered by these), the rock-solid implementation of the immediate values seems required. It, however, comes at the cost of some added complexity.

This patch applies on 2.6.24-rc4-git3, after the
Text Edit Lock
Immediate Values (redux)
Profiling Use Immediate Values

patchsets.

It could be interesting to queue this for 2.6.25 so we can also add basic kernel instrumentation (patches follow).

Mathieu

Signature · 3 lines
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68