FreeBSD port (30): profiling frequency
Roland McGrath
roland@redhat.com
Mon Aug 26 03:16:00 GMT 2002
> Since the generic code for determining the profiler frequency in
> sysdeps/generic/prof-freq.c doesn't work on FreeBSD (it gives a SIGFPE
> due to division by zero), I'd like to contribute a program that measures
> and displays the profiling timer's frequency. This program allowed me
> to determine the value to put into
> sysdeps/unix/bsd/bsd4.4/freebsd/i386/prof-freq.c.
Thanks, but I don't want to encourage people to insert constants like this.
On FreeBSD the right thing to do is fetch KERN_CLOCKRATE with sysctl.
More information about the Libc-alpha
mailing list