Path: blob/master/arch/microblaze/kernel/stacktrace.c
10817 views
/*1* Stack trace support for Microblaze.2*3* Copyright (C) 2009 Michal Simek <[email protected]>4* Copyright (C) 2009 PetaLogix5*6* This file is subject to the terms and conditions of the GNU General Public7* License. See the file "COPYING" in the main directory of this archive8* for more details.9*/1011#include <linux/sched.h>12#include <linux/stacktrace.h>13#include <linux/thread_info.h>14#include <linux/ptrace.h>15#include <linux/module.h>16#include <asm/unwind.h>1718void save_stack_trace(struct stack_trace *trace)19{20/* Exclude our helper functions from the trace*/21trace->skip += 2;22microblaze_unwind(NULL, trace);23}24EXPORT_SYMBOL_GPL(save_stack_trace);2526void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)27{28microblaze_unwind(tsk, trace);29}30EXPORT_SYMBOL_GPL(save_stack_trace_tsk);313233