diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2008-11-25 09:05:27 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-25 17:31:12 +0100 |
commit | 6abb11aecd888d1da6276399380b7355f127c006 (patch) | |
tree | ef64f865780fa85f4ef102e6de4dd0a589302d32 /include/linux/sched.h | |
parent | ca0002a179bfa532d009a9272d619732872c49bd (diff) | |
download | blackbird-op-linux-6abb11aecd888d1da6276399380b7355f127c006.tar.gz blackbird-op-linux-6abb11aecd888d1da6276399380b7355f127c006.zip |
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>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index a9780eaa6737..d02a0ca70ee9 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1168,6 +1168,10 @@ struct task_struct { * This field actually belongs to the ptracer task. */ struct bts_tracer *bts; + /* + * The buffer to hold the BTS data. + */ + void *bts_buffer; #endif /* CONFIG_X86_PTRACE_BTS */ /* PID/PID hash table linkage. */ |