blob: a449f15be8902b52367cc547ea12ee0d3913e9f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_UNWIND_USER_TYPES_H
#define _LINUX_UNWIND_USER_TYPES_H
#include <linux/types.h>
/*
* Unwind types, listed in priority order: lower numbers are attempted first if
* available.
*/
enum unwind_user_type_bits {
UNWIND_USER_TYPE_FP_BIT = 0,
NR_UNWIND_USER_TYPE_BITS,
};
enum unwind_user_type {
/* Type "none" for the start of stack walk iteration. */
UNWIND_USER_TYPE_NONE = 0,
UNWIND_USER_TYPE_FP = BIT(UNWIND_USER_TYPE_FP_BIT),
};
struct unwind_stacktrace {
unsigned int nr;
unsigned long *entries;
};
struct unwind_user_frame {
s32 cfa_off;
s32 ra_off;
s32 fp_off;
bool use_fp;
};
struct unwind_user_state {
unsigned long ip;
unsigned long sp;
unsigned long fp;
enum unwind_user_type current_type;
unsigned int available_types;
bool done;
};
#endif /* _LINUX_UNWIND_USER_TYPES_H */
|