Commit | Line | Data |
---|---|---|
8e4e8641 | 1 | /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) |
9f36eaed | 2 | * |
8e4e8641 | 3 | * wrapper/objtool.h |
63155590 MD |
4 | * |
5 | * Copyright (C) 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
63155590 MD |
6 | */ |
7 | ||
8e4e8641 MJ |
8 | #ifndef _LTTNG_WRAPPER_OBJTOOL_H |
9 | #define _LTTNG_WRAPPER_OBJTOOL_H | |
9f36eaed | 10 | |
63155590 MD |
11 | #include <linux/version.h> |
12 | ||
8e4e8641 MJ |
13 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,10,0)) |
14 | #include <linux/objtool.h> | |
15 | #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) | |
63155590 | 16 | #include <linux/frame.h> |
8e4e8641 MJ |
17 | #endif |
18 | ||
19 | ||
20 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) | |
63155590 MD |
21 | |
22 | #define LTTNG_STACK_FRAME_NON_STANDARD(func) \ | |
23 | STACK_FRAME_NON_STANDARD(func) | |
24 | ||
25 | #else | |
26 | ||
27 | #define LTTNG_STACK_FRAME_NON_STANDARD(func) | |
28 | ||
29 | #endif | |
30 | ||
8e4e8641 | 31 | #endif /* _LTTNG_WRAPPER_OBJTOOL_H */ |