2 * gdb helper commands and functions for Linux kernel debugging
4 * Kernel constants derived from include files.
6 * Copyright (c) 2016 Linaro Ltd
9 * Kieran Bingham <kieran.bingham@linaro.org>
11 * This work is licensed under the terms of the GNU GPL version 2.
16 #include <linux/hrtimer.h>
17 #include <linux/mount.h>
18 #include <linux/of_fdt.h>
19 #include <linux/threads.h>
21 /* We need to stringify expanded macros so that they can be parsed */
24 #define XSTRING(x) STRING(x)
26 #define LX_VALUE(x) LX_##x = x
27 #define LX_GDBPARSED(x) LX_##x = gdb.parse_and_eval(XSTRING(x))
30 * IS_ENABLED generates (a || b) which is not compatible with python
31 * We can only switch on configuration items we know are available
32 * Therefore - IS_BUILTIN() is more appropriate
34 #define LX_CONFIG(x) LX_##x = IS_BUILTIN(x)
36 /* The build system will take care of deleting everything above this marker */
37 <!-- end-c-headers -->
43 LX_VALUE(SB_SYNCHRONOUS)
47 LX_VALUE(SB_NODIRATIME)
50 LX_GDBPARSED(hrtimer_resolution)
57 LX_VALUE(MNT_NODIRATIME)
58 LX_VALUE(MNT_RELATIME)
64 LX_VALUE(OF_DT_HEADER)
67 LX_CONFIG(CONFIG_GENERIC_CLOCKEVENTS)
68 LX_CONFIG(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST)
69 LX_CONFIG(CONFIG_HIGH_RES_TIMERS)
70 LX_CONFIG(CONFIG_NR_CPUS)
72 LX_CONFIG(CONFIG_TICK_ONESHOT)