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

Reply via email to