^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright (C) 2009 Matt Fleming
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Based on:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * The x86 implementation - arch/x86/include/asm/stacktrace.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #ifndef _ASM_SH_STACKTRACE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define _ASM_SH_STACKTRACE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) /* Generic stack tracer with callbacks */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) struct stacktrace_ops {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) void (*address)(void *data, unsigned long address, int reliable);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) void dump_trace(struct task_struct *tsk, struct pt_regs *regs,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) unsigned long *stack,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) const struct stacktrace_ops *ops, void *data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #endif /* _ASM_SH_STACKTRACE_H */