diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-02-11 17:05:26 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-02-11 17:05:26 +0000 |
commit | 0bc83736ede1f82c457e48727982eae123b2a215 (patch) | |
tree | f169dcb391924b9a9743965a7212c6aac4e50a60 /sys/arch/m88k | |
parent | a9adb71cfc4f8563cec7231e996164c74b19585c (diff) |
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@
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r-- | sys/arch/m88k/include/cpu.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/m88k/include/cpu.h b/sys/arch/m88k/include/cpu.h index 8bda7b55b9d..4da10bede57 100644 --- a/sys/arch/m88k/include/cpu.h +++ b/sys/arch/m88k/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.56 2013/01/05 11:20:56 miod Exp $ */ +/* $OpenBSD: cpu.h,v 1.57 2013/02/11 17:05:25 mpi Exp $ */ /* * Copyright (c) 1996 Nivas Madhur * Copyright (c) 1992, 1993 @@ -172,6 +172,9 @@ struct cpu_info { #ifdef DIAGNOSTIC int ci_mutex_level; #endif +#ifdef GPROF + struct gmonparam *ci_gmon; +#endif }; extern cpuid_t master_cpu; |