mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 05:40:42 +00:00 
			
		
		
		
	Update libcontainer dependency
This commit is contained in:
		
							
								
								
									
										16
									
								
								vendor/github.com/opencontainers/runc/libcontainer/cgroups/stats.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								vendor/github.com/opencontainers/runc/libcontainer/cgroups/stats.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -11,6 +11,7 @@ type ThrottlingData struct { | ||||
| 	ThrottledTime uint64 `json:"throttled_time,omitempty"` | ||||
| } | ||||
|  | ||||
| // CpuUsage denotes the usage of a CPU. | ||||
| // All CPU stats are aggregate since container inception. | ||||
| type CpuUsage struct { | ||||
| 	// Total CPU time consumed. | ||||
| @@ -36,7 +37,9 @@ type MemoryData struct { | ||||
| 	Usage    uint64 `json:"usage,omitempty"` | ||||
| 	MaxUsage uint64 `json:"max_usage,omitempty"` | ||||
| 	Failcnt  uint64 `json:"failcnt"` | ||||
| 	Limit    uint64 `json:"limit"` | ||||
| } | ||||
|  | ||||
| type MemoryStats struct { | ||||
| 	// memory used for cache | ||||
| 	Cache uint64 `json:"cache,omitempty"` | ||||
| @@ -44,14 +47,19 @@ type MemoryStats struct { | ||||
| 	Usage MemoryData `json:"usage,omitempty"` | ||||
| 	// usage of memory + swap | ||||
| 	SwapUsage MemoryData `json:"swap_usage,omitempty"` | ||||
| 	// usafe of kernel memory | ||||
| 	KernelUsage MemoryData        `json:"kernel_usage,omitempty"` | ||||
| 	Stats       map[string]uint64 `json:"stats,omitempty"` | ||||
| 	// usage of kernel memory | ||||
| 	KernelUsage MemoryData `json:"kernel_usage,omitempty"` | ||||
| 	// usage of kernel TCP memory | ||||
| 	KernelTCPUsage MemoryData `json:"kernel_tcp_usage,omitempty"` | ||||
|  | ||||
| 	Stats map[string]uint64 `json:"stats,omitempty"` | ||||
| } | ||||
|  | ||||
| type PidsStats struct { | ||||
| 	// number of pids in the cgroup | ||||
| 	Current uint64 `json:"current,omitempty"` | ||||
| 	// active pids hard limit | ||||
| 	Limit uint64 `json:"limit,omitempty"` | ||||
| } | ||||
|  | ||||
| type BlkioStatEntry struct { | ||||
| @@ -78,7 +86,7 @@ type HugetlbStats struct { | ||||
| 	Usage uint64 `json:"usage,omitempty"` | ||||
| 	// maximum usage ever recorded. | ||||
| 	MaxUsage uint64 `json:"max_usage,omitempty"` | ||||
| 	// number of times htgetlb usage allocation failure. | ||||
| 	// number of times hugetlb usage allocation failure. | ||||
| 	Failcnt uint64 `json:"failcnt"` | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user