source: tools/tracestats/ @ 2d8a045

Last change on this file since 2d8a045 was f625817, checked in by Shane Alcock <salcock@…>, 6 years ago

Reworked callback API and removed old per_msg and reporter functions

Updated tracertstats to use the new callback API.

Extended the callback approach to the reporter thread as well as the per
packet threads.

Added libtrace_callback_set_t structure, which is used to register the
user callback functions.

Added callback functionality for MESSAGE_RESULT (needed now that reporter
threads also do callbacks) and MESSAGE_USER (for user-defined messages). The
MESSAGE_USER callback is essentially the same as the old per_msg function

Updated combiners to use send_message to pass results to the reporter thread.
send_message itself is now no longer static, so that combiners can use it.

Disabled building of tracestats_parallel as it was using the older version
of the callback API. Will update in a future commit.

  • Property mode set to 100644
File size: 194 bytes
1bin_PROGRAMS = tracestats
2bin_SCRIPTS = tracesummary
4man_MANS = tracestats.1 tracesummary.1
5EXTRA_DIST = $(man_MANS) $(bin_SCRIPTS)
7include ../
8tracestats_SOURCES = tracestats.c
Note: See TracBrowser for help on using the repository browser.