From 87db61a4363ad9f42cf7b0d90ad13763dc01e3af Mon Sep 17 00:00:00 2001 From: Josh Steadmon Date: Fri, 4 Oct 2019 15:08:21 -0700 Subject: 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 Signed-off-by: Junio C Hamano --- trace2/tr2_tgt_perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trace2/tr2_tgt_perf.c') diff --git a/trace2/tr2_tgt_perf.c b/trace2/tr2_tgt_perf.c index fd979db4ad..ffac8029ad 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 "