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


Roland McGrath writes:
> > Thanks for the tip. But KERN_CLOCKRATE contains four numbers:
> > 100, 10000, 1024, 128. I really need the measuring program in order
> > to determine which one to use.
> 
> Those are:
> 
> 	int	hz;		/* clock frequency */
> 	int	tick;		/* micro-seconds per hz tick */
> 	int	tickadj;	/* clock skew rate for adjtime() */
> 	int	stathz;		/* statistics clock frequency */
> 	int	profhz;		/* profiling clock frequency */
> 
> so you just want the last one.

Nope, on i386 the value of profhz is 1024, and the show-prof-freq
program tells me that I need the value 100. Which is 'hz'.

I've put a corresponding comment in
sysdeps/unix/bsd/bsd4.4/freebsd/prof-freq.c.

Bruno


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