X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=arch%2Fsparc%2Finclude%2Fasm%2Fptrace.h;h=da43bdc622943bf422a396abba301148151f8f96;hb=42bf3e27e846156e9cead6f2cd6c43fa0ceb8362;hp=0c6f6b068289ad4e74f8ea563a6ccd569f6743f5;hpb=ccff9b1db693062b0a9c9070f4304deb47ef215c;p=mirror_ubuntu-artful-kernel.git 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; \