summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/ptrace.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-10-16 09:34:01 -0700
committerDavid S. Miller <davem@davemloft.net>2012-10-16 09:34:01 -0700
commit916ca14aaf12a7191118adb51bb95e3c7866380d (patch)
treebc9c31c16aea077da695a64714707695c7f3948f /arch/sparc/include/asm/ptrace.h
parent08280e6c4c2e8049ac61d9e8e3536ec1df629c0d (diff)
sparc64: Add global PMU register dumping via sysrq.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/ptrace.h')
-rw-r--r--arch/sparc/include/asm/ptrace.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/ptrace.h b/arch/sparc/include/asm/ptrace.h
index 0c6f6b068289..da43bdc62294 100644
--- a/arch/sparc/include/asm/ptrace.h
+++ b/arch/sparc/include/asm/ptrace.h
@@ -42,7 +42,18 @@ struct global_reg_snapshot {
struct thread_info *thread;
unsigned long pad1;
};
-extern struct global_reg_snapshot global_reg_snapshot[NR_CPUS];
+
+struct global_pmu_snapshot {
+ unsigned long pcr[4];
+ unsigned long pic[4];
+};
+
+union global_cpu_snapshot {
+ struct global_reg_snapshot reg;
+ struct global_pmu_snapshot pmu;
+};
+
+extern union global_cpu_snapshot global_cpu_snapshot[NR_CPUS];
#define force_successful_syscall_return() \
do { current_thread_info()->syscall_noerror = 1; \