Kernel marker
Kernel markers were a static kernel instrumentation support mechanism for Linux kernel source code, allowing special tools such as LTTng or SystemTap to trace information exposed by these probe points. Kernel markers were declared in the kernel code by one-liners of the form: trace_mark(name, format_string, ...); Where name is the marker's unique name, and format_string describes the remaining arguments' types. A marker can be on or off depending on whether a probe is connected to it or not. Code which wants to hook into a trace point first calls: int marker_probe_register(const char *name, const char *format_string, marker_probe_func *probe, void *pdata); to register its probe callback with the marker point ( pdata is a private data value that the code wants to pass to the probe ). Later, the probe is turned on and off using: int marker_arm(const char *name); int marker_disarm(const char *name); Using markers has a negligible overhead thanks in part to Immediate Values, another support mechanism that embeds switches in the code that can be dynamically turned on and off, without using a memory reference and thus saving cache lines. The initial motivation to create this static instrumentation infrastructure was the large performance overhead induced by the predating dynamic instrumentation mechanism Kprobe mechanism, which depends on breakpoints.…
Kernel markers were a static kernel instrumentation support mechanism for Linux kernel source code, allowing special tools such as LTTng or SystemTap to trace information exposed by these probe points. Kernel markers were declared in the kernel code by one-liners of the form: trace_mark(name, format_string, ...); Where name is the marker's unique name, and format_string describes the remaining arguments' types. A marker can be on or off depending on whether a probe is connected to it or not. Code which wants to hook into a trace point first calls: int marker_probe_register(const char *name, const char *format_string, marker_probe_func *probe, void *pdata); to register its probe callback with the marker point ( pdata is a private data value that the code wants to pass to the probe ). Later, the probe is turned on and off using: int marker_arm(const char *name); int marker_disarm(const char *name); Using markers has a negligible overhead thanks in part to Immediate Values, another support mechanism that embeds switches in the code that can be dynamically turned on and off, without using a memory reference and thus saving cache lines. The initial motivation to create this static instrumentation infrastructure was the large performance overhead induced by the predating dynamic instrumentation mechanism Kprobe mechanism, which depends on breakpoints. Static instrumentation can also more easily survive source code changes because the markers are in the source code. Kernel Markers consisted essentially of a C preprocessing macro which added, in the instrumented function, a branch over a function call. By doing so, neither the stack setup nor the function call are executed when instrumentation is not enabled. By identifying the branch executing stack setup and function call as unlikely (using the gcc built-in expect() ), a hint is given to the compiler to position the tracing instructions away from cache lines involved in standard kernel execution. Two Kernel Markers drawbacks were identified which led to its replacement by Tracepoints: Type verification was limited to scalar types because the API is based on format strings. This could be problematic if pointers must be dereferenced by the tracer code. The Markers "hide" the instrumentation in the source code, keeping no global registry of the instrumentation. This makes namespace conventions and tracking of instrumentation modification difficult unless the whole kernel tree is monitored. A patch-set implementing them was merged into version 2.6.24, which was released on January 24, 2008. To address issues regarding kernel markers, Mathieu Desnoyers, their original author, implemented a simpler and more type-safe version of static probe points named Tracepoints. A patch-set implementing Tracepoints was merged into version 2.6.28, which was released on December 25, 2008. Starting then, kernel markers were slowly removed from kernel sources and eventually fully removed in Linux kernel 2.6.32, which was released on December 3, 2009.
References
- Mathieu Desnoyers, [patch 08/10] Immediate Value - Documentation [ permanent dead link ] Wikipedia revision 1372549070, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1372549070
Cite this reference
MLA "Mathieu Desnoyers, [patch 08/10] Immediate Value - Documentation [ permanent dead link ] Wikipedia revision 1372549070, retrieved 2026-11-18." Mathieu Desnoyers, [patch 08/10] Immediate Value - Documentation [ permanent dead link ] Wikipedia revision 1372549070,. 2026-11-17. http://thread.gmane.org/gmane.linux.kernel/550209/focus=550214. Accessed 24 November 2026.
Chicago "Mathieu Desnoyers, [patch 08/10] Immediate Value - Documentation [ permanent dead link ] Wikipedia revision 1372549070, retrieved 2026-11-18." Mathieu Desnoyers, [patch 08/10] Immediate Value - Documentation [ permanent dead link ] Wikipedia revision 1372549070,. 2026-11-17. http://thread.gmane.org/gmane.linux.kernel/550209/focus=550214.
APA Mathieu Desnoyers, [patch 08/10] Immediate Value - Documentation [ permanent dead link ] Wikipedia revision 1372549070,. (2026). Mathieu Desnoyers, [patch 08/10] Immediate Value - Documentation [ permanent dead link ] Wikipedia revision 1372549070, retrieved 2026-11-18. Retrieved November 24, 2026, from http://thread.gmane.org/gmane.linux.kernel/550209/focus=550214
- Mathieu Desnoyers, [patch 7/8] Immediate Values - Documentation [ permanent dead link ] Wikipedia revision 1372549070, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1372549070
Cite this reference
MLA "Mathieu Desnoyers, [patch 7/8] Immediate Values - Documentation [ permanent dead link ] Wikipedia revision 1372549070, retrieved 2026-11-18." Mathieu Desnoyers, [patch 7/8] Immediate Values - Documentation [ permanent dead link ] Wikipedia revision 1372549070, r. 2026-11-17. http://thread.gmane.org/gmane.linux.kernel/568586/focus=568613. Accessed 24 November 2026.
Chicago "Mathieu Desnoyers, [patch 7/8] Immediate Values - Documentation [ permanent dead link ] Wikipedia revision 1372549070, retrieved 2026-11-18." Mathieu Desnoyers, [patch 7/8] Immediate Values - Documentation [ permanent dead link ] Wikipedia revision 1372549070, r. 2026-11-17. http://thread.gmane.org/gmane.linux.kernel/568586/focus=568613.
APA Mathieu Desnoyers, [patch 7/8] Immediate Values - Documentation [ permanent dead link ] Wikipedia revision 1372549070, r. (2026). Mathieu Desnoyers, [patch 7/8] Immediate Values - Documentation [ permanent dead link ] Wikipedia revision 1372549070, retrieved 2026-11-18. Retrieved November 24, 2026, from http://thread.gmane.org/gmane.linux.kernel/568586/focus=568613
- a b Mathieu Desnoyers, Low-Impact Operating System Tracing , Ph. D. Dissertation, Département de génie informatique et génie logiciel, École Polytechnique de Montréal, Université de Montréal, December 2009 Wikipedia revision 1372549070, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1372549070
Cite this reference
MLA "a b Mathieu Desnoyers, Low-Impact Operating System Tracing , Ph. D. Dissertation, Département de génie informatique et génie logiciel, École Polytechnique de Montréal, Université de Montréal, December 2009 Wikipedia revision 1372549070, retrieved 2026-11-18." a b Mathieu Desnoyers, Low-Impact Operating System Tracing , Ph. 2026-11-17. http://lttng.org/pub/thesis/desnoyers-dissertation-2009-12-v27.pdf. Accessed 24 November 2026.
Chicago "a b Mathieu Desnoyers, Low-Impact Operating System Tracing , Ph. D. Dissertation, Département de génie informatique et génie logiciel, École Polytechnique de Montréal, Université de Montréal, December 2009 Wikipedia revision 1372549070, retrieved 2026-11-18." a b Mathieu Desnoyers, Low-Impact Operating System Tracing , Ph. 2026-11-17. http://lttng.org/pub/thesis/desnoyers-dissertation-2009-12-v27.pdf.
APA a b Mathieu Desnoyers, Low-Impact Operating System Tracing , Ph. (2026). a b Mathieu Desnoyers, Low-Impact Operating System Tracing , Ph. D. Dissertation, Département de génie informatique et génie logiciel, École Polytechnique de Montréal, Université de Montréal, December 2009 Wikipedia revision 1372549070, retrieved 2026-11-18. Retrieved November 24, 2026, from http://lttng.org/pub/thesis/desnoyers-dissertation-2009-12-v27.pdf
- Christoph Hellwig, fc537766 Deprecated link archived 2013-04-15 at archive.today tracing: Remove markers, Torvalds' Linux git tree Wikipedia revision 1372549070, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1372549070
Cite this reference
MLA "Christoph Hellwig, fc537766 Deprecated link archived 2013-04-15 at archive.today tracing: Remove markers, Torvalds' Linux git tree Wikipedia revision 1372549070, retrieved 2026-11-18." Christoph Hellwig, fc537766 Deprecated link archived 2013-04-15 at archive. 2026-11-17. https://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=fc5377668c3d808e1d53c4aee152c836f55c3490. Accessed 24 November 2026.
Chicago "Christoph Hellwig, fc537766 Deprecated link archived 2013-04-15 at archive.today tracing: Remove markers, Torvalds' Linux git tree Wikipedia revision 1372549070, retrieved 2026-11-18." Christoph Hellwig, fc537766 Deprecated link archived 2013-04-15 at archive. 2026-11-17. https://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=fc5377668c3d808e1d53c4aee152c836f55c3490.
APA Christoph Hellwig, fc537766 Deprecated link archived 2013-04-15 at archive. (2026). Christoph Hellwig, fc537766 Deprecated link archived 2013-04-15 at archive.today tracing: Remove markers, Torvalds' Linux git tree Wikipedia revision 1372549070, retrieved 2026-11-18. Retrieved November 24, 2026, from https://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=fc5377668c3d808e1d53c4aee152c836f55c3490
- Linux 2.6.24 Changelog , Linux Kernel Newbies Wikipedia revision 1372549070, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1372549070
Cite this reference
MLA "Linux 2.6.24 Changelog , Linux Kernel Newbies Wikipedia revision 1372549070, retrieved 2026-11-18." Linux 2. 2026-11-17. http://kernelnewbies.org/Linux_2_6_24#head-1dc029816479d16d335498166b838f9478fbf5f7. Accessed 24 November 2026.
Chicago "Linux 2.6.24 Changelog , Linux Kernel Newbies Wikipedia revision 1372549070, retrieved 2026-11-18." Linux 2. 2026-11-17. http://kernelnewbies.org/Linux_2_6_24#head-1dc029816479d16d335498166b838f9478fbf5f7.
APA Linux 2. (2026). Linux 2.6.24 Changelog , Linux Kernel Newbies Wikipedia revision 1372549070, retrieved 2026-11-18. Retrieved November 24, 2026, from http://kernelnewbies.org/Linux_2_6_24#head-1dc029816479d16d335498166b838f9478fbf5f7
- Linux 2.6.28 Changelog , Linux Kernel Newbies Wikipedia revision 1372549070, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1372549070
Cite this reference
MLA "Linux 2.6.28 Changelog , Linux Kernel Newbies Wikipedia revision 1372549070, retrieved 2026-11-18." Linux 2. 2026-11-17. http://kernelnewbies.org/Linux_2_6_28#head-87501bfdeacc6b01eea92db039af6a6150a4cd1f. Accessed 24 November 2026.
Chicago "Linux 2.6.28 Changelog , Linux Kernel Newbies Wikipedia revision 1372549070, retrieved 2026-11-18." Linux 2. 2026-11-17. http://kernelnewbies.org/Linux_2_6_28#head-87501bfdeacc6b01eea92db039af6a6150a4cd1f.
APA Linux 2. (2026). Linux 2.6.28 Changelog , Linux Kernel Newbies Wikipedia revision 1372549070, retrieved 2026-11-18. Retrieved November 24, 2026, from http://kernelnewbies.org/Linux_2_6_28#head-87501bfdeacc6b01eea92db039af6a6150a4cd1f
- Linux 2.6.32 Changelog , Linux Kernel Newbies Wikipedia revision 1372549070, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1372549070
Cite this reference
MLA "Linux 2.6.32 Changelog , Linux Kernel Newbies Wikipedia revision 1372549070, retrieved 2026-11-18." Linux 2. 2026-11-17. http://kernelnewbies.org/Linux_2_6_32#head-1e6fc4d49750e970233ab969dead6692d7ad06fe. Accessed 24 November 2026.
Chicago "Linux 2.6.32 Changelog , Linux Kernel Newbies Wikipedia revision 1372549070, retrieved 2026-11-18." Linux 2. 2026-11-17. http://kernelnewbies.org/Linux_2_6_32#head-1e6fc4d49750e970233ab969dead6692d7ad06fe.
APA Linux 2. (2026). Linux 2.6.32 Changelog , Linux Kernel Newbies Wikipedia revision 1372549070, retrieved 2026-11-18. Retrieved November 24, 2026, from http://kernelnewbies.org/Linux_2_6_32#head-1e6fc4d49750e970233ab969dead6692d7ad06fe
- Using Markers , SystemTap Wiki Wikipedia revision 1372549070, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1372549070
Cite this reference
MLA "Using Markers , SystemTap Wiki Wikipedia revision 1372549070, retrieved 2026-11-18." 2026-11-17. http://sourceware.org/systemtap/wiki/UsingMarkers. Accessed 24 November 2026.
Chicago "Using Markers , SystemTap Wiki Wikipedia revision 1372549070, retrieved 2026-11-18." 2026-11-17. http://sourceware.org/systemtap/wiki/UsingMarkers.
APA encyclopegia.org. (2026). Using Markers , SystemTap Wiki Wikipedia revision 1372549070, retrieved 2026-11-18. Retrieved November 24, 2026, from http://sourceware.org/systemtap/wiki/UsingMarkers
- Tracepoints and Markers Archived 2009-09-23 at the Wayback Machine , LTTng's Tracing Wiki Wikipedia revision 1372549070, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1372549070
Cite this reference
MLA "Tracepoints and Markers Archived 2009-09-23 at the Wayback Machine , LTTng's Tracing Wiki Wikipedia revision 1372549070, retrieved 2026-11-18." Tracepoints and Markers Archived 2009-09-23 at the Wayback Machine , LTTng's Tracing Wiki Wikipedia revision 1372549070,. 2026-11-17. http://ltt.polymtl.ca/tracingwiki/index.php/Tracepoints_and_Markers. Accessed 24 November 2026.
Chicago "Tracepoints and Markers Archived 2009-09-23 at the Wayback Machine , LTTng's Tracing Wiki Wikipedia revision 1372549070, retrieved 2026-11-18." Tracepoints and Markers Archived 2009-09-23 at the Wayback Machine , LTTng's Tracing Wiki Wikipedia revision 1372549070,. 2026-11-17. http://ltt.polymtl.ca/tracingwiki/index.php/Tracepoints_and_Markers.
APA Tracepoints and Markers Archived 2009-09-23 at the Wayback Machine , LTTng's Tracing Wiki Wikipedia revision 1372549070,. (2026). Tracepoints and Markers Archived 2009-09-23 at the Wayback Machine , LTTng's Tracing Wiki Wikipedia revision 1372549070, retrieved 2026-11-18. Retrieved November 24, 2026, from http://ltt.polymtl.ca/tracingwiki/index.php/Tracepoints_and_Markers
Cite this article
MLA
"Kernel marker." encyclopegia.org, 2026, https://encyclopegia.org/wiki/kernel-marker. Accessed 24 November 2026.
Chicago
"Kernel marker." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/kernel-marker.
APA
encyclopegia.org. (2026). Kernel marker. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/kernel-marker
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| release date | 2008-01-24 | Wikipedia |
| release date | 2008-12-25 | Wikipedia |
| release date | 2009-12-03 | Wikipedia |