This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: FreeBSD port (30): profiling frequency
- From: Roland McGrath <roland at redhat dot com>
- To: Bruno Haible <bruno at clisp dot org>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Mon, 26 Aug 2002 03:11:00 -0700
- Subject: Re: FreeBSD port (30): profiling frequency
> 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.