aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/oprofile/common.c
diff options
context:
space:
mode:
authorBrian Rogan <bcr6@cornell.edu>2006-03-26 19:57:01 -0500
committerPaul Mackerras <paulus@samba.org>2006-03-28 21:44:16 -0500
commit6c6bd754bf43d59756f094de144ecac239629dda (patch)
treeb6cf2a7a3f133d24d22c63ba7bb8f9ebb02a8bab /arch/powerpc/oprofile/common.c
parentb848e0a07dd5a874821bb587bb724fac4aa45bad (diff)
[PATCH] powerpc: Add oprofile calltrace support
Add oprofile calltrace support to powerpc. Disable spinlock backtracing now we can use calltrace info. (Updated to work on both 32bit and 64bit by me). Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/oprofile/common.c')
-rw-r--r--arch/powerpc/oprofile/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/oprofile/common.c b/arch/powerpc/oprofile/common.c
index cc2535be3a73..2b9143b0f6ba 100644
--- a/arch/powerpc/oprofile/common.c
+++ b/arch/powerpc/oprofile/common.c
@@ -126,8 +126,7 @@ static int op_powerpc_create_files(struct super_block *sb, struct dentry *root)
126 sys.enable_kernel = 1; 126 sys.enable_kernel = 1;
127 sys.enable_user = 1; 127 sys.enable_user = 1;
128#ifdef CONFIG_PPC64 128#ifdef CONFIG_PPC64
129 /* Turn on backtracing through spinlocks by default */ 129 sys.backtrace_spinlocks = 0;
130 sys.backtrace_spinlocks = 1;
131#endif 130#endif
132 131
133 return 0; 132 return 0;
@@ -168,6 +167,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
168 ops->shutdown = op_powerpc_shutdown; 167 ops->shutdown = op_powerpc_shutdown;
169 ops->start = op_powerpc_start; 168 ops->start = op_powerpc_start;
170 ops->stop = op_powerpc_stop; 169 ops->stop = op_powerpc_stop;
170 ops->backtrace = op_powerpc_backtrace;
171 171
172 printk(KERN_INFO "oprofile: using %s performance monitoring.\n", 172 printk(KERN_INFO "oprofile: using %s performance monitoring.\n",
173 ops->cpu_type); 173 ops->cpu_type);