summaryrefslogtreecommitdiff
path: root/trace2/tr2_tgt_perf.c
diff options
context:
space:
mode:
authorJosh Steadmon <steadmon@google.com>2019-10-04 22:08:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-10-05 08:53:51 (GMT)
commit87db61a4363ad9f42cf7b0d90ad13763dc01e3af (patch)
treee36e7c4db2607543164f8e543bb9e90e12c7aeb6 /trace2/tr2_tgt_perf.c
parent83e57b04e6ae3bc4c714812768f61bc41b1d56ad (diff)
downloadgit-87db61a4363ad9f42cf7b0d90ad13763dc01e3af.zip
git-87db61a4363ad9f42cf7b0d90ad13763dc01e3af.tar.gz
git-87db61a4363ad9f42cf7b0d90ad13763dc01e3af.tar.bz2
trace2: write discard message to sentinel files
Add a new "discard" event type for trace2 event destinations. When the trace2 file count check creates a sentinel file, it will include the normal trace2 output in the sentinel, along with this new discard event. Writing this message into the sentinel file is useful for tracking how often the file count check triggers in practice. Bump up the event format version since we've added a new event type. Signed-off-by: Josh Steadmon <steadmon@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2/tr2_tgt_perf.c')
-rw-r--r--trace2/tr2_tgt_perf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trace2/tr2_tgt_perf.c b/trace2/tr2_tgt_perf.c
index fd979db..ffac802 100644
--- a/trace2/tr2_tgt_perf.c
+++ b/trace2/tr2_tgt_perf.c
@@ -11,7 +11,7 @@
#include "trace2/tr2_tgt.h"
#include "trace2/tr2_tls.h"
-static struct tr2_dst tr2dst_perf = { TR2_SYSENV_PERF, 0, 0, 0 };
+static struct tr2_dst tr2dst_perf = { TR2_SYSENV_PERF, 0, 0, 0, 0 };
/*
* Use TR2_SYSENV_PERF_BRIEF to omit the "<time> <file>:<line>"