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] |
If syscall number is saved in updateSyscallEnter() in SyscallObserver,
all the classes that implement updateSyscallEnter() should be aware of
this details, and save the syscall number by themselves. It is not
good, since every time, when we implement updateSyscallEnter(), we
should save the syscall number by ourselves.(Correct me if I am wrong)
public long returnCode (Task task) { return getSyscall(task).getReturnCode(task); }
So unless we re-architect how syscallEventInfo works a little bit, then right now caching there is the only way I can see.IMO, SyscallEventInfo is the good place to cache system call number, and provides a method number(Task task, Boolean enterSyscall), which return the system call number and cache it when enterSyscall is true, while return the cached syscall number when enterSyscall is false. The current number(Task) return system call number *always* from a certain register.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |