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]

[patch] System call for multi-architecture


There were two threads in this maillist about this issue, and I
modified this patch for several time per Mark and Tom's comments, and
feedback from these two threads.

This patch could provide,
  1) draft system call list(for x86, x86_64, and powerpc).
  2) ftrace could work on these three platforms.

This patch could not provide, or could provide in the next step,
  1) 64-bit ftrace trace 32-bit app.
  2) accurate arguments for some system calls.

Mark, Sami,
the patch could give you syscallLists for different architecture.

2006-09-13  Yao Qi  <qiyaoltc@cn.ibm.com>

	* Isa.java (getSyscallList): New method.
	(getUnknownSyscalls): Likewise.
	(syscallByName): Likewise.

	* IsaEMT64.java: Implement them.
	* IsaIA32.java: Likewise.
	* IsaPPC.java: Likewise.
	* IsaPPC64.java: Likewise.

	* LinuxPowerPCSyscall.java: New file.
	* LinuxEMT64Syscall.java: New file.
	* LinuxIa32Syscall.java: New file.

	* LinuxIa32.java (returnCode): Removed.
	(arg): Removed.
	* LinuxEMT64.java: Likewise.
	* LinuxPPC.java: Likewise.
	* LinuxPPC64.java: Likewise.

	* Syscall.java (iterateSyscallByName): New method. 
    	
	* SyscallEventInfo.java (getSyscall): New abstract method.
	(arg): New method.
	(returnCode): Likewise.
 
	Tom Tromey  <tromey@redhat.com>

	* Syscall.java (syscallByNum): Updated javadoc.  Fixed typo.
 	Cache unknown syscalls.
	(unknownSyscalls): New field.
	(equals): New method.
	(syscallByName): Likewise.

2006-09-13  Yao Qi  <qiyaoltc@cn.ibm.com>

        * observers/SysCallUtilyInfo.java: Get Syscall object from 
        syscallEventInfo.

Apply this patch to cvs head (09/13), and tested on x86/x86_64/ppc64.
OK to commit?

-- 
Yao Qi

Attachment: Syscall.patch
Description: Text document


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