diff options
author | Josh Steadmon <steadmon@google.com> | 2019-10-04 15:08:21 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-05 17:53:51 +0900 |
commit | 87db61a4363ad9f42cf7b0d90ad13763dc01e3af (patch) | |
tree | e36e7c4db2607543164f8e543bb9e90e12c7aeb6 /trace2/tr2_tgt_perf.c | |
parent | trace2: discard new traces if target directory has too many files (diff) | |
download | tgif-87db61a4363ad9f42cf7b0d90ad13763dc01e3af.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 "<time> <file>:<line>" |