(rootFs string, rootPid int)
| 259 | } |
| 260 | |
| 261 | func 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 | |
| 271 | func processStatsFromProcs(rootFs string, cgroupPath string, rootPid int) (info.ProcessStats, error) { |
| 272 | var fdCount, socketCount uint64 |
no test coverage detected
searching dependent graphs…