Merge pull request #398 from liubin/wip/add-pprof-interface

runtime: add pprof interface for shim
This commit is contained in:
Peng Tao
2020-07-13 11:03:07 +08:00
committed by GitHub
18 changed files with 336 additions and 21 deletions

View File

@@ -221,6 +221,9 @@ const (
// SandboxCgroupOnly is a sandbox annotation that determines if kata processes are managed only in sandbox cgroup.
SandboxCgroupOnly = kataAnnotRuntimePrefix + "sandbox_cgroup_only"
// EnablePprof is a sandbox annotation that determines if pprof enabled.
EnablePprof = kataAnnotRuntimePrefix + "enable_pprof"
// Experimental is a sandbox annotation that determines if experimental features enabled.
Experimental = kataAnnotRuntimePrefix + "experimental"

View File

@@ -121,6 +121,9 @@ type RuntimeConfig struct {
//Experimental features enabled
Experimental []exp.Feature
// Determines if enable pprof
EnablePprof bool
}
// AddKernelParam allows the addition of new kernel parameters to an existing