diff options
| author | Tzvetomir Stoyanov (VMware) <[email protected]> | 2020-07-02 18:53:50 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-07-06 11:35:23 +0000 |
| commit | 487ae1f4a17c197ab77b3ea593049a11187ec9a1 (patch) | |
| tree | cc1f006b2ac87ec8c547b47e0a384ccbe2ff77ee /tools/lib/traceevent/plugins/plugin_function.c | |
| parent | tools lib traceevent: Introduced new traceevent API, for adding new plugins d... (diff) | |
| download | kernel-487ae1f4a17c197ab77b3ea593049a11187ec9a1.tar.gz kernel-487ae1f4a17c197ab77b3ea593049a11187ec9a1.zip | |
tools lib traceevent: Add support for more printk format specifiers
The printk format specifiers used in event's print format files extend
the standard printf formats. There are a lot of new options related to
printing pointers and kernel specific structures. Currently trace-cmd
does not support many of them.
Support for these new printk specifiers is added to the pretty_print()
function:
- UUID/GUID address: %pU[bBlL]
- Raw buffer as a hex string: %*ph[CDN]
These are improved:
- MAC address: %pMF, %pM and %pmR
- IPv4 adderss: %p[Ii]4[hnbl]
Function pretty_print() is refactored. The logic for printing pointers
%p[...] is moved to its own function.
Link: https://lore.kernel.org/linux-trace-devel/[email protected]
Link: http://lore.kernel.org/linux-trace-devel/[email protected]
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=207605
Reported-by: Johannes Berg <[email protected]>
Signed-off-by: Tzvetomir Stoyanov (VMware) <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: [email protected]
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/traceevent/plugins/plugin_function.c')
0 files changed, 0 insertions, 0 deletions
