2f9d011d79f23ddfbaf198bd6e84e1fc04aa599f
1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
3 * src/wrapper/kprobes.h
5 * Copyright (C) 2021 Michael Jeanson <mjeanson@efficios.com>
8 #ifndef _LTTNG_WRAPPER_KPROBES_H
9 #define _LTTNG_WRAPPER_KPROBES_H
11 #include <linux/kprobes.h>
12 #include <lttng-kernel-version.h>
14 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0))
17 struct kretprobe
*lttng_get_kretprobe(struct kretprobe_instance
*ri
)
19 return get_kretprobe(ri
);
22 #else /* LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0) */
25 struct kretprobe
*lttng_get_kretprobe(struct kretprobe_instance
*ri
)
30 #endif /* LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0) */
32 #endif /* _LTTNG_WRAPPER_KPROBES_H */
This page took 0.031245 seconds and 4 git commands to generate.