This short patch series begins tranformation of libtraceevent into a thread safe library. It implements per thread local storage for tep->last_event cache, and converts input_buf, input_buf_ptr and input_buf_siz internal variables to be thread specific. Tzvetomir Stoyanov (2): tools/lib/traceevent: make libtraceevent thread safe tools/lib/traceevent: make few libtraceevent internal variables to be per thread tools/lib/traceevent/Build | 1 + tools/lib/traceevent/event-parse-local.h | 15 ++++-- tools/lib/traceevent/event-parse-thread.c | 63 +++++++++++++++++++++++ tools/lib/traceevent/event-parse.c | 45 ++++++++-------- 4 files changed, 100 insertions(+), 24 deletions(-) create mode 100644 tools/lib/traceevent/event-parse-thread.c -- 2.19.1
![]() |