]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86, bts: base in-kernel ds interface on handles
authorMarkus Metzger <markus.t.metzger@intel.com>
Tue, 25 Nov 2008 08:01:25 +0000 (09:01 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 25 Nov 2008 16:31:11 +0000 (17:31 +0100)
commitca0002a179bfa532d009a9272d619732872c49bd
tree9a9ca02164dfb2c13afaa38ab67f3f15d8dd5ce8
parent7d55718b0c19ba611241c330f688ee824e9bab79
x86, bts: base in-kernel ds interface on handles

Impact: generalize the DS code to shared buffers

Change the in-kernel ds.h interface to identify the tracer via a
handle returned on ds_request_~().

Tracers used to be identified via their task_struct.

The changes are required to allow DS to be shared between different
tasks, which is needed for perfmon2 and for ftrace.

For ptrace, the handle is stored in the traced task's task_struct.
This should probably go into a (arch-specific) ptrace context some
time.

Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/ds.h
arch/x86/kernel/ds.c
arch/x86/kernel/ptrace.c
include/linux/sched.h