gvisor/runsc/sandbox
Michael Pratt bd296e799b runsc: add global profile collection flags
Add global flags -profile-{block,cpu,heap,mutex} and -trace which
enable collection of the specified profile for the entire duration of a
container execution. This provides a way to definitively start profiling
before that application starts, rather than attempting to race with an
out-of-band `runsc debug`.

Note that only the main boot process is profiled.

This exposed a bug in Task.traceExecEvent: a crash when tracing and
-race are enabled. traceExecEvent is called off of the task goroutine,
but uses the Task as a context, which is a violation of the Task
contract. Switching to the AsyncContext fixes the issue.

Fixes #220
2021-09-16 11:20:37 -04:00
..
BUILD Add Event controls 2021-08-13 14:20:12 -07:00
network.go Fix GoLand analyzer errors under runsc/... 2021-07-12 16:45:33 -07:00
network_unsafe.go [op] Replace syscall package usage with golang.org/x/sys/unix in runsc/. 2021-03-06 22:07:07 -08:00
sandbox.go runsc: add global profile collection flags 2021-09-16 11:20:37 -04:00