Commit Graph
9 Commits
Author SHA1 Message Date
Vincent Brillault ad342cab06 Introduce "verbose" and "batch" modes
Rewrite the way the output is processed:
- Define verbosity level (currently warn, info (default) & verbose)
- Add a batch mode, for simple machine parsing
2018-01-09 15:58:13 +01:00
Vincent Brillault 5fd85e288b No-color: interpret string (-e) to be able to mach \x1B 2018-01-09 15:57:10 +01:00
Vincent Brillault b6bfcdbd45 Move configuration at the beginning of the script 2018-01-09 14:18:02 +01:00
Vincent Brillault f4140a992a Use /proc/kallsyms to get symbols, if available 2018-01-09 08:58:09 +01:00
Vincent Brillault 2c51b00a90 When using /proc/config.gz, indicate it more clearly 2018-01-09 08:54:07 +01:00
Vincent Brillault a792348928 RedHat uses a different configuration name 2018-01-08 12:59:12 +01:00
Vincent Brillault 66f7708095 Refactor RedHat support:
- Isolate file check to different elif (allowing to add more)
- Do the PTI debugfs check first (faster and supposed to be dynamic)
- If pti_enable is 0, don't trust dmesg (supposed to be dynamic)
2018-01-08 12:59:03 +01:00
Vincent Brillault 34ef5ef21b Delay umount (for RedHat access to pti_enable) 2018-01-08 12:58:22 +01:00
Vincent Brillault b7197d6f54 Fix debugfs mount check 2018-01-08 12:15:51 +01:00