frysk.isa.syscalls
Class LinuxIA32SyscallTable

java.lang.Object
  extended by frysk.isa.syscalls.SyscallTable
      extended by frysk.isa.syscalls.LinuxIA32SyscallTable

 class LinuxIA32SyscallTable
extends SyscallTable


Nested Class Summary
private static class LinuxIA32SyscallTable.Ia32Syscall
           
private static class LinuxIA32SyscallTable.IpcSubSyscall
           
private static class LinuxIA32SyscallTable.SocketSubSyscall
           
 
Field Summary
private static int IPC_NUM
           
private static Syscall[] ipcSubcallList
          FIXME: No argument list here.
private static int SOCKET_NUM
           
private static Syscall[] socketSubcallList
           
private static Syscall[] syscallList
           
private static LinuxIA32SyscallTable.IpcSubSyscall unknownIpcSubSyscall
           
private static LinuxIA32SyscallTable.SocketSubSyscall unknownSocketSubSyscall
           
 
Constructor Summary
LinuxIA32SyscallTable()
           
 
Method Summary
 long getNumSyscalls()
          Return the number of syscalls.
 Syscall getSyscall(long num)
          Return the NUM'th system call; implemented using findSyscall.
 Syscall getSyscall(String name)
           
 Syscall getSyscall(Task task)
          Assuming that TASK is at a system-call entry, return the system call.
private  long subcall(Task task)
           
 
Methods inherited from class frysk.isa.syscalls.SyscallTable
findSubcall, findSyscall, iterateSyscallByName, unknownSyscall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOCKET_NUM

private static final int SOCKET_NUM
See Also:
Constant Field Values

IPC_NUM

private static final int IPC_NUM
See Also:
Constant Field Values

syscallList

private static Syscall[] syscallList

socketSubcallList

private static Syscall[] socketSubcallList

unknownSocketSubSyscall

private static final LinuxIA32SyscallTable.SocketSubSyscall unknownSocketSubSyscall

ipcSubcallList

private static Syscall[] ipcSubcallList
FIXME: No argument list here.


unknownIpcSubSyscall

private static final LinuxIA32SyscallTable.IpcSubSyscall unknownIpcSubSyscall
Constructor Detail

LinuxIA32SyscallTable

LinuxIA32SyscallTable()
Method Detail

subcall

private long subcall(Task task)

getSyscall

public Syscall getSyscall(Task task)
Description copied from class: SyscallTable
Assuming that TASK is at a system-call entry, return the system call.

Specified by:
getSyscall in class SyscallTable
Parameters:
task - the task that system call occurred
Returns:
the Syscall object

getSyscall

public Syscall getSyscall(String name)
Specified by:
getSyscall in class SyscallTable
Returns:
Syscall return system call object if the name could be found in syscallList, otherwise return null.

getSyscall

public Syscall getSyscall(long num)
Description copied from class: SyscallTable
Return the NUM'th system call; implemented using findSyscall.

Specified by:
getSyscall in class SyscallTable

getNumSyscalls

public long getNumSyscalls()
Description copied from class: SyscallTable
Return the number of syscalls.

Specified by:
getNumSyscalls in class SyscallTable