Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Linux Kernel Markers: document format string

Describes the format string standard further: Use of field names before the
type specifiers..

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Mathieu Desnoyers and committed by
Linus Torvalds
5f9468ce 314de8a9

+4 -2
+4 -2
Documentation/markers.txt
··· 35 35 36 36 And, 37 37 38 - trace_mark(subsystem_event, "%d %s", someint, somestring); 38 + trace_mark(subsystem_event, "myint %d mystring %s", someint, somestring); 39 39 Where : 40 40 - subsystem_event is an identifier unique to your event 41 41 - subsystem is the name of your subsystem. 42 42 - event is the name of the event to mark. 43 - - "%d %s" is the formatted string for the serializer. 43 + - "myint %d mystring %s" is the formatted string for the serializer. "myint" and 44 + "mystring" are repectively the field names associated with the first and 45 + second parameter. 44 46 - someint is an integer. 45 47 - somestring is a char pointer. 46 48