MCPcopy
hub / github.com/google/cadvisor / processRootProcUlimits

Function processRootProcUlimits

lib/container/libcontainer/handler.go:261–269  ·  view source on GitHub ↗
(rootFs string, rootPid int)

Source from the content-addressed store, hash-verified

259}
260
261func processRootProcUlimits(rootFs string, rootPid int) []info.UlimitSpec {
262 filePath := path.Join(rootFs, "/proc", strconv.Itoa(rootPid), "limits")
263 out, err := os.ReadFile(filePath)
264 if err != nil {
265 klog.V(4).Infof("error while listing directory %q to read ulimits: %v", filePath, err)
266 return []info.UlimitSpec{}
267 }
268 return processLimitsFile(string(out))
269}
270
271func processStatsFromProcs(rootFs string, cgroupPath string, rootPid int) (info.ProcessStats, error) {
272 var fdCount, socketCount uint64

Callers 1

processStatsFromProcsFunction · 0.85

Calls 3

processLimitsFileFunction · 0.85
ReadFileMethod · 0.80
InfofMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…