56 references to procfs
System.Diagnostics.Process (56)
src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (4)
210Interop.Error error = Interop.procfs.GetFileSystemTypeForRealPath(SysFsCgroupFileSystemPath, out string format); 302return TryFindHierarchyMount(cgroupVersion, Interop.procfs.ProcMountInfoFilePath, subsystem, out root, out path); 323if (Interop.procfs.TryParseMountInfoLine(line, out Interop.procfs.ParsedMount mount))
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.FormatInfo.cs (1)
48Error error = procfs.GetFileSystemTypeForRealPath(path, out format);
System\Diagnostics\Process.Linux.cs (16)
34if (ProcessManager.TryGetProcPid(pid, out Interop.procfs.ProcPid procPid) && 35Interop.procfs.TryReadStatFile(procPid, out Interop.procfs.ParsedStat parsedStat)) 39Interop.procfs.TryReadStatusFile(procPid, out Interop.procfs.ParsedStatus parsedStatus)) 137Interop.procfs.ParsedStat stat = GetStat(); 163if (!ProcessManager.TryGetProcPid(_processId, out Interop.procfs.ProcPid procPid)) 167string path = Interop.procfs.GetFileDescriptorDirectoryPathForProcess(procPid); 259internal static string? GetExePath(Interop.procfs.ProcPid procPid) 261return procPid == Interop.procfs.ProcPid.Self ? Environment.ProcessPath : 262Interop.Sys.ReadLink(Interop.procfs.GetExeFilePathForProcess(procPid)); 268internal static string GetUntruncatedProcessName(Interop.procfs.ProcPid procPid, ref Interop.procfs.ParsedStat stat) 270string cmdLineFilePath = Interop.procfs.GetCmdLinePathForProcess(procPid); 367private Interop.procfs.ParsedStat GetStat() 370Interop.procfs.ParsedStat stat;
System\Diagnostics\ProcessManager.Linux.cs (29)
47if (TryGetProcPid(processId, out Interop.procfs.ProcPid procPid)) 49modules = Interop.procfs.ParseMapsModules(procPid); 78if (TryGetProcPid(pid, out Interop.procfs.ProcPid procPid) && 79Interop.procfs.TryReadStatFile(procPid, out Interop.procfs.ParsedStat stat)) 81Interop.procfs.TryReadStatusFile(procPid, out Interop.procfs.ParsedStatus status); 90internal static ProcessInfo CreateProcessInfo(Interop.procfs.ProcPid procPid, ref Interop.procfs.ParsedStat procFsStat, ref Interop.procfs.ParsedStatus procFsStatus, string? processName = null) 114string tasksDir = Interop.procfs.GetTaskDirectoryPathForProcess(procPid); 122Interop.procfs.ParsedStat stat; 124Interop.procfs.TryReadStatFile(procPid, tid, out stat)) 160foreach (string procDir in Directory.EnumerateDirectories(Interop.procfs.RootPath)) 215internal static bool TryReadStatFile(int pid, out Interop.procfs.ParsedStat stat) 217if (!TryGetProcPid(pid, out Interop.procfs.ProcPid procPid)) 222return Interop.procfs.TryReadStatFile(procPid, out stat); 225internal static bool TryReadStatusFile(int pid, out Interop.procfs.ParsedStatus status) 227if (!TryGetProcPid(pid, out Interop.procfs.ProcPid procPid)) 232return Interop.procfs.TryReadStatusFile(procPid, out status); 235internal static bool TryReadStatFile(int pid, int tid, out Interop.procfs.ParsedStat stat) 237if (!TryGetProcPid(pid, out Interop.procfs.ProcPid procPid)) 242return Interop.procfs.TryReadStatFile(procPid, tid, out stat); 245internal static bool TryGetProcPid(int pid, out Interop.procfs.ProcPid procPid) 250procPid = Interop.procfs.ProcPid.Self; 256procPid = (Interop.procfs.ProcPid)pid; 261procPid = Interop.procfs.ProcPid.Invalid; 278if (Interop.Sys.ReadLink($"{Interop.procfs.RootPath}{Interop.procfs.Self}") is string target &&
System\Diagnostics\ProcessThread.Linux.cs (6)
23Interop.procfs.ParsedStat stat = GetStat(); 43Interop.procfs.ParsedStat stat = GetStat(); 62Interop.procfs.ParsedStat stat = GetStat(); 78Interop.procfs.ParsedStat stat = GetStat(); 83private Interop.procfs.ParsedStat GetStat() 85Interop.procfs.ParsedStat stat;