public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/12] tracing: add compat syscall support v2
@ 2010-02-26 21:36 Jason Baron
  2010-02-26 21:37 ` [PATCH 01/12] x86: add NR_syscalls_compat, make ia32 syscall table visible Jason Baron
                   ` (13 more replies)
  0 siblings, 14 replies; 20+ messages in thread
From: Jason Baron @ 2010-02-26 21:36 UTC (permalink / raw)
  To: fweisbec, mingo, rostedt
  Cc: linux-kernel, laijs, lizf, hpa, tglx, mhiramat, heiko.carstens,
	benh, davem, lethal, schwidefsky, brueckner, tony.luck

Hi,

Re-post to add infrastructure for compat syscall event tracing support. This
patch series also adds x86_64 arch specific support as an example consumer
of the new infrastructure.

The new interface consists of:

1) int is_compat_task(void);
  - most arches seem to have this already
2) unsigned long arch_compat_syscall_addr(int nr);
  - returns a pointer to the compat syscall entry corresponding to syscall 'nr'
3) int NR_syscalls_compat;
  - number of entries in the compat syscall table.

Thus, arches that set CONFIG_FTRACE_SYSCALLS and CONFIG_COMPAT are going to
need to implement the above interfaces in order to build. Thus, I'm 'cc arch
maintainers.

Naming. I've also introduced a couple of new syscall macros:

ARCH_COMPAT_SYSCALL_DEFINE#N()
COMPAT_SYSCALL_DEFINE#N()

These tack on, "arch_compat_sys" and "compat_sys" respectively, to the
beginning of the compat syscall names.

thanks,

-Jason

Jason Baron (11):
  x86: add NR_syscalls_compat, make ia32 syscall table visible
  x86: add arch_compat_syscall_addr()
  tracing: remove syscall bitmaps in preparation for compat support
  tracing: add tracing support for compat syscalls
  syscalls: add ARCH_COMPAT_SYSCALL_DEFINE()
  x86, compat: convert ia32 layer to use ARCH_COMPAT_SYSCALL_DEFINE#N()
  syscalls: add new COMPAT_SYSCALL_DEFINE#N() macro
  compat: convert to use COMPAT_SYSCALL_DEFINE#N()
  compat: convert fs compat to use COMPAT_SYSCALL_DEFINE#N() macros
  tags: recognize syscalls
  cleanup: remove arg from TRACE_SYS_ENTER_PROFILE_INIT() macro

Heiko Carstens (1):
  compat: have generic is_compat_task for !CONFIG_COMPAT

 arch/s390/include/asm/compat.h  |    7 --
 arch/s390/kernel/ptrace.c       |    2 +-
 arch/s390/kernel/setup.c        |    2 +-
 arch/s390/mm/mmap.c             |    2 +-
 arch/x86/ia32/ia32entry.S       |   53 ++++++++-------
 arch/x86/ia32/sys_ia32.c        |  106 ++++++++++++++--------------
 arch/x86/include/asm/compat.h   |    2 +
 arch/x86/kernel/ftrace.c        |   11 +++
 drivers/s390/block/dasd_eckd.c  |    2 +-
 drivers/s390/block/dasd_ioctl.c |    1 +
 drivers/s390/char/fs3270.c      |    1 +
 drivers/s390/char/vmcp.c        |    1 +
 drivers/s390/cio/chsc_sch.c     |    1 +
 drivers/s390/scsi/zfcp_cfdc.c   |    1 +
 fs/compat.c                     |  147 +++++++++++++++++++--------------------
 include/linux/compat.h          |    9 +++
 include/linux/syscalls.h        |   70 ++++++++++++-------
 include/trace/syscall.h         |    8 ++
 kernel/compat.c                 |  106 ++++++++++++++---------------
 kernel/trace/trace.h            |    2 +
 kernel/trace/trace_syscalls.c   |  101 +++++++++++++++++++--------
 scripts/tags.sh                 |    8 ++-
 22 files changed, 369 insertions(+), 274 deletions(-)


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2010-03-12  3:27 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-26 21:36 [PATCH 00/12] tracing: add compat syscall support v2 Jason Baron
2010-02-26 21:37 ` [PATCH 01/12] x86: add NR_syscalls_compat, make ia32 syscall table visible Jason Baron
2010-02-26 21:37 ` [PATCH 02/12] x86: add arch_compat_syscall_addr() Jason Baron
2010-02-26 21:37 ` [PATCH 03/12] compat: have generic is_compat_task for !CONFIG_COMPAT Jason Baron
2010-02-26 21:37 ` [PATCH 04/12] tracing: remove syscall bitmaps in preparation for compat support Jason Baron
2010-02-26 21:37 ` [PATCH 05/12] tracing: add tracing support for compat syscalls Jason Baron
2010-02-26 21:37 ` [PATCH 06/12] syscalls: add ARCH_COMPAT_SYSCALL_DEFINE() Jason Baron
2010-02-26 21:37 ` [PATCH 07/12] x86, compat: convert ia32 layer to use ARCH_COMPAT_SYSCALL_DEFINE#N() Jason Baron
2010-02-26 21:37 ` [PATCH 08/12] syscalls: add new COMPAT_SYSCALL_DEFINE#N() macro Jason Baron
2010-02-28 10:09   ` Heiko Carstens
2010-03-01 21:05     ` Jason Baron
2010-03-02  6:40       ` Heiko Carstens
2010-02-26 21:37 ` [PATCH 09/12] compat: convert to use COMPAT_SYSCALL_DEFINE#N() Jason Baron
2010-02-26 21:37 ` [PATCH 10/12] compat: convert fs compat to use COMPAT_SYSCALL_DEFINE#N() macros Jason Baron
2010-02-26 21:37 ` [PATCH 11/12] tags: recognize syscalls Jason Baron
2010-02-26 21:37 ` [PATCH 12/12] cleanup: remove arg from TRACE_SYS_ENTER_PROFILE_INIT() macro Jason Baron
2010-03-10  3:25 ` [PATCH 00/12] tracing: add compat syscall support v2 Frederic Weisbecker
2010-03-10 19:03 ` Frederic Weisbecker
2010-03-11 22:12   ` Jason Baron
2010-03-12  3:27     ` Frederic Weisbecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox