All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Enhance and speed up syscall tracing
@ 2012-03-26 18:39 Vaibhav Nagarnaik
  2012-03-26 18:39 ` [PATCH 1/6] trace: syscalls.h - cleanup and simplify SYSCALL_METADATA() Vaibhav Nagarnaik
                   ` (5 more replies)
  0 siblings, 6 replies; 29+ messages in thread
From: Vaibhav Nagarnaik @ 2012-03-26 18:39 UTC (permalink / raw)
  To: Steven Rostedt, Frederic Weisbecker, Thomas Gleixner, Ingo Molnar
  Cc: David Sharp, Justin Teravest, Laurent Chavey, x86, linux-kernel,
	Vaibhav Nagarnaik

Tracing syscalls in the kernel adds its own complexity. This patchset
attempts to simplify the code for syscall tracing and speed it up.

It also adds tracing for ia32 compat syscalls.


These patches simplify the syscall tracing macros:
* trace: syscalls.h - cleanup and simplify SYSCALL_METADATA()
* trace: Refactor ftrace syscall macros to make them more readable


These patches add tracing support for compat syscalls:
* trace: add support for 32 bit compat syscalls on x86_64
* trace: raw_syscalls: Mark compat syscalls in the MSB of the syscall
number


This patch reduces syscall tracing latency.
* trace: trace syscall in its handler not from ptrace handler

It changes the way syscall tracing is plumbed. The syscalls tracepoint
was earlier called from ptrace handler which added latency to the
syscall tracing code path because of manipulation required to the stack.
It can be similarly handled by having a little indirection function as
the syscall handler and calling the tracepoints just before the actual
syscall handler.

It decreases latency for all syscall tracepoints.


David Sharp (1):
  trace: raw_syscalls: Mark compat syscalls in the MSB of the syscall
    number

Michael Davidson (3):
  trace: syscalls.h - cleanup and simplify SYSCALL_METADATA()
  trace: add support for 32 bit compat syscalls on x86_64
  trace: get rid of the enabled_*_syscalls bitmaps

Vaibhav Nagarnaik (2):
  trace: Refactor ftrace syscall macros to make them more readable
  trace: trace syscall in its handler not from ptrace handler

 arch/openrisc/include/asm/thread_info.h |    1 -
 arch/powerpc/Kconfig                    |    1 -
 arch/powerpc/include/asm/thread_info.h  |    4 +-
 arch/powerpc/kernel/ptrace.c            |    6 -
 arch/s390/Kconfig                       |    1 -
 arch/s390/include/asm/thread_info.h     |    2 -
 arch/s390/kernel/entry.S                |    3 +-
 arch/s390/kernel/entry64.S              |    3 +-
 arch/s390/kernel/ptrace.c               |    9 -
 arch/sh/Kconfig                         |    1 -
 arch/sh/include/asm/thread_info.h       |    8 +-
 arch/sh/kernel/ptrace_32.c              |    9 -
 arch/sh/kernel/ptrace_64.c              |    9 -
 arch/sparc/Kconfig                      |    1 -
 arch/sparc/include/asm/thread_info_64.h |    2 -
 arch/sparc/kernel/ptrace_64.c           |    9 -
 arch/sparc/kernel/syscalls.S            |   10 +-
 arch/x86/Kconfig                        |    1 -
 arch/x86/ia32/Makefile                  |    2 +
 arch/x86/ia32/ia32_syscall_metadata.c   |  443 +++++++++++++++++++++++++++++++
 arch/x86/include/asm/thread_info.h      |   10 +-
 arch/x86/kernel/ptrace.c                |    9 -
 fs/dcookies.c                           |    2 +-
 fs/open.c                               |    2 +-
 fs/read_write.c                         |    8 +-
 fs/sync.c                               |    8 +-
 include/linux/syscalls.h                |  153 +++++++----
 include/trace/events/syscalls.h         |   38 ++--
 include/trace/syscall.h                 |   18 ++-
 kernel/trace/Kconfig                    |   12 +-
 kernel/trace/trace_syscalls.c           |  153 +++++------
 kernel/tracepoint.c                     |   38 ---
 mm/fadvise.c                            |    5 +-
 mm/filemap.c                            |    2 +-
 34 files changed, 681 insertions(+), 302 deletions(-)
 create mode 100644 arch/x86/ia32/ia32_syscall_metadata.c

-- 
1.7.7.3


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

end of thread, other threads:[~2012-03-30 12:07 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-26 18:39 [PATCH 0/6] Enhance and speed up syscall tracing Vaibhav Nagarnaik
2012-03-26 18:39 ` [PATCH 1/6] trace: syscalls.h - cleanup and simplify SYSCALL_METADATA() Vaibhav Nagarnaik
2012-03-26 18:39 ` [PATCH 2/6] trace: add support for 32 bit compat syscalls on x86_64 Vaibhav Nagarnaik
2012-03-27  4:49   ` H. Peter Anvin
2012-03-28 21:10     ` Vaibhav Nagarnaik
2012-03-28 21:11       ` Vaibhav Nagarnaik
2012-03-28 23:00         ` Vaibhav Nagarnaik
2012-03-26 18:39 ` [PATCH 3/6] trace: Refactor ftrace syscall macros to make them more readable Vaibhav Nagarnaik
2012-03-26 18:39 ` [PATCH 4/6] trace: trace syscall in its handler not from ptrace handler Vaibhav Nagarnaik
2012-03-27  5:00   ` H. Peter Anvin
2012-03-28 18:23     ` Vaibhav Nagarnaik
2012-03-29  2:43       ` H. Peter Anvin
2012-03-29  2:59         ` Steven Rostedt
2012-03-29  3:15           ` H. Peter Anvin
2012-03-29  3:02         ` Vaibhav Nagarnaik
2012-03-29  3:16           ` H. Peter Anvin
2012-03-29  6:20           ` Ingo Molnar
2012-03-29 19:02             ` Vaibhav Nagarnaik
2012-03-29 19:12               ` H. Peter Anvin
2012-03-29 19:43                 ` Vaibhav Nagarnaik
2012-03-29 20:06                   ` H. Peter Anvin
2012-03-29 22:40                     ` David Sharp
2012-03-29 22:44                       ` H. Peter Anvin
2012-03-30 12:06                       ` Frederic Weisbecker
2012-03-30 11:57                     ` Frederic Weisbecker
2012-03-29 22:44                 ` David Sharp
2012-03-29 22:48                   ` H. Peter Anvin
2012-03-26 18:39 ` [PATCH 5/6] trace: raw_syscalls: Mark compat syscalls in the MSB of the syscall number Vaibhav Nagarnaik
2012-03-26 18:39 ` [PATCH 6/6] trace: get rid of the enabled_*_syscalls bitmaps Vaibhav Nagarnaik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.