Skip to content

Enable dumping Goroutine stacks via ETW capture state#3217

Merged
lowenna merged 2 commits intocontainerd:masterfrom
kevpar:etw-capture-state
Apr 15, 2019
Merged

Enable dumping Goroutine stacks via ETW capture state#3217
lowenna merged 2 commits intocontainerd:masterfrom
kevpar:etw-capture-state

Conversation

@kevpar
Copy link
Copy Markdown
Member

@kevpar kevpar commented Apr 14, 2019

When dumpStacks is called, the stacks are already logged to ETW due to the Logrus ETW hook. This change uses an ETW callback to allow triggering the stack dumping from ETW. This will make it easy to collect stacks through ETW without needing a separate utility to trigger the event object on Windows.

A go-winio vendor update is needed to bring in the guid package, which is used for the ETW callback.

Copy link
Copy Markdown
Contributor

@jterry75 jterry75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Not sure why Linux CI failed.

@jhowardmsft - PTAL

Comment thread cmd/containerd/command/main_windows.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just when we got rid of some UUID implementations, a new one is added 😂 (sorry, couldn't resist)

@kevpar kevpar force-pushed the etw-capture-state branch from 3a9b312 to 78f3dc4 Compare April 15, 2019 20:36
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3217 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3217   +/-   ##
=======================================
  Coverage   44.63%   44.63%           
=======================================
  Files         113      113           
  Lines       12161    12161           
=======================================
  Hits         5428     5428           
  Misses       5898     5898           
  Partials      835      835
Flag Coverage Δ
#linux 48.65% <ø> (ø) ⬆️
#windows 39.86% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 396eba1...78f3dc4. Read the comment docs.

Copy link
Copy Markdown

@lowenna lowenna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

5 participants