diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-08-05 18:33:09 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-05 18:33:09 +0000 |
commit | a060b707795cbe24dbb0d787457ae844c28ff860 (patch) | |
tree | 7e3411abb354eee26fa2e206b745cdefcd2f7fd4 /pkg/sentry/control | |
parent | ea8980db9334b24052c221b5765b9b9428a6557d (diff) | |
parent | 190b1e6bd4aae56eff3ff846efea38629361b3a9 (diff) |
Merge release-20200804.0-19-g190b1e6bd (automated)
Diffstat (limited to 'pkg/sentry/control')
-rw-r--r-- | pkg/sentry/control/pprof.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/sentry/control/pprof.go b/pkg/sentry/control/pprof.go index 663e51989..2bf3c45e1 100644 --- a/pkg/sentry/control/pprof.go +++ b/pkg/sentry/control/pprof.go @@ -49,6 +49,9 @@ type ProfileOpts struct { // - dump out the stack trace of current go routines. // sentryctl -pid <pid> pprof-goroutine type Profile struct { + // Kernel is the kernel under profile. It's immutable. + Kernel *kernel.Kernel + // mu protects the fields below. mu sync.Mutex @@ -57,9 +60,6 @@ type Profile struct { // traceFile is the current execution trace output file. traceFile *fd.FD - - // Kernel is the kernel under profile. - Kernel *kernel.Kernel } // StartCPUProfile is an RPC stub which starts recording the CPU profile in a |