#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 }; /* * The version number of the JSON data generated by the EVENT target * in this source file. Update this if you make a significant change * to the JSON fields or message structure. You probably do not need * to update this if you just add another call to one of the existing * TRACE2 API methods. */ #define TR2_EVENT_VERSION "1" /* * 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