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