aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/plugins/plugin_function.c
diff options
context:
space:
mode:
authorTzvetomir Stoyanov (VMware) <[email protected]>2020-07-02 18:53:51 +0000
committerArnaldo Carvalho de Melo <[email protected]>2020-07-06 11:59:58 +0000
commite7a90882b05b2669df7a0aa2e87e6283c7edff33 (patch)
tree0012057bddef87f67edf5f1fa795206a2810ae9a /tools/lib/traceevent/plugins/plugin_function.c
parenttools lib traceevent: Add support for more printk format specifiers (diff)
downloadkernel-e7a90882b05b2669df7a0aa2e87e6283c7edff33.tar.gz
kernel-e7a90882b05b2669df7a0aa2e87e6283c7edff33.zip
tools lib traceevent: Optimize pretty_print() function
Each time the pretty_print() function is called to print an event, the event's format string is parsed. As this format string does not change, this parsing can be done only once - when the event struct is initialized. Link: https://lore.kernel.org/linux-trace-devel/[email protected] Link: http://lore.kernel.org/linux-trace-devel/[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