Linux Audio

Check our new training course

Loading...
v3.5.6
 
 1/*
 2 * Copyright (C) 2009  Matt Fleming
 3 *
 4 * Based on:
 5 *	The x86 implementation - arch/x86/include/asm/stacktrace.h
 6 */
 7#ifndef _ASM_SH_STACKTRACE_H
 8#define _ASM_SH_STACKTRACE_H
 9
10/* Generic stack tracer with callbacks */
11
12struct stacktrace_ops {
13	void (*address)(void *data, unsigned long address, int reliable);
14	/* On negative return stop dumping */
15	int (*stack)(void *data, char *name);
16};
17
18void dump_trace(struct task_struct *tsk, struct pt_regs *regs,
19		unsigned long *stack,
20		const struct stacktrace_ops *ops, void *data);
21
22#endif /* _ASM_SH_STACKTRACE_H */
v6.9.4
 1/* SPDX-License-Identifier: GPL-2.0 */
 2/*
 3 * Copyright (C) 2009  Matt Fleming
 4 *
 5 * Based on:
 6 *	The x86 implementation - arch/x86/include/asm/stacktrace.h
 7 */
 8#ifndef _ASM_SH_STACKTRACE_H
 9#define _ASM_SH_STACKTRACE_H
10
11/* Generic stack tracer with callbacks */
12
13struct stacktrace_ops {
14	void (*address)(void *data, unsigned long address, int reliable);
 
 
15};
16
17void dump_trace(struct task_struct *tsk, struct pt_regs *regs,
18		unsigned long *stack,
19		const struct stacktrace_ops *ops, void *data);
20
21#endif /* _ASM_SH_STACKTRACE_H */