x86, bts, ptrace: move BTS buffer allocation from ds.c into ptrace.c
authorMarkus Metzger <markus.t.metzger@intel.com>
Tue, 25 Nov 2008 08:05:27 +0000 (09:05 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 25 Nov 2008 16:31:12 +0000 (17:31 +0100)
commit6abb11aecd888d1da6276399380b7355f127c006
treeef64f865780fa85f4ef102e6de4dd0a589302d32
parentca0002a179bfa532d009a9272d619732872c49bd
x86, bts, ptrace: move BTS buffer allocation from ds.c into ptrace.c

Impact: restructure DS memory allocation to be done by the usage site of DS

Require pre-allocated buffers in ds.h.

Move the BTS buffer allocation for ptrace into ptrace.c.
The pointer to the allocated buffer is stored in the traced task's
task_struct together with the handle returned by ds_request_bts().

Removes memory accounting code.

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