54 references to procfs
System.Diagnostics.Process (54)
src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (4)
210
Interop.Error error = Interop.
procfs
.GetFileSystemTypeForRealPath(SysFsCgroupFileSystemPath, out string format);
302
return TryFindHierarchyMount(cgroupVersion, Interop.
procfs
.ProcMountInfoFilePath, subsystem, out root, out path);
323
if (Interop.
procfs
.TryParseMountInfoLine(line, out Interop.
procfs
.ParsedMount mount))
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.FormatInfo.cs (1)
38
Error error =
procfs
.GetFileSystemTypeForRealPath(path, out format);
System\Diagnostics\Process.Linux.cs (11)
103
Interop.
procfs
.ParsedStat stat = GetStat();
129
if (!ProcessManager.TryGetProcPid(_processId, out Interop.
procfs
.ProcPid procPid))
133
string path = Interop.
procfs
.GetFileDescriptorDirectoryPathForProcess(procPid);
225
internal static string? GetExePath(Interop.
procfs
.ProcPid procPid)
227
return procPid == Interop.
procfs
.ProcPid.Self ? Environment.ProcessPath :
228
Interop.Sys.ReadLink(Interop.
procfs
.GetExeFilePathForProcess(procPid));
234
internal static string GetUntruncatedProcessName(Interop.
procfs
.ProcPid procPid, ref Interop.
procfs
.ParsedStat stat)
236
string cmdLineFilePath = Interop.
procfs
.GetCmdLinePathForProcess(procPid);
333
private Interop.
procfs
.ParsedStat GetStat()
336
Interop.
procfs
.ParsedStat stat;
System\Diagnostics\ProcessManager.Linux.cs (32)
38
if (TryGetProcPid(processId, out Interop.
procfs
.ProcPid procPid) &&
39
Interop.
procfs
.TryReadStatFile(procPid, out Interop.
procfs
.ParsedStat stat))
53
if (TryGetProcPid(processId, out Interop.
procfs
.ProcPid procPid))
55
modules = Interop.
procfs
.ParseMapsModules(procPid);
84
if (!TryGetProcPid(pid, out Interop.
procfs
.ProcPid procPid) ||
85
!Interop.
procfs
.TryReadStatFile(procPid, out Interop.
procfs
.ParsedStat stat))
100
Interop.
procfs
.TryReadStatusFile(procPid, out Interop.
procfs
.ParsedStatus status);
107
internal static ProcessInfo CreateProcessInfo(Interop.
procfs
.ProcPid procPid, ref Interop.
procfs
.ParsedStat procFsStat, ref Interop.
procfs
.ParsedStatus procFsStatus, string? processName = null)
131
string tasksDir = Interop.
procfs
.GetTaskDirectoryPathForProcess(procPid);
139
Interop.
procfs
.ParsedStat stat;
141
Interop.
procfs
.TryReadStatFile(procPid, tid, out stat))
177
foreach (string procDir in Directory.EnumerateDirectories(Interop.
procfs
.RootPath))
232
internal static bool TryReadStatFile(int pid, out Interop.
procfs
.ParsedStat stat)
234
if (!TryGetProcPid(pid, out Interop.
procfs
.ProcPid procPid))
239
return Interop.
procfs
.TryReadStatFile(procPid, out stat);
242
internal static bool TryReadStatusFile(int pid, out Interop.
procfs
.ParsedStatus status)
244
if (!TryGetProcPid(pid, out Interop.
procfs
.ProcPid procPid))
249
return Interop.
procfs
.TryReadStatusFile(procPid, out status);
252
internal static bool TryReadStatFile(int pid, int tid, out Interop.
procfs
.ParsedStat stat)
254
if (!TryGetProcPid(pid, out Interop.
procfs
.ProcPid procPid))
259
return Interop.
procfs
.TryReadStatFile(procPid, tid, out stat);
262
internal static bool TryGetProcPid(int pid, out Interop.
procfs
.ProcPid procPid)
267
procPid = Interop.
procfs
.ProcPid.Self;
273
procPid = (Interop.
procfs
.ProcPid)pid;
278
procPid = Interop.
procfs
.ProcPid.Invalid;
291
if (Interop.Sys.ReadLink($"{Interop.
procfs
.RootPath}{Interop.
procfs
.Self}") is string target &&
System\Diagnostics\ProcessThread.Linux.cs (6)
23
Interop.
procfs
.ParsedStat stat = GetStat();
43
Interop.
procfs
.ParsedStat stat = GetStat();
62
Interop.
procfs
.ParsedStat stat = GetStat();
78
Interop.
procfs
.ParsedStat stat = GetStat();
83
private Interop.
procfs
.ParsedStat GetStat()
85
Interop.
procfs
.ParsedStat stat;