public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/23] tracehook
@ 2008-07-17  7:25 Roland McGrath
  2008-07-17  7:27 ` [PATCH 01/23] tracehook: add linux/tracehook.h Roland McGrath
                   ` (25 more replies)
  0 siblings, 26 replies; 44+ messages in thread
From: Roland McGrath @ 2008-07-17  7:25 UTC (permalink / raw)
  To: Andrew Morton, Linus Torvalds; +Cc: Ingo Molnar, linux-kernel

This patch series introduces the "tracehook" interface layer of inlines
in <linux/tracehook.h>.  There are more details in the log entry for
patch 01/23 and in the header file comments inside that patch.
Most of these changes move code around with little or no change,
and they should not break anything or change any behavior.

This sets a new standard for uniform arch support to enable clean
arch-independent implementations of new debugging and tracing stuff,
denoted by CONFIG_HAVE_ARCH_TRACEHOOK.  Patch 20/23 adds that symbol to
arch/Kconfig, with comments listing everything an arch has to do before
setting "select HAVE_ARCH_TRACEHOOK".  These are elaborted a bit at:
	http://sourceware.org/systemtap/wiki/utrace/arch/HowTo
The new inlines that arch code must define or call have detailed
kerneldoc comments in the generic header files that say what is required.

No arch is obligated to do any work, and no arch's build should be
broken by these changes.  There are several steps that each arch should
take so it can set HAVE_ARCH_TRACEHOOK.  Most of these are simple.
Providing this support will let new things people add for doing
debugging and tracing of user-level threads "just work" for your arch
in the future.  For an arch that does not provide HAVE_ARCH_TRACEHOOK,
some new options for such features will not be available for config.

I have done some arch work and will submit this to the arch maintainers
after the generic tracehook series settles in.  For now, that work is
available in my GIT repositories, and in patch and mbox-of-patches form
at http://people.redhat.com/roland/utrace/2.6-current/

This paves the way for my "utrace" work, to be submitted later.  But it
is not innately tied to that.  I hope that the tracehook series can go
in soon regardless of what eventually does or doesn't go on top of it.
For anyone implementing any kind of new tracing/debugging plan, or just
understanding all the context of the existing ptrace implementation,
having tracehook.h makes things much easier to find and understand.

This series must be applied after the "ptrace & wait cleanup" series,
but only because of patch conflicts.  They can be reviewed separately.

This series of patches is also available in GIT at the URL below, and in a
mail folder of patch messages (use git-am or formail -s patch -p1) at:
	http://people.redhat.com/roland/utrace/2.6-current/tracehook.mbox

The following changes since commit 666f164f4fbfa78bd00fb4b74788b42a39842c64:
  Roland McGrath (1):
        fix dangling zombie when new parent ignores children

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/frob/linux-2.6-utrace.git tracehook

Roland McGrath (23):
      tracehook: add linux/tracehook.h
      tracehook: exec
      tracehook: unexport ptrace_notify
      tracehook: exit
      tracehook: clone
      tracehook: vfork-done
      tracehook: release_task
      tracehook: tracehook_tracer_task
      tracehook: tracehook_expect_breakpoints
      tracehook: tracehook_signal_handler
      tracehook: tracehook_consider_ignored_signal
      tracehook: tracehook_consider_fatal_signal
      tracehook: syscall
      tracehook: get_signal_to_deliver
      tracehook: job control
      tracehook: death
      tracehook: force signal_pending()
      tracehook: TIF_NOTIFY_RESUME
      tracehook: asm/syscall.h
      tracehook: CONFIG_HAVE_ARCH_TRACEHOOK
      tracehook: wait_task_inactive
      task_current_syscall
      /proc/PID/syscall

 arch/Kconfig                  |   18 ++
 arch/ia64/kernel/perfmon.c    |    4 +-
 arch/x86/ia32/ia32_aout.c     |    6 -
 fs/binfmt_aout.c              |    6 -
 fs/binfmt_elf.c               |    6 -
 fs/binfmt_elf_fdpic.c         |    7 -
 fs/binfmt_flat.c              |    3 -
 fs/binfmt_som.c               |    2 -
 fs/exec.c                     |   12 +-
 fs/proc/array.c               |    9 +-
 fs/proc/base.c                |   39 +++-
 include/asm-generic/syscall.h |  141 ++++++++++
 include/linux/ptrace.h        |   72 +++++
 include/linux/sched.h         |   10 +-
 include/linux/tracehook.h     |  575 +++++++++++++++++++++++++++++++++++++++++
 kernel/exit.c                 |   53 ++---
 kernel/fork.c                 |   74 ++----
 kernel/kthread.c              |    2 +-
 kernel/ptrace.c               |    2 +-
 kernel/sched.c                |   29 ++-
 kernel/signal.c               |   99 +++++---
 lib/Makefile                  |    2 +
 lib/syscall.c                 |   75 ++++++
 mm/nommu.c                    |    4 +-
 security/selinux/hooks.c      |   22 +--
 25 files changed, 1084 insertions(+), 188 deletions(-)
 create mode 100644 include/asm-generic/syscall.h
 create mode 100644 include/linux/tracehook.h
 create mode 100644 lib/syscall.c


Thanks,
Roland

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

end of thread, other threads:[~2008-07-21 15:18 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-17  7:25 [PATCH 00/23] tracehook Roland McGrath
2008-07-17  7:27 ` [PATCH 01/23] tracehook: add linux/tracehook.h Roland McGrath
2008-07-17  8:48   ` Alexey Dobriyan
2008-07-17 11:06     ` Petr Tesarik
2008-07-17 21:50       ` Alexey Dobriyan
2008-07-17 13:34     ` Christoph Hellwig
2008-07-18 11:57       ` Petr Tesarik
2008-07-17  7:28 ` [PATCH 02/23] tracehook: exec Roland McGrath
2008-07-21  8:49   ` Christoph Hellwig
2008-07-17  7:28 ` [PATCH 03/23] tracehook: unexport ptrace_notify Roland McGrath
2008-07-17  7:28 ` [PATCH 04/23] tracehook: exit Roland McGrath
2008-07-17  7:29 ` [PATCH 05/23] tracehook: clone Roland McGrath
2008-07-17  7:29 ` [PATCH 06/23] tracehook: vfork-done Roland McGrath
2008-07-17  7:29 ` [PATCH 07/23] tracehook: release_task Roland McGrath
2008-07-17  7:29 ` [PATCH 08/23] tracehook: tracehook_tracer_task Roland McGrath
2008-07-17  7:29 ` [PATCH 09/23] tracehook: tracehook_expect_breakpoints Roland McGrath
2008-07-17  7:30 ` [PATCH 10/23] tracehook: tracehook_signal_handler Roland McGrath
2008-07-17  7:30 ` [PATCH 11/23] tracehook: tracehook_consider_ignored_signal Roland McGrath
2008-07-17  7:30 ` [PATCH 12/23] tracehook: tracehook_consider_fatal_signal Roland McGrath
2008-07-17  7:30 ` [PATCH 13/23] tracehook: syscall Roland McGrath
2008-07-17  7:30 ` [PATCH 14/23] tracehook: get_signal_to_deliver Roland McGrath
2008-07-17  7:30 ` [PATCH 15/23] tracehook: job control Roland McGrath
2008-07-17  7:30 ` [PATCH 16/23] tracehook: death Roland McGrath
2008-07-17  7:30 ` [PATCH 17/23] tracehook: force signal_pending() Roland McGrath
2008-07-17  7:31 ` [PATCH 18/23] tracehook: TIF_NOTIFY_RESUME Roland McGrath
2008-07-17  7:31 ` [PATCH 19/23] tracehook: asm/syscall.h Roland McGrath
2008-07-17  7:31 ` [PATCH 20/23] tracehook: CONFIG_HAVE_ARCH_TRACEHOOK Roland McGrath
2008-07-17  7:31 ` [PATCH 21/23] tracehook: wait_task_inactive Roland McGrath
2008-07-17  7:31 ` [PATCH 22/23] task_current_syscall Roland McGrath
2008-07-17  7:31 ` [PATCH 23/23] /proc/PID/syscall Roland McGrath
2008-07-17 22:56   ` Alexey Dobriyan
2008-07-21  8:19     ` Roland McGrath
2008-07-17  7:39 ` [PATCH 00/23] tracehook Andrew Morton
2008-07-17  8:11   ` Roland McGrath
2008-07-17  8:30     ` Andrew Morton
2008-07-17  8:37       ` Roland McGrath
2008-07-17  8:51 ` Andrew Morton
2008-07-18  8:07   ` Ingo Molnar
2008-07-21  9:59   ` Roland McGrath
2008-07-18  9:20 ` David Miller
2008-07-18 11:24   ` Andi Kleen
2008-07-18 11:32     ` David Miller
2008-07-21 10:54   ` Roland McGrath
2008-07-21 15:18     ` David Miller

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