#include "libgen.h"
#include "sys/times.h"
#include "unistd.h"
#include <cstdio>
#include <errno.h>
#include <fcntl.h>
#include <iostream>
#include <sstream>
#include <string>
#include <sys/signal.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/procfs.h>
#include <sys/resource.h>
#include <sys/time.h>
#include "GaudiKernel/ModuleInfo.h"
#include "GaudiKernel/System.h"
#include "ProcessDescriptor.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 311 of file ProcessDescriptor.cpp.
  319   ost << 
"/proc/" << pid << 
"/stat";
 
  321   if ( ( 
fd = open( fname.
c_str(), O_RDONLY ) ) < 0 ) {
 
  326   lseek( 
fd, 0, SEEK_SET );
 
  327   if ( ( cnt = 
read( 
fd, buf, 
sizeof( buf ) - 1 ) ) < 0 ) {
 
  339             "%d %s %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",