Skip to content

Commit 2254101

Browse files
steadmongitster
authored andcommitted
docs: clarify trace2 version invariants
Make it explicit that we always want trace2 "version" events to be the first event of any trace session. Also list the changes that would or would not cause the EVENT format version field to be incremented. Signed-off-by: Josh Steadmon <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3d4548e commit 2254101

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Documentation/technical/api-trace2.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,13 @@ only present on the "start" and "atexit" events.
604604
==== Event-Specific Key/Value Pairs
605605

606606
`"version"`::
607-
This event gives the version of the executable and the EVENT format.
607+
This event gives the version of the executable and the EVENT format. It
608+
should always be the first event in a trace session. The EVENT format
609+
version will be incremented if new event types are added, if existing
610+
fields are removed, or if there are significant changes in
611+
interpretation of existing events or fields. Smaller changes, such as
612+
adding a new field to an existing event, will not require an increment
613+
to the EVENT format version.
608614
+
609615
------------
610616
{

0 commit comments

Comments
 (0)