aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2008-11-25 03:05:27 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-25 11:31:12 -0500
commit6abb11aecd888d1da6276399380b7355f127c006 (patch)
treeef64f865780fa85f4ef102e6de4dd0a589302d32 /include
parentca0002a179bfa532d009a9272d619732872c49bd (diff)
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')
-rw-r--r--include/linux/sched.h4
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 {
1168 * This field actually belongs to the ptracer task. 1168 * This field actually belongs to the ptracer task.
1169 */ 1169 */
1170 struct bts_tracer *bts; 1170 struct bts_tracer *bts;
1171 /*
1172 * The buffer to hold the BTS data.
1173 */
1174 void *bts_buffer;
1171#endif /* CONFIG_X86_PTRACE_BTS */ 1175#endif /* CONFIG_X86_PTRACE_BTS */
1172 1176
1173 /* PID/PID hash table linkage. */ 1177 /* PID/PID hash table linkage. */