From 0bc83736ede1f82c457e48727982eae123b2a215 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Mon, 11 Feb 2013 17:05:26 +0000 Subject: Fix kernel profiling on MP systems by using per-CPU buffer. Previously various CPUs were iterating over the same global buffer at the same time to modify it and never ended. This diff includes some ideas submited by Thor Simon to NetBSD via miod@. ok mikeb@, haesbaert@ --- sys/arch/powerpc/include/cpu.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/arch/powerpc') diff --git a/sys/arch/powerpc/include/cpu.h b/sys/arch/powerpc/include/cpu.h index d4237733cd8..7715195bde4 100644 --- a/sys/arch/powerpc/include/cpu.h +++ b/sys/arch/powerpc/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.48 2012/12/08 12:49:00 mpi Exp $ */ +/* $OpenBSD: cpu.h,v 1.49 2013/02/11 17:05:25 mpi Exp $ */ /* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */ /* @@ -85,6 +85,9 @@ struct cpu_info { #ifdef DIAGNOSTIC int ci_mutex_level; #endif +#ifdef GPROF + struct gmonparam *ci_gmon; +#endif }; static __inline struct cpu_info * -- cgit v1.2.3