summaryrefslogtreecommitdiffstats
path: root/kernel/marker.c
diff options
context:
space:
mode:
authorFrederic Weisbecker2008-11-23 06:22:56 +0100
committerIngo Molnar2008-11-23 09:17:26 +0100
commitf201ae2356c74bcae130b2177b3dca903ea98071 (patch)
treec4b1b43fbe0a4594cb86749b2e7098fe15eb86ba /kernel/marker.c
parentMerge branches 'tracing/profiling', 'tracing/options' and 'tracing/urgent' in... (diff)
downloadkernel-qcow2-linux-f201ae2356c74bcae130b2177b3dca903ea98071.tar.gz
kernel-qcow2-linux-f201ae2356c74bcae130b2177b3dca903ea98071.tar.xz
kernel-qcow2-linux-f201ae2356c74bcae130b2177b3dca903ea98071.zip
tracing/function-return-tracer: store return stack into task_struct and allocate it dynamically
Impact: use deeper function tracing depth safely Some tests showed that function return tracing needed a more deeper depth of function calls. But it could be unsafe to store these return addresses to the stack. So these arrays will now be allocated dynamically into task_struct of current only when the tracer is activated. Typical scheme when tracer is activated: - allocate a return stack for each task in global list. - fork: allocate the return stack for the newly created task - exit: free return stack of current - idle init: same as fork I chose a default depth of 50. I don't have overruns anymore. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/marker.c')
0 files changed, 0 insertions, 0 deletions