MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / serialize

Method serialize

src/processinfo.cpp:694–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692}
693
694void
695ProcessInfo::serialize(jalib::JBinarySerializer &o)
696{
697 JSERIALIZE_ASSERT_POINT("ProcessInfo:");
698 savedBrk = (uint64_t) sbrk(0);
699
700 o & elfType;
701 o & isRootOfProcessTree & pid & sid & ppid & gid & fgid & _generation;
702 o & procname & procSelfExe & _hostname & _launchCWD & _ckptCWD;
703 o & upid & uppid;
704 o & clock_gettime_offset & getcpu_offset
705 & gettimeofday_offset & time_offset;
706 o & compGroup & numPeers;
707 o & restoreBuf.startAddr & _savedHeapStart & savedBrk;
708 o & vdso & vvar & vvarVClock;
709 o & endOfStack;
710 o & _ckptDir & _ckptFileName & _ckptFilesSubDir;
711 o & kvmap;
712
713 JTRACE("Serialized process information")
714 (sid) (ppid) (gid) (fgid) (isRootOfProcessTree)
715 (procname) (_hostname) (_launchCWD) (_ckptCWD) (upid) (uppid)
716 (compGroup) (numPeers) (elfType);
717
718 if (isRootOfProcessTree) {
719 JTRACE("This process is Root of Process Tree");
720 }
721
722 JSERIALIZE_ASSERT_POINT("EOF");
723}
724}

Callers 1

processInfo_EventHookFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected