void dmtcp::ProcessInfo::serialize(jalib::JBinarySerializer& o) { JSERIALIZE_ASSERT_POINT("dmtcp::ProcessInfo:"); _savedBrk = (uint64_t) sbrk(0); o & _elfType; o & _isRootOfProcessTree & _pid & _sid & _ppid & _gid & _fgid; o & _procname & _hostname & _launchCWD & _ckptCWD & _upid & _uppid; o & _compGroup & _numPeers & _noCoordinator & _argvSize & _envSize; o & _restoreBufAddr & _savedHeapStart & _savedBrk; o & _ckptDir & _ckptFileName & _ckptFilesSubDir; JTRACE("Serialized process information") (_sid) (_ppid) (_gid) (_fgid) (_procname) (_hostname) (_launchCWD) (_ckptCWD) (_upid) (_uppid) (_compGroup) (_numPeers) (_noCoordinator) (_argvSize) (_envSize) (_elfType); JASSERT(!_noCoordinator || _numPeers == 1) (_noCoordinator) (_numPeers); if (_isRootOfProcessTree) { JTRACE("This process is Root of Process Tree"); } JTRACE("Serializing ChildPid Table") (_childTable.size()) (o.filename()); o.serializeMap(_childTable); JSERIALIZE_ASSERT_POINT("EOF"); }
void dmtcp::ProcessInfo::serialize ( jalib::JBinarySerializer& o ) { JSERIALIZE_ASSERT_POINT ( "dmtcp::ProcessInfo:" ); if (o.isWriter()){ refresh(); } o & _isRootOfProcessTree & _pid & _sid & _ppid & _gid & _fgid; o & _procname & _hostname & _upid & _uppid; o & _compGroup & _numPeers & _noCoordinator & _argvSize & _envSize; JTRACE("Serialized process information") (_sid) (_ppid) (_gid) (_fgid) (_procname) (_hostname) (_upid) (_uppid) (_compGroup) (_numPeers) (_noCoordinator) (_argvSize) (_envSize); JASSERT(!_noCoordinator || _numPeers == 1) (_noCoordinator) (_numPeers); if ( _isRootOfProcessTree ) { JTRACE ( "This process is Root of Process Tree" ); } JTRACE ("Serializing ChildPid Table") (_childTable.size()) (o.filename()); o.serializeMap(_childTable); JTRACE ("Serializing tidVector"); JSERIALIZE_ASSERT_POINT ( "TID Vector:[" ); o & _tidVector; JSERIALIZE_ASSERT_POINT ( "}" ); JSERIALIZE_ASSERT_POINT( "EOF" ); }