linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/14] tracing: add compat syscall support v3
@ 2010-03-16 17:46 Jason Baron
  2010-03-16 17:46 ` [PATCH 01/14] x86: add NR_syscalls_compat, make ia32 syscall table visible Jason Baron
                   ` (16 more replies)
  0 siblings, 17 replies; 31+ messages in thread
From: Jason Baron @ 2010-03-16 17:46 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.

Arches can request compat syscall tracing by setting: 
__HAVE_ARCH_FTRACE_COMPAT_SYSCALLS, if CONFIG_COMPAT and CONFIG_FTRACE_SYSCALLS
are set. Arches then need to implement the following interfaces:

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.

thanks,

-Jason

Changes in v3:

 - create a separate "compat_syscalls" event subsystem
 - ARCH_COMPAT_SYSCALL_DEFINE#N() tacks "sys32" to start of syscall name
 - COMPAT_SYSCALL_DEFINE#N() tacks "compat_sys" to start of syscall name
 - both above macros create perf events as: [enter|exit]_compat_sys_blah
 - non-compat syscall naming changes to: [enter|exit]_sys_blah
 - removes any unreferenced compat syscalls from debugfs

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

Jason Baron (13):
  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: move __start_ftrace_events and __stop_ftrace_events to
    header file
  tracing: add tracing support for compat syscalls
  syscalls: add ARCH_COMPAT_SYSCALL_DEFINE()
  x86, compat: convert ia32 layer to use
  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 compat syscalls
  cleanup: remove arg from TRACE_SYS_ENTER_PROFILE_INIT() macro
  tracing: make a "compat_syscalls" tracing subsys

 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       |    3 +
 arch/x86/ia32/sys_ia32.c        |  106 ++++++++++++++--------------
 arch/x86/include/asm/compat.h   |    2 +
 arch/x86/include/asm/syscall.h  |    5 ++
 arch/x86/kernel/ftrace.c        |    8 ++
 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/ftrace_event.h    |    3 +
 include/linux/syscalls.h        |   91 +++++++++++++++++-------
 include/trace/syscall.h         |    8 ++
 kernel/compat.c                 |  106 ++++++++++++++---------------
 kernel/trace/trace.h            |    2 +
 kernel/trace/trace_events.c     |    3 -
 kernel/trace/trace_syscalls.c   |  124 +++++++++++++++++++++++++--------
 scripts/tags.sh                 |    8 ++-
 25 files changed, 392 insertions(+), 253 deletions(-)


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

end of thread, other threads:[~2010-06-17 15:39 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-16 17:46 [PATCH 00/14] tracing: add compat syscall support v3 Jason Baron
2010-03-16 17:46 ` [PATCH 01/14] x86: add NR_syscalls_compat, make ia32 syscall table visible Jason Baron
2010-03-16 17:46 ` [PATCH 02/14] x86: add arch_compat_syscall_addr() Jason Baron
2010-03-17 19:11   ` Frederic Weisbecker
2010-03-16 17:46 ` [PATCH 03/14] compat: have generic is_compat_task for !CONFIG_COMPAT Jason Baron
2010-03-16 17:46 ` [PATCH 04/14] tracing: remove syscall bitmaps in preparation for compat support Jason Baron
2010-03-16 17:46 ` [PATCH 05/14] tracing: move __start_ftrace_events and __stop_ftrace_events to header file Jason Baron
2010-03-16 17:46 ` [PATCH 06/14] tracing: add tracing support for compat syscalls Jason Baron
2010-03-20  6:12   ` Frederic Weisbecker
2010-03-22 20:21     ` Jason Baron
2010-03-27  4:40       ` Frederic Weisbecker
2010-03-16 17:46 ` [PATCH 07/14] syscalls: add ARCH_COMPAT_SYSCALL_DEFINE() Jason Baron
2010-03-18 18:29   ` [PATCH 07/14 re-post] " Jason Baron
2010-03-27  4:56     ` Frederic Weisbecker
2010-05-24  7:05   ` [PATCH 07/14] " Ian Munsie
2010-05-24 20:26     ` Jason Baron
2010-03-16 17:46 ` [PATCH 08/14] x86, compat: convert ia32 layer to use Jason Baron
2010-03-16 17:46 ` [PATCH 09/14] syscalls: add new COMPAT_SYSCALL_DEFINE#N() macro Jason Baron
2010-03-16 17:46 ` [PATCH 10/14] compat: convert to use COMPAT_SYSCALL_DEFINE#N() Jason Baron
2010-03-16 17:47 ` [PATCH 11/14] compat: convert fs compat to use COMPAT_SYSCALL_DEFINE#N() macros Jason Baron
2010-03-16 17:47 ` [PATCH 12/14] tags: recognize compat syscalls Jason Baron
2010-03-16 17:47 ` [PATCH 13/14] cleanup: remove arg from TRACE_SYS_ENTER_PROFILE_INIT() macro Jason Baron
2010-03-16 17:47 ` [PATCH 14/14] tracing: make a "compat_syscalls" tracing subsys Jason Baron
2010-03-18 18:22 ` [PATCH 15/14] compat_syscalls: introduce CONFIG_COMPAT_FTRACE_SYSCALLS Jason Baron
2010-03-27  5:00 ` [PATCH 00/14] tracing: add compat syscall support v3 Frederic Weisbecker
2010-05-21  9:40 ` Ian Munsie
2010-05-21 13:24   ` Jason Baron
2010-05-21 13:31     ` Frederic Weisbecker
2010-06-17  7:39     ` Ian Munsie
2010-06-17  7:46       ` Frederic Weisbecker
2010-06-17 15:39       ` Jason Baron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).