[Linux-ia64] show_trace_task portability

From: Vladimir Simonov <sv_at_sw.com.sg>
Date: 2003-03-21 20:36:23
Hi!
Trying to port some patches from i386 to ia64 I've found that
show_trace_task is the only portable way to show tasks' call
traces(perhaps because it is called from ./kernel/sched.c:)).
But its ia64 implementation can't work with running task.

Attached patch fixes this issue.

As I understand show_trace and show_stack are platform
dependent or have different sense/args.

Any opinion?

Best regards
Vladimir Simonov


--- linux.orig/arch/ia64/kernel/process.c	Fri Mar 21 08:32:37 2003
+++ linux/arch/ia64/kernel/process.c		Fri Mar 21 08:53:06 2003
@@ -53,10 +53,7 @@
 void
 show_trace_task (struct task_struct *task)
 {
-	struct unw_frame_info info;
-
-	unw_init_from_blocked_task(&info, task);
-	do_show_stack(&info, 0);
+	show_stack(task);
 }
 
 void
Received on Fri Mar 21 01:36:33 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:12 EST