]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/microblaze/kernel/stacktrace.c
Merge tag 'for-4.15-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[mirror_ubuntu-bionic-kernel.git] / arch / microblaze / kernel / stacktrace.c
CommitLineData
24b45a12
MS
1/*
2 * Stack trace support for Microblaze.
3 *
4 * Copyright (C) 2009 Michal Simek <monstr@monstr.eu>
5 * Copyright (C) 2009 PetaLogix
6 *
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file "COPYING" in the main directory of this archive
9 * for more details.
10 */
11
d64af918 12#include <linux/export.h>
24b45a12
MS
13#include <linux/sched.h>
14#include <linux/stacktrace.h>
15#include <linux/thread_info.h>
16#include <linux/ptrace.h>
ce3266c0 17#include <asm/unwind.h>
24b45a12 18
24b45a12
MS
19void save_stack_trace(struct stack_trace *trace)
20{
ce3266c0
SM
21 /* Exclude our helper functions from the trace*/
22 trace->skip += 2;
23 microblaze_unwind(NULL, trace);
24b45a12
MS
24}
25EXPORT_SYMBOL_GPL(save_stack_trace);
26
27void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
28{
ce3266c0 29 microblaze_unwind(tsk, trace);
24b45a12
MS
30}
31EXPORT_SYMBOL_GPL(save_stack_trace_tsk);