All, Regarding the mail I sent as below, I forgot telling the location of the code segments I'm asking about. They appear in the later part of the function "bool OutOfOrderCore::runcycle()" Thanks.
---------- Forwarded message ---------- From: Sungchan Kim <[email protected]> Date: 2010/8/23 Subject: Where can I hook hard disk I/O in PTLSIM? To: [email protected] All, I'm trying to find an entry point of hard disk I/O in PTLSIM source tree. Even though I haven't looked at the entire source codes fully, I found that the following parts are visited when I do a file I/O. (in $MARSS/ptlsim/core/ooocore.cpp) .... case COMMIT_RESULT_EXCEPTION: { if (logable(3) && thread->current_basic_block && thread->current_basic_block->rip) { ptl_logfile << " [vcpu ", thread->ctx.cpu_index, "] in exception handling at rip ", thread->current_basic_block->rip, endl, flush; } exiting = !thread->handle_exception(); break; } .... Then, my question is whether all accesses to hard disk go through the above code segments. If not, can any one explain about the entry points for hooking hard disk accesses? Thanks.
_______________________________________________ http://www.marss86.org Marss86-Devel mailing list [email protected] https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
