Commit Graph
10 Commits
Author SHA1 Message Date
Etienne PerotandgVisor bot ab715c16d0 seccheck: Initialize seccheck.Points only when needed.
This moves the initialization of `seccheck.Points` out of package-level
`init` and instead moves it to an explicit `seccheck.Initialize()` function.

On AMD64, this saves about 614KiB of heap memory that would otherwise always
be live.

PiperOrigin-RevId: 514813332
2023-03-07 12:53:27 -08:00
Adin ScannellandgVisor bot 2911d8c3b8 Add default_applicable_licenses rules to packages.
PiperOrigin-RevId: 513581243
2023-03-02 10:50:04 -08:00
Kevin KrakauerandgVisor bot 3a76efe831 convert uses of interface{} to any
Done via:
  find . -name "*.go" | xargs sed -i -E 's/interface\{\}/any/g'

PiperOrigin-RevId: 487033228
2022-11-08 13:14:06 -08:00
Fabricio VoznikaandgVisor bot c12bed5cb1 Add output to runsc trace commands
Otherwise it's hard to tell if the command succeeded or not.

Updates #4805

PiperOrigin-RevId: 467807571
2022-08-15 18:13:58 -07:00
Fabricio VoznikaandgVisor bot 0a7ec174bf Add sinks to runsc trace metadata output
Updates #4805

PiperOrigin-RevId: 465150097
2022-08-03 14:32:46 -07:00
Fabricio VoznikaandgVisor bot 10042f7421 Add async write to remote checker
When writing a trace point fails, the remote checker can retry with
configurable exponential backoff. After the number of retries is
exceeded, the point is dropped. The number of dropped events are
reported in the message header and also in `runsc trace list`
command.

Updates #4805

PiperOrigin-RevId: 456662539
2022-06-22 19:23:48 -07:00
Fabricio VoznikaandgVisor bot cdde3424c7 Allow pod init config to be used with runsc trace create
As convenience allow a pod init config file to be used to create
a trace session. It's common to want to use the same configuration
for pod init and trace create, but the config file formats are
different. This change allows both formats to be used with
`runsc trace create`.

Updates #4805

PiperOrigin-RevId: 454075022
2022-06-09 20:43:45 -07:00
Ayush RanjanandgVisor bot 2e6a3726da Add trace procfs command.
`runsc trace procfs` should dump a lot of relevant procfs information about
all the processes in the container. Falco will consume this.

For now the only procfs entry that the procfs dump returns is /proc/[pid]/exe.
Will incrementally add support for the remaining in separate changes.

Updates #4805

PiperOrigin-RevId: 449783478
2022-05-19 10:49:49 -07:00
Fabricio VoznikaandgVisor bot ba924f7bbc Add --force flag to trace create command
Updates #4805

PiperOrigin-RevId: 449759478
2022-05-19 09:15:18 -07:00
Fabricio VoznikaandgVisor bot 4b6f7dd55e Add runsc trace commands
The trace commands allows a user to manipulate trace sessions.

`runsc trace create <name> --config <file>` => creates a new trace session
`runsc trace delete <name>` => deletes an existing trace session
`runsc trace list` => lists all running trace sessions
`runsc trace metadata` => lists all point with their respective optional and
context fields

This allows trace sessions to be created/deleted on a running sandbox. Note
that the system currently only allows a single trace session to exist, named
'Default'. Attempts to manipulate other sessions will error out.

Updates #4805

PiperOrigin-RevId: 447815153
2022-05-10 13:40:39 -07:00