Skip to content

Conversation

@jeffhostetler
Copy link

This patch series includes additional (v2) trace2 features since jeffhostetler/gvfs-trace2-v1
was merged into the v2.19.1 version of VFS4G. The purpose of this PR is to get CI testing
on all 3 platforms.

Many of the commits in this series are marked as "fix" or "fixup". These will be combined
and squashed with V1 Trace2 commits when the series is sent to upstream.

TODO
[] More unit tests
[] Trace2 design documentation

* let common-main call trace2_cmd_exit
* add subverb event
* clarify exec/exec_result events
* add trace2_is_enabled()
* split cmd_start out of initialize

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Trace2 adds GIT_TR2_PARENT_SID and GIT_TR2_PARENT_VERB to the environment
for child processes to inherit.  Exclude them from the test.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Add platform-specific "data" events with information about the
current process.

On Windows, this includes whether git.exe is running under a
debugger and information about the process ancestors.  This lets
post-processors know if git.exe was launched interactively or
in the background by an IDE or GVFS daemon, for example.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Extend verb event from a git process to include verb
information about its parent git processes.

For example, when "git fetch" launches a child "git gc",
command, the child process will emit a verb message
containing:
    "name":"gc",
    "hierarchy":"fetch/gc",

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
@jeffhostetler
Copy link
Author

abandoning this in favor of squashed/refactored version.

@jeffhostetler jeffhostetler deleted the gvfs-trace2-v2-2201 branch July 1, 2019 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant