sparc64: Add global PMU register dumping via sysrq.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -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; \
|
||||
|
||||
@@ -48,6 +48,7 @@ extern void smp_fill_in_sib_core_maps(void);
|
||||
extern void cpu_play_dead(void);
|
||||
|
||||
extern void smp_fetch_global_regs(void);
|
||||
extern void smp_fetch_global_pmu(void);
|
||||
|
||||
struct seq_file;
|
||||
void smp_bogo(struct seq_file *);
|
||||
@@ -65,6 +66,7 @@ extern void __cpu_die(unsigned int cpu);
|
||||
#define hard_smp_processor_id() 0
|
||||
#define smp_fill_in_sib_core_maps() do { } while (0)
|
||||
#define smp_fetch_global_regs() do { } while (0)
|
||||
#define smp_fetch_global_pmu() do { } while (0)
|
||||
|
||||
#endif /* !(CONFIG_SMP) */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user