upgrade to linux 2.6.10-1.12_FC2
[linux-2.6.git] / arch / ppc64 / oprofile / common.c
index bd0dcd2..476c857 100644 (file)
@@ -112,11 +112,16 @@ static int op_ppc64_create_files(struct super_block *sb, struct dentry *root)
 
        oprofilefs_create_ulong(sb, root, "enable_kernel", &sys.enable_kernel);
        oprofilefs_create_ulong(sb, root, "enable_user", &sys.enable_user);
+       oprofilefs_create_ulong(sb, root, "backtrace_spinlocks",
+                               &sys.backtrace_spinlocks);
 
        /* Default to tracing both kernel and user */
        sys.enable_kernel = 1;
        sys.enable_user = 1;
 
+       /* Turn on backtracing through spinlocks by default */
+       sys.backtrace_spinlocks = 1;
+
        return 0;
 }