trace2: write discard message to sentinel files
commit87db61a4363ad9f42cf7b0d90ad13763dc01e3af
authorJosh Steadmon <steadmon@google.com>
Fri, 4 Oct 2019 22:08:21 +0000 (4 15:08 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 5 Oct 2019 08:53:51 +0000 (5 17:53 +0900)
treee36e7c4db2607543164f8e543bb9e90e12c7aeb6
parent83e57b04e6ae3bc4c714812768f61bc41b1d56ad
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>
Documentation/technical/api-trace2.txt
t/t0212-trace2-event.sh
trace2/tr2_dst.c
trace2/tr2_dst.h
trace2/tr2_tgt_event.c
trace2/tr2_tgt_normal.c
trace2/tr2_tgt_perf.c