<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/trace2, branch v2.24.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v2.24.2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v2.24.2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2019-10-05T08:53:51Z</updated>
<entry>
<title>trace2: write discard message to sentinel files</title>
<updated>2019-10-05T08:53:51Z</updated>
<author>
<name>Josh Steadmon</name>
<email>steadmon@google.com</email>
</author>
<published>2019-10-04T22:08:21Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=87db61a4363ad9f42cf7b0d90ad13763dc01e3af'/>
<id>urn:sha1:87db61a4363ad9f42cf7b0d90ad13763dc01e3af</id>
<content type='text'>
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 &lt;steadmon@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>trace2: discard new traces if target directory has too many files</title>
<updated>2019-10-05T08:53:51Z</updated>
<author>
<name>Josh Steadmon</name>
<email>steadmon@google.com</email>
</author>
<published>2019-10-04T22:08:20Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=83e57b04e6ae3bc4c714812768f61bc41b1d56ad'/>
<id>urn:sha1:83e57b04e6ae3bc4c714812768f61bc41b1d56ad</id>
<content type='text'>
trace2 can write files into a target directory. With heavy usage, this
directory can fill up with files, causing difficulty for
trace-processing systems.

This patch adds a config option (trace2.maxFiles) to set a maximum
number of files that trace2 will write to a target directory. The
following behavior is enabled when the maxFiles is set to a positive
integer:
  When trace2 would write a file to a target directory, first check
  whether or not the traces should be discarded. Traces should be
  discarded if:
    * there is a sentinel file declaring that there are too many files
    * OR, the number of files exceeds trace2.maxFiles.
  In the latter case, we create a sentinel file named git-trace2-discard
  to speed up future checks.

The assumption is that a separate trace-processing system is dealing
with the generated traces; once it processes and removes the sentinel
file, it should be safe to generate new trace files again.

The default value for trace2.maxFiles is zero, which disables the file
count check.

The config can also be overridden with a new environment variable:
GIT_TRACE2_MAX_FILES.

Signed-off-by: Josh Steadmon &lt;steadmon@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jh/trace2-pretty-output'</title>
<updated>2019-09-30T04:19:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-09-30T04:19:31Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=93fc8760e7a29ce9e93c90c63523f0c1f25498bb'/>
<id>urn:sha1:93fc8760e7a29ce9e93c90c63523f0c1f25498bb</id>
<content type='text'>
Output from trace2 subsystem is formatted more prettily now.

* jh/trace2-pretty-output:
  trace2: cleanup whitespace in perf format
  trace2: cleanup whitespace in normal format
  quote: add sq_append_quote_argv_pretty()
  trace2: trim trailing whitespace in normal format error message
  trace2: remove dead code in maybe_add_string_va()
  trace2: trim whitespace in region messages in perf target format
  trace2: cleanup column alignment in perf target format
</content>
</entry>
<entry>
<title>Merge branch 'rs/trace2-dst-warning'</title>
<updated>2019-09-30T04:19:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-09-30T04:19:24Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=a2e22bb3ade2564c6d55869086eac5cc6753b925'/>
<id>urn:sha1:a2e22bb3ade2564c6d55869086eac5cc6753b925</id>
<content type='text'>
Code cleanup.

* rs/trace2-dst-warning:
  trace2: use warning() directly in tr2_dst_malformed_warning()
</content>
</entry>
<entry>
<title>trace2: use warning() directly in tr2_dst_malformed_warning()</title>
<updated>2019-08-26T18:34:23Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2019-08-25T17:44:10Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=1fd881d4046fb42f77ff9031ef07b7a18028ece0'/>
<id>urn:sha1:1fd881d4046fb42f77ff9031ef07b7a18028ece0</id>
<content type='text'>
Let warning() format the message instead of using an intermediate strbuf
for that.  This is shorter, easier to read and avoids an allocation.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>trace2: cleanup whitespace in perf format</title>
<updated>2019-08-09T17:48:02Z</updated>
<author>
<name>Jeff Hostetler</name>
<email>jeffhost@microsoft.com</email>
</author>
<published>2019-08-09T15:00:57Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=742ed63345a6e26399fc08e9c711e9f3fd23cc2d'/>
<id>urn:sha1:742ed63345a6e26399fc08e9c711e9f3fd23cc2d</id>
<content type='text'>
Make use of new sq_append_quote_argv_pretty() to normalize
how we handle leading whitespace in perf format messages.

Signed-off-by: Jeff Hostetler &lt;jeffhost@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>trace2: cleanup whitespace in normal format</title>
<updated>2019-08-09T17:48:02Z</updated>
<author>
<name>Jeff Hostetler</name>
<email>jeffhost@microsoft.com</email>
</author>
<published>2019-08-09T15:00:56Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=e34430556c8cb7c99a561125df3c8f595c385e7e'/>
<id>urn:sha1:e34430556c8cb7c99a561125df3c8f595c385e7e</id>
<content type='text'>
Make use of new sq_append_quote_argv_pretty() to normalize
how we handle leading whitespace in normal format messages.

Signed-off-by: Jeff Hostetler &lt;jeffhost@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>trace2: trim trailing whitespace in normal format error message</title>
<updated>2019-08-08T17:39:44Z</updated>
<author>
<name>Jeff Hostetler</name>
<email>jeffhost@microsoft.com</email>
</author>
<published>2019-08-08T14:19:02Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=ad43e37839ea6a3cf369af074a723a60cd66233b'/>
<id>urn:sha1:ad43e37839ea6a3cf369af074a723a60cd66233b</id>
<content type='text'>
Avoid creating unnecessary trailing whitespace in normal
target format error messages when the message is omitted.

Signed-off-by: Jeff Hostetler &lt;jeffhost@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>trace2: remove dead code in maybe_add_string_va()</title>
<updated>2019-08-08T17:39:44Z</updated>
<author>
<name>Jeff Hostetler</name>
<email>jeffhost@microsoft.com</email>
</author>
<published>2019-08-08T14:19:01Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=04f10d332f47aed7d93ff3ed5c2bb3a366e44693'/>
<id>urn:sha1:04f10d332f47aed7d93ff3ed5c2bb3a366e44693</id>
<content type='text'>
Remove an unnecessary "if" block in maybe_add_string_va().

Commit "ad006fe419e trace2: NULL is not allowed for va_list"
changed "if (fmt &amp;&amp; *fmt &amp;&amp; ap)" to just "if (fmt &amp;&amp; *fmt)"
because it isn't safe to treat 'ap' as a pointer.  This made
the "if" block following it unnecessary.

Signed-off-by: Jeff Hostetler &lt;jeffhost@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>trace2: trim whitespace in region messages in perf target format</title>
<updated>2019-08-08T17:39:44Z</updated>
<author>
<name>Jeff Hostetler</name>
<email>jeffhost@microsoft.com</email>
</author>
<published>2019-08-08T14:19:00Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=da4589ce7ecb84b51b2819542f9555848dccf726'/>
<id>urn:sha1:da4589ce7ecb84b51b2819542f9555848dccf726</id>
<content type='text'>
Avoid unecessary trailing whitespace in "region_enter" and "region_leave"
messages in perf target format.

Signed-off-by: Jeff Hostetler &lt;jeffhost@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
