On Tue, Apr 24, 2012 at 7:30 PM, <[email protected]> wrote: > This is a follow up from the read timestamp question from the PTLSim > side... > > I would also like to collect timestamps for certain events in both my user > level code and the OS (I'd like to modify the file system to print > timestamps when certain events happen). > > Is there a mechanism available for very low overhead logging in the > ptlcalls? I would basically like something like the following: > > ptlcall_log(timestamp, "message"); > > The log would then be dumped to a log file on the host. The reason I'd > like a ptlcall to do this is so I won't have any overhead for the logging > (doing it in the guest file system means that the logging would be > captured by my disk simulation). > > Currently there no such support in ptlcall interface. You can easily add that support by creating a new 'PTLCALL' type : 'PTLCALL_LOG' in ptlcalls.h file. Then in 'ptl-qemu.cpp' modify 'ptlcall_mmio_write' operation to handle 'PTLCALL_LOG' which will copy the string from VM and dump it into log file.
Check 'PTLCALL_CORE_DUMP' as an example which copies the 'core-dump' file from VM to host machine. - Avadh > Thanks, > > Jim Stevens > University of Maryland, College Park > > > _______________________________________________ > http://www.marss86.org > Marss86-Devel mailing list > [email protected] > https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel >
_______________________________________________ http://www.marss86.org Marss86-Devel mailing list [email protected] https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
