summaryrefslogtreecommitdiff
path: root/kernel/kallsyms_internal.h
blob: 6a781e4cc77feb9eb5a18204536544a0a27696b4 (plain) (blame)
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
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LINUX_KALLSYMS_INTERNAL_H_
#define LINUX_KALLSYMS_INTERNAL_H_

/*
 * Provide compile-constants for scripts/kallsyms.c
 * so it can build the corresponding kallsyms_marker[] table.
 * and wrap the rest in __KERNEL__
 */
#define KALLSYMS_MARKER_SHIFT 4
#define KALLSYMS_MARKER_SIZE  (1U << KALLSYMS_MARKER_SHIFT)
#define KALLSYMS_MARKER_MASK  (KALLSYMS_MARKER_SIZE - 1U)

#ifdef __KERNEL__
#include <linux/types.h>

extern const int kallsyms_offsets[];
extern const u8 kallsyms_names[];

extern const unsigned int kallsyms_num_syms;

extern const char kallsyms_token_table[];
extern const u16 kallsyms_token_index[];

extern const unsigned int kallsyms_markers[];
extern const u8 kallsyms_seqs_of_names[];
#endif /* __KERNEL__ */

#endif // LINUX_KALLSYMS_INTERNAL_H_