trace2: convert ctx.thread_name from strbuf to pointer
commit24a4c45da9e1255df43a87bec1f646b1efa69209
authorJeff Hostetler <jeffhost@microsoft.com>
Mon, 24 Oct 2022 13:41:05 +0000 (24 13:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Oct 2022 19:45:26 +0000 (24 12:45 -0700)
tree349f564bf5bac27bc6b2049194bb17b606eee449
parent31247936041318d441de5a2681f9bcb79459c726
trace2: convert ctx.thread_name from strbuf to pointer

Convert the `tr2tls_thread_ctx.thread_name` field from a `strbuf`
to a "const char*" pointer.

The `thread_name` field is a constant string that is constructed when
the context is created.  Using a (non-const) `strbuf` structure for it
caused some confusion in the past because it implied that someone
could rename a thread after it was created.  That usage was not
intended.  Change it to a const pointer to make the intent more clear.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trace2/tr2_tgt_event.c
trace2/tr2_tgt_perf.c
trace2/tr2_tls.c
trace2/tr2_tls.h