1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-09 06:46:16 +02:00
git/trace2
Jeff Hostetler 64bc75244b trace2: add trace2_child_ready() to report on background children
Create "child_ready" event to capture the state of a child process
created in the background.

When a child command is started a "child_start" event is generated in
the Trace2 log.  For normal synchronous children, a "child_exit" event
is later generated when the child exits or is terminated.  The two events
include information, such as the "child_id" and "pid", to allow post
analysis to match-up the command line and exit status.

When a child is started in the background (and may outlive the parent
process), it is not possible for the parent to emit a "child_exit"
event.  Create a new "child_ready" event to indicate whether the
child was successfully started.  Also include the "child_id" and "pid"
to allow similar post processing.

This will be used in a later commit with the new "start_bg_command()".

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2021-09-20 08:57:58 -07:00
..
tr2_cfg.c trace2: teach Git to log environment variables 2020-03-23 13:14:53 -07:00
tr2_cfg.h trace2: teach Git to log environment variables 2020-03-23 13:14:53 -07:00
tr2_cmd_name.c trace2: rename environment variables to GIT_TRACE2* 2019-05-28 10:20:34 -07:00
tr2_cmd_name.h
tr2_dst.c Merge branch 'ab/trace2-squelch-gcc-warning' 2021-06-14 13:33:28 +09:00
tr2_dst.h trace2: write discard message to sentinel files 2019-10-05 17:53:51 +09:00
tr2_sid.c Fix spelling errors in code comments 2019-11-10 16:00:54 +09:00
tr2_sid.h
tr2_sysenv.c trace2: teach Git to log environment variables 2020-03-23 13:14:53 -07:00
tr2_sysenv.h trace2: teach Git to log environment variables 2020-03-23 13:14:53 -07:00
tr2_tbuf.c trace2: make SIDs more unique 2019-04-16 13:37:07 +09:00
tr2_tbuf.h trace2: make SIDs more unique 2019-04-16 13:37:07 +09:00
tr2_tgt.h trace2: add trace2_child_ready() to report on background children 2021-09-20 08:57:58 -07:00
tr2_tgt_event.c trace2: add trace2_child_ready() to report on background children 2021-09-20 08:57:58 -07:00
tr2_tgt_normal.c trace2: add trace2_child_ready() to report on background children 2021-09-20 08:57:58 -07:00
tr2_tgt_perf.c trace2: add trace2_child_ready() to report on background children 2021-09-20 08:57:58 -07:00
tr2_tls.c Merge branch 'jh/trace2' 2019-05-30 10:50:45 -07:00
tr2_tls.h trace2: refactor setting process starting time 2019-04-16 13:37:06 +09:00