1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-09 19:36:10 +02:00
git/trace2
Jeff Hostetler 24a4c45da9 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>
2022-10-24 12:45:26 -07:00
..
tr2_cfg.c
tr2_cfg.h
tr2_cmd_name.c
tr2_cmd_name.h
tr2_dst.c
tr2_dst.h
tr2_sid.c
tr2_sid.h
tr2_sysenv.c
tr2_sysenv.h
tr2_tbuf.c
tr2_tbuf.h
tr2_tgt.h
tr2_tgt_event.c trace2: convert ctx.thread_name from strbuf to pointer 2022-10-24 12:45:26 -07:00
tr2_tgt_normal.c tr2: shows scope unconditionally in addition to key-value pair 2022-08-11 21:05:00 -07:00
tr2_tgt_perf.c trace2: convert ctx.thread_name from strbuf to pointer 2022-10-24 12:45:26 -07:00
tr2_tls.c trace2: convert ctx.thread_name from strbuf to pointer 2022-10-24 12:45:26 -07:00
tr2_tls.h trace2: convert ctx.thread_name from strbuf to pointer 2022-10-24 12:45:26 -07:00