diff options
author | Tzvetomir Stoyanov (VMware) <[email protected]> | 2020-07-02 14:53:51 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-07-06 08:59:58 -0300 |
commit | e7a90882b05b2669df7a0aa2e87e6283c7edff33 (patch) | |
tree | 0012057bddef87f67edf5f1fa795206a2810ae9a /tools/perf/scripts/python/check-perf-trace.py | |
parent | 487ae1f4a17c197ab77b3ea593049a11187ec9a1 (diff) |
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/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions