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/mount.h>
17 #include <linux/of_fdt.h>
19 /* We need to stringify expanded macros so that they can be parsed
*/
22 #define XSTRING(x) STRING(x)
24 #define LX_VALUE(x) LX_##x = x
25 #define LX_GDBPARSED(x) LX_##x = gdb.parse_and_eval(XSTRING(x))
28 * IS_ENABLED
generates (a || b
) which
is not compatible with python
29 * We can only switch on configuration items we know are available
30 * Therefore
- IS_BUILTIN() is more appropriate
32 #define LX_CONFIG(x) LX_##x = IS_BUILTIN(x)
34 /* The build system will take care of deleting everything above this marker
*/
35 <!-- end
-c
-headers
-->
41 LX_VALUE(MS_SYNCHRONOUS
)
45 LX_VALUE(MS_NODIRATIME
)
52 LX_VALUE(MNT_NODIRATIME
)
53 LX_VALUE(MNT_RELATIME
)
56 LX_VALUE(OF_DT_HEADER
)