1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
5 * wrapper around get_pfnblock_flags_mask. Using KALLSYMS to get its address
6 * when available, else we need to have a kernel that exports this function to
9 * Copyright (C) 2015 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 #ifndef _LTTNG_WRAPPER_PAGE_ALLOC_H
13 #define _LTTNG_WRAPPER_PAGE_ALLOC_H
15 #include <linux/mm_types.h>
18 * We need to redefine get_pfnblock_flags_mask to our wrapper, because
19 * the get_pageblock_migratetype() macro uses it.
21 #ifdef CONFIG_KALLSYMS
23 #define get_pfnblock_flags_mask wrapper_get_pfnblock_flags_mask
25 int wrapper_get_pfnblock_flags_mask_init(void);
30 int wrapper_get_pfnblock_flags_mask_init(void)
37 #endif /* _LTTNG_WRAPPER_PAGE_ALLOC_H */
This page took 0.032674 seconds and 4 git commands to generate.