#include <cstdio>
#include <errno.h>
#include <fcntl.h>
#include <iostream>
#include <libgen.h>
#include <sstream>
#include <string>
#include <sys/signal.h>
#include <sys/syscall.h>
#include <sys/times.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/procfs.h>
#include <sys/resource.h>
#include <sys/time.h>
#include "ProcessDescriptor.h"
#include <GaudiKernel/ModuleInfo.h>
#include <GaudiKernel/System.h>
Go to the source code of this file.
|
| System |
| Note: OS specific details for environment resolution.
|
|
|
enum | System::ProcessInfoCommand {
System::ProcessBasicInformation,
System::ProcessQuotaLimits,
System::ProcessIoCounters,
System::ProcessVmCounters,
System::ProcessTimes,
System::ProcessBasePriority,
System::ProcessRaisePriority,
System::ProcessDebugPort,
System::ProcessExceptionPort,
System::ProcessAccessToken,
System::ProcessLdtInformation,
System::ProcessLdtSize,
System::ProcessDefaultHardErrorMode,
System::ProcessIoPortHandlers,
System::ProcessPooledUsageAndLimits,
System::ProcessWorkingSetWatch,
System::ProcessUserModeIOPL,
System::ProcessEnableAlignmentFaultFixup,
System::ProcessPriorityClass,
System::ProcessWx86Information,
System::ProcessHandleCount,
System::ProcessAffinityMask,
System::ProcessPriorityBoost,
System::MaxProcessInfoClass,
System::ProcessEllapsedTime
} |
|
◆ GAUDIKERNEL_PROCSTAT_CPP
#define GAUDIKERNEL_PROCSTAT_CPP |
◆ WINVER
◆ readProcStat()
void readProcStat |
( |
long |
pid, |
|
|
linux_proc & |
pinfo |
|
) |
| |
Definition at line 310 of file ProcessDescriptor.cpp.
318 ost <<
"/proc/" << pid <<
"/stat";
320 if ( (
fd = open( fname.
c_str(), O_RDONLY ) ) < 0 ) {
325 lseek(
fd, 0, SEEK_SET );
326 if ( ( cnt =
read(
fd, buf,
sizeof( buf ) - 1 ) ) < 0 ) {
339 "%d %400s %c %d %d %d %d %d %lu %lu %lu %lu %lu %lu %lu %ld %ld %ld %ld %ld %ld %llu %lu %ld %lu %lu %lu %lu "
340 "%lu %lu %lu %lu %lu %lu %lu",