summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-10-16 21:02:49 +0000
committerbde <bde@FreeBSD.org>1996-10-16 21:02:49 +0000
commit467c7d29da92639f9501285d7b377d426ec5a70d (patch)
treed977840a4ff24c07b3e1220c9847c5457e8a8c38 /usr.bin/gprof
parentef80b84143b41951e403910e1c638a13c08b1df5 (diff)
downloadFreeBSD-src-467c7d29da92639f9501285d7b377d426ec5a70d.zip
FreeBSD-src-467c7d29da92639f9501285d7b377d426ec5a70d.tar.gz
Use a (signed) int32_t counter instead of an `unsigned int' counter
for the GPROF4 case. This allows a simpler method to be used for non-statistical profiling (it allows overhead adjustments to be subtracted from one counter without harm if that counter goes negative; otherwise the adjustment would have to be distributed). 32 bit counters were already too small for GPROF4 with a 200MHz clock. int64_t counters should be used.
Diffstat (limited to 'usr.bin/gprof')
-rw-r--r--usr.bin/gprof/gprof.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/gprof/gprof.h b/usr.bin/gprof/gprof.h
index afe4357..27808d2 100644
--- a/usr.bin/gprof/gprof.h
+++ b/usr.bin/gprof/gprof.h
@@ -82,7 +82,7 @@ typedef int bool;
long hz;
#ifdef GPROF4
-typedef unsigned int UNIT;
+typedef int32_t UNIT;
#else
typedef u_short UNIT; /* unit of profiling */
#endif
OpenPOWER on IntegriCloud