#include "cache.h" #include "config.h" #include "json-writer.h" #include "run-command.h" #include "version.h" #include "trace2/tr2_dst.h" #include "trace2/tr2_tbuf.h" #include "trace2/tr2_sid.h" #include "trace2/tr2_sysenv.h" #include "trace2/tr2_tgt.h" #include "trace2/tr2_tls.h" static struct tr2_dst tr2dst_event = { TR2_SYSENV_EVENT, 0, 0, 0, 0 }; /* * The version number of the JSON data generated by the EVENT target in this * source file. The version should be incremented if new event types are added, * if existing fields are removed, or if there are significant changes in * interpretation of existing events or fields. Smaller changes, such as adding * a new field to an existing event, do not require an increment to the EVENT * format version. */ #define TR2_EVENT_VERSION "2" /* * Region nesting limit for messages written to the event target. * * The "region_enter" and "region_leave" messages (especially recursive * messages such as those produced while diving the worktree or index) * are primarily intended for the performance target during debugging. * * Some of the outer-most messages, however, may be of interest to the * event target. Use the TR2_SYSENV_EVENT_NESTING setting to increase * region details in the event target. */ static int tr2env_event_max_nesting_levels = 2; /* * Use the TR2_SYSENV_EVENT_BRIEF to omit the