Steven J. Magnanimicroblaze: Add stack unwinderce3266c16 years agoHistory
31 lines · 822 B · C
RawDownload
/* * Stack trace support for Microblaze. * * Copyright (C) 2009 Michal Simek <monstr@monstr.eu> * Copyright (C) 2009 PetaLogix * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #include <linux/sched.h>#include <linux/stacktrace.h>#include <linux/thread_info.h>#include <linux/ptrace.h>#include <linux/module.h>#include <asm/unwind.h> void save_stack_trace(struct stack_trace *trace){	/* Exclude our helper functions from the trace*/	trace->skip += 2;	microblaze_unwind(NULL, trace);}EXPORT_SYMBOL_GPL(save_stack_trace); void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace){	microblaze_unwind(tsk, trace);}EXPORT_SYMBOL_GPL(save_stack_trace_tsk);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t