32-bit counters aren't large enough for 100+MHz clocks. Use 64-bit
counters. `4' in GPROF4 and gprof4 now means 8. gprof4 needs to be recompiled to match the kernel.
This commit is contained in:
parent
1771415dae
commit
20aa44a88c
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)gmon.h 8.2 (Berkeley) 1/4/94
|
||||
* $Id$
|
||||
* $Id: gmon.h,v 1.12 1997/02/22 09:45:17 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_GMON_H_
|
||||
@ -57,7 +57,7 @@ struct gmonhdr {
|
||||
* Type of histogram counters used in the kernel.
|
||||
*/
|
||||
#ifdef GPROF4
|
||||
#define HISTCOUNTER int
|
||||
#define HISTCOUNTER int64_t
|
||||
#else
|
||||
#define HISTCOUNTER unsigned short
|
||||
#endif
|
||||
|
@ -77,7 +77,7 @@ typedef int bool;
|
||||
long hz;
|
||||
|
||||
#ifdef GPROF4
|
||||
typedef int32_t UNIT;
|
||||
typedef int64_t UNIT;
|
||||
#else
|
||||
typedef u_short UNIT; /* unit of profiling */
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user