diff options
| author | Tzvetomir Stoyanov <[email protected]> | 2019-04-01 16:43:08 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-04-01 18:18:09 +0000 |
| commit | 6699ed712a97f70267e017f509126b890f6f6b28 (patch) | |
| tree | 51121a341e65c4f38001f329a8a8a21a0f889e61 /tools/lib/traceevent/plugin_function.c | |
| parent | tools lib traceevent: Add mono clocks to be parsed in seconds (diff) | |
| download | kernel-6699ed712a97f70267e017f509126b890f6f6b28.tar.gz kernel-6699ed712a97f70267e017f509126b890f6f6b28.zip | |
tools lib traceevent: Implement a new API, tep_list_events_copy()
Existing API tep_list_events() is not thread safe, it uses the internal
array sort_events to keep cache of the sorted events and reuses it. This
patch implements a new API, tep_list_events_copy(), which allocates new
sorted array each time it is called. It could be used when a sorted
events functionality is needed in thread safe use cases. It is up to the
caller to free the array.
Signed-off-by: Tzvetomir Stoyanov <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: http://lore.kernel.org/linux-trace-devel/[email protected]
Link: http://lkml.kernel.org/r/[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/plugin_function.c')
0 files changed, 0 insertions, 0 deletions
