gem5  v20.1.0.0
Functions
hostinfo.hh File Reference
#include <string>
#include "base/types.hh"

Go to the source code of this file.

Functions

std::string __get_hostname ()
 
std::string & hostname ()
 
uint64_t procInfo (const char *filename, const char *target)
 
uint64_t memUsage ()
 Determine the simulator process' total virtual memory usage. More...
 

Function Documentation

◆ __get_hostname()

std::string __get_hostname ( )

Definition at line 55 of file hostinfo.cc.

References warn.

Referenced by hostname().

◆ hostname()

std::string& hostname ( )

Definition at line 351 of file syscall_emul.cc.

References __get_hostname().

Referenced by gethostnameFunc().

◆ memUsage()

uint64_t memUsage ( )

Determine the simulator process' total virtual memory usage.

Returns
virtual memory usage in kilobytes

Definition at line 99 of file hostinfo.cc.

References procInfo().

Referenced by Stats::Global::Global().

◆ procInfo()

uint64_t procInfo ( const char *  filename,
const char *  target 
)

Definition at line 71 of file hostinfo.cc.

References ArmISA::format, ArmISA::fp, startswith(), and usage().

Referenced by memUsage().


Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17