Skip to content

RFC Tracepoints

Mathieu Desnoyers lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Kernel Tracepointsinclude/asm-generic/vmlinux.lds.h include/linux/module.h include/linux/tracepoint.h +4 more+741 -22 replies
2/3LTTng tracepoint instrumentation fsfs/buffer.c fs/compat.c fs/exec.c +5 more+87 -20 replies
3/3LTTng instrumentation FS tracepoint probesfs/Makefile fs/fs-trace.c+173 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC patch 0/3] Tracepoints

Hi,

Here is the new tracepoint infrastructure, heavily inspired from the Markers. It applies on 2.6.26-rc8. I also post my fs/ LTTng instrumentation as an example of the resulting code using tracepoints. Please feel free to comment.

- Tracepoints allow more complete type checking (at compile-time) than markers.
- They allow to connect probes involving in-kernel tracers which must be aware of complex types such as "struct task_struct *" (not just a void *).
- They are not meant as a replacement for markers, since they do not allow one-liner printk-style addition of tracing statements for debugging purpose.
- They require a declaration in a header file, which creates a nice stable API.

Thanks,

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