summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-03-06 23:26:29 +0000
committergVisor bot <gvisor-bot@google.com>2020-03-06 23:26:29 +0000
commit2ea0e97ef4360192dcd184578d7da6eb8cb609ee (patch)
treef22cdbe4c23d1a4c1f87d7a4e39ea6ed13bea2af /pkg/sentry
parent4c75105d32c216b9499da1263e642cc7b9a2a700 (diff)
parent228813fd26aadea012cd8c39e084e4b0fb23d273 (diff)
Merge release-20200219.0-124-g228813f (automated)
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/control/pprof.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/sentry/control/pprof.go b/pkg/sentry/control/pprof.go
index 5d1907c0e..663e51989 100644
--- a/pkg/sentry/control/pprof.go
+++ b/pkg/sentry/control/pprof.go
@@ -117,15 +117,15 @@ func (p *Profile) HeapProfile(o *ProfileOpts, _ *struct{}) error {
return nil
}
-// GoroutineProfile is an RPC stub which dumps out the stack trace for all running
-// goroutines.
+// GoroutineProfile is an RPC stub which dumps out the stack trace for all
+// running goroutines.
func (p *Profile) GoroutineProfile(o *ProfileOpts, _ *struct{}) error {
if len(o.FilePayload.Files) < 1 {
return errNoOutput
}
output := o.FilePayload.Files[0]
defer output.Close()
- if err := pprof.Lookup("goroutine").WriteTo(output, 0); err != nil {
+ if err := pprof.Lookup("goroutine").WriteTo(output, 2); err != nil {
return err
}
return nil