aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2008-11-23 12:43:39 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-23 16:34:02 -0500
commit65afa5e603d507014580ead016ec887b49e1afa6 (patch)
tree0ee309e4193e90587b2febda09143891e0591cdc /kernel/fork.c
parenteae849ca034c7f1015f0a6f17421ebc737f0a069 (diff)
tracing/function-return-tracer: free the return stack on free_task()
Impact: avoid losing some traces when a task is freed do_exit() is not the last function called when a task finishes. There are still some functions which are to be called such as ree_task(). So we delay the freeing of the return stack to the last moment. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index fbf4a4c0a628..d6e1a3205f62 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -140,6 +140,7 @@ void free_task(struct task_struct *tsk)
140 prop_local_destroy_single(&tsk->dirties); 140 prop_local_destroy_single(&tsk->dirties);
141 free_thread_info(tsk->stack); 141 free_thread_info(tsk->stack);
142 rt_mutex_debug_task_free(tsk); 142 rt_mutex_debug_task_free(tsk);
143 ftrace_retfunc_exit_task(tsk);
143 free_task_struct(tsk); 144 free_task_struct(tsk);
144} 145}
145EXPORT_SYMBOL(free_task); 146EXPORT_SYMBOL(free_task);