This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]