aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gdb/linux/constants.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gdb/linux/constants.py.in')
-rw-r--r--scripts/gdb/linux/constants.py.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/gdb/linux/constants.py.in b/scripts/gdb/linux/constants.py.in
index d3319a80788a..2efbec6b6b8d 100644
--- a/scripts/gdb/linux/constants.py.in
+++ b/scripts/gdb/linux/constants.py.in
@@ -12,9 +12,12 @@
12 * 12 *
13 */ 13 */
14 14
15#include <linux/clk-provider.h>
15#include <linux/fs.h> 16#include <linux/fs.h>
17#include <linux/hrtimer.h>
16#include <linux/mount.h> 18#include <linux/mount.h>
17#include <linux/of_fdt.h> 19#include <linux/of_fdt.h>
20#include <linux/threads.h>
18 21
19/* We need to stringify expanded macros so that they can be parsed */ 22/* We need to stringify expanded macros so that they can be parsed */
20 23
@@ -36,6 +39,10 @@
36 39
37import gdb 40import gdb
38 41
42/* linux/clk-provider.h */
43if IS_BUILTIN(CONFIG_COMMON_CLK):
44 LX_GDBPARSED(CLK_GET_RATE_NOCACHE)
45
39/* linux/fs.h */ 46/* linux/fs.h */
40LX_VALUE(SB_RDONLY) 47LX_VALUE(SB_RDONLY)
41LX_VALUE(SB_SYNCHRONOUS) 48LX_VALUE(SB_SYNCHRONOUS)
@@ -44,6 +51,9 @@ LX_VALUE(SB_DIRSYNC)
44LX_VALUE(SB_NOATIME) 51LX_VALUE(SB_NOATIME)
45LX_VALUE(SB_NODIRATIME) 52LX_VALUE(SB_NODIRATIME)
46 53
54/* linux/htimer.h */
55LX_GDBPARSED(hrtimer_resolution)
56
47/* linux/mount.h */ 57/* linux/mount.h */
48LX_VALUE(MNT_NOSUID) 58LX_VALUE(MNT_NOSUID)
49LX_VALUE(MNT_NODEV) 59LX_VALUE(MNT_NODEV)
@@ -52,8 +62,16 @@ LX_VALUE(MNT_NOATIME)
52LX_VALUE(MNT_NODIRATIME) 62LX_VALUE(MNT_NODIRATIME)
53LX_VALUE(MNT_RELATIME) 63LX_VALUE(MNT_RELATIME)
54 64
65/* linux/threads.h */
66LX_VALUE(NR_CPUS)
67
55/* linux/of_fdt.h> */ 68/* linux/of_fdt.h> */
56LX_VALUE(OF_DT_HEADER) 69LX_VALUE(OF_DT_HEADER)
57 70
58/* Kernel Configs */ 71/* Kernel Configs */
72LX_CONFIG(CONFIG_GENERIC_CLOCKEVENTS)
73LX_CONFIG(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST)
74LX_CONFIG(CONFIG_HIGH_RES_TIMERS)
75LX_CONFIG(CONFIG_NR_CPUS)
59LX_CONFIG(CONFIG_OF) 76LX_CONFIG(CONFIG_OF)
77LX_CONFIG(CONFIG_TICK_ONESHOT)