#define LBUG_WITH_LOC(file, func, line) \
do { \
CEMERG("LBUG\n"); \
- CERROR("STACK: %s\n", portals_debug_dumpstack()); \
+ portals_debug_dumpstack(NULL); \
portals_debug_dumplog(); \
portals_run_lbug_upcall(file, func, line); \
set_task_state(current, TASK_UNINTERRUPTIBLE); \
#endif /* PORTALS_PROFILING */
/* debug.c */
-extern spinlock_t stack_backtrace_lock;
-
-char *portals_debug_dumpstack(void);
+void portals_debug_dumpstack(struct task_struct *tsk);
void portals_run_upcall(char **argv);
void portals_run_lbug_upcall(char * file, const char *fn, const int line);
void portals_debug_dumplog(void);
(unsigned long)(id)->li_stc.u.e3s.l3s_gen
#endif
-