54 references to procfs
System.Diagnostics.Process (54)
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)
38Error error = procfs.GetFileSystemTypeForRealPath(path, out format);
System\Diagnostics\Process.Linux.cs (11)
103Interop.procfs.ParsedStat stat = GetStat(); 129if (!ProcessManager.TryGetProcPid(_processId, out Interop.procfs.ProcPid procPid)) 133string path = Interop.procfs.GetFileDescriptorDirectoryPathForProcess(procPid); 225internal static string? GetExePath(Interop.procfs.ProcPid procPid) 227return procPid == Interop.procfs.ProcPid.Self ? Environment.ProcessPath : 228Interop.Sys.ReadLink(Interop.procfs.GetExeFilePathForProcess(procPid)); 234internal static string GetUntruncatedProcessName(Interop.procfs.ProcPid procPid, ref Interop.procfs.ParsedStat stat) 236string cmdLineFilePath = Interop.procfs.GetCmdLinePathForProcess(procPid); 333private Interop.procfs.ParsedStat GetStat() 336Interop.procfs.ParsedStat stat;
System\Diagnostics\ProcessManager.Linux.cs (32)
38if (TryGetProcPid(processId, out Interop.procfs.ProcPid procPid) && 39Interop.procfs.TryReadStatFile(procPid, out Interop.procfs.ParsedStat stat)) 53if (TryGetProcPid(processId, out Interop.procfs.ProcPid procPid)) 55modules = Interop.procfs.ParseMapsModules(procPid); 84if (!TryGetProcPid(pid, out Interop.procfs.ProcPid procPid) || 85!Interop.procfs.TryReadStatFile(procPid, out Interop.procfs.ParsedStat stat)) 100Interop.procfs.TryReadStatusFile(procPid, out Interop.procfs.ParsedStatus status); 107internal static ProcessInfo CreateProcessInfo(Interop.procfs.ProcPid procPid, ref Interop.procfs.ParsedStat procFsStat, ref Interop.procfs.ParsedStatus procFsStatus, string? processName = null) 131string tasksDir = Interop.procfs.GetTaskDirectoryPathForProcess(procPid); 139Interop.procfs.ParsedStat stat; 141Interop.procfs.TryReadStatFile(procPid, tid, out stat)) 177foreach (string procDir in Directory.EnumerateDirectories(Interop.procfs.RootPath)) 232internal static bool TryReadStatFile(int pid, out Interop.procfs.ParsedStat stat) 234if (!TryGetProcPid(pid, out Interop.procfs.ProcPid procPid)) 239return Interop.procfs.TryReadStatFile(procPid, out stat); 242internal static bool TryReadStatusFile(int pid, out Interop.procfs.ParsedStatus status) 244if (!TryGetProcPid(pid, out Interop.procfs.ProcPid procPid)) 249return Interop.procfs.TryReadStatusFile(procPid, out status); 252internal static bool TryReadStatFile(int pid, int tid, out Interop.procfs.ParsedStat stat) 254if (!TryGetProcPid(pid, out Interop.procfs.ProcPid procPid)) 259return Interop.procfs.TryReadStatFile(procPid, tid, out stat); 262internal static bool TryGetProcPid(int pid, out Interop.procfs.ProcPid procPid) 267procPid = Interop.procfs.ProcPid.Self; 273procPid = (Interop.procfs.ProcPid)pid; 278procPid = Interop.procfs.ProcPid.Invalid; 291if (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;