This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[patch] CONFIG_CPU_CP15 may not be defined
- From: Eugene Teo <eteo at redhat dot com>
- To: SystemTAP <systemtap at sources dot redhat dot com>
- Date: Thu, 05 Jul 2007 00:57:17 +0800
- Subject: [patch] CONFIG_CPU_CP15 may not be defined
- Organization: Red Hat, Inc
I have tested this on Nokia N800. Kindly commit the patch. Thanks.
Eugene
diff -uprN src.default/runtime/ChangeLog src/runtime/ChangeLog
--- src.default/runtime/ChangeLog 2007-07-02 15:14:36.000000000 +0800
+++ src/runtime/ChangeLog 2007-07-05 08:15:12.000000000 +0800
@@ -1,3 +1,7 @@
+2007-07-05 Eugene Teo <eteo@redhat.com>
+
+ * regs.c (_stp_print_regs): #ifdef CONFIG_CPU_CP15 instead.
+
2007-07-02 Martin Hunt <hunt@redhat.com>
* sym.c (_stp_kallsyms_lookup): Improve heuristic
diff -uprN src.default/runtime/regs.c src/runtime/regs.c
--- src.default/runtime/regs.c 2007-06-15 23:19:30.000000000 +0800
+++ src/runtime/regs.c 2007-07-05 08:10:42.000000000 +0800
@@ -253,7 +253,7 @@ void _stp_print_regs(struct pt_regs * re
processor_modes[processor_mode(regs)],
thumb_mode(regs) ? " (T)" : "",
get_fs() == get_ds() ? "kernel" : "user");
-#if CONFIG_CPU_CP15
+#ifdef CONFIG_CPU_CP15
{
unsigned int ctrl;
__asm__ (