This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: System call number cached with help from SyscallObserver


On Tue, Sep 19, 2006 at 04:44:10PM -0500, Phil Muldoon wrote:

Here is my patch to cache system call number.

In this patch, 
1) add a new member syscallNumber in SyscallEventInfo to
cache the system call number.
2) add a new method getSyscall(Task task, boolean enterSyscall) to
differentiate it is called by updateSyscallEnter or updateSyscallExit.

2006-09-20  Yao Qi  <qiyaoltc@cn.ibm.com>
 
        * SyscallEventInfo.java (getSyscall): New abstract method.
        (number): New method.
     
        * LinuxEMT64.java (getSyscall): Implement this method.
        * LinuxIa32.java: Likewise.
        * LinuxPPC.java: Likewise.
        * LinuxPPC64.java: Likewise.
     
        * TestTaskSyscallObserver.java: Test system call number could
        be cached or not. 

Test this patch on x86/x86_64/ppc64, and this patch could also fix bug
#3010.
 
-- 
Yao Qi

Attachment: SyscallCache.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]