Skip to contentSkip to conversation

cpu_debug patches 20090610

git-pull -tip Jaswinder Singh Rajput 1 participant 1 message Jun 10, 2009 x86

lore
Share & tools
lore
#0 lore raw

The following changes since commit 50149b2db7be15514079089d0c4efa4c7a2676bb:
Ingo Molnar (1):
Merge branch 'linus'

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jaswinder/linux-2.6-tip.git master

Jaswinder Singh Rajput (7):
x86: cpu_debug update Kconfig entry
x86: cpu_debug.c remove some not required header files
x86: cpu_debug.c use a WARN_ONCE() instead of a pr_err()
x86: cpu_debug make room to support more categories
x86: cpu_debug update MSR list to support new architectures
x86: cpu_debug make room for more cpu registers
x86: cpu_debug support APIC_register_name with directory structure

 arch/x86/Kconfig                 |   12 ++-
 arch/x86/include/asm/cpu_debug.h |  111 +++++++----------
 arch/x86/kernel/cpu/cpu_debug.c  |  252 ++++++++++++++++++++++++++------------
 3 files changed, 227 insertions(+), 148 deletions(-)

Complete diff:

arch/x86/Kconfig +11 -1
index 0c2321d..e5e26b3 100644
@@ -994,9 +994,19 @@ config X86_CPUID
 
 config X86_CPU_DEBUG
 	tristate "/sys/kernel/debug/x86/cpu/* - CPU Debug support"
+	select DEBUG_FS
 	---help---
 	  If you select this option, this will provide various x86 CPUs
-	  information through debugfs.
+	  information through debugfs. Any user can read these file but writing
+	  needs root privilege.
+
+	  Note: 1. If you compile cpu_debug as a module, it will _not_ be loaded
+	  automatically (like usual drivers). You will need to load it manually
+	  (or add it to list of modules loaded during boot).
+
+	  2. You need debugfs, if you want to mount debugfs automatically
+	  append this line in /etc/fstab:
+	  debugfs	/sys/kernel/debug	debugfs	defaults	0 0
 
 choice
 	prompt "High Memory Support"
arch/x86/include/asm/cpu_debug.h +44 -67

133 lines not on this page · raw message

arch/x86/kernel/cpu/cpu_debug.c +172 -80

476 lines not on this page · raw message