Skip to content

ftrace: support binary record (V2)

Lai Jiangshan lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 13 repliesIn review

changed from V1 from the cover letter

1) not use Python style. Formates typically have 2~8 '%', using Python style make no sense, and gcc can not check parameters when we use Python style.
2) enable ftrace trace markers.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5add binary printfinclude/linux/string.h lib/Kconfig lib/vsprintf.c+452 -00 replies
2/5ftrace: infrastructure for supporting binary recordinclude/linux/ftrace.h kernel/trace/Kconfig kernel/trace/Makefile +4 more+238 -09 replies
3/5ftrace: add ftrace_bprintk()include/asm-generic/vmlinux.lds.h include/linux/ftrace.h include/linux/module.h +3 more+167 -10 replies
4/5ftrace: show ftrace_bprintk()'s formatskernel/trace/trace.c kernel/trace/trace.h kernel/trace/trace_bprintk.c+88 -04 replies
5/5ftrace: trace markerskernel/trace/trace.c kernel/trace/trace.h kernel/trace/trace_bprintk.c+249 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] ftrace: support binary record (V2)

Binary record will save memory in trace buffer, and more events can be recorded in buffer.

This patch add infrastructure for supporting binary record.

This infrastructure records events by binary and shows events by human readable text.

And add a API ftrace_bprintk() using this infrastructure. (This API is exactly the same as ftrace_printk(), beside it record the date by binary)

changed from V1:
1) not use Python style. Formates typically have 2~8 '%', using Python style make no sense, and gcc can not check parameters when we use Python style.
2) enable ftrace trace markers.

patches are for tracing/ftrace.

---