Re: PATCH: PR libc/2268: Wrong frequency setting for ITIMER_PROF
On Fri, Feb 03, 2006 at 02:54:20PM -0800, H. J. Lu wrote:
> Hi Roland,
> There are some minor issues with your change. We want SIGPROF
> delivered as soon as possible. So we should keep
> timer.it_value.tv_usec = 1;
> Also we may want to guard against __profile_frequency.
There is another issue. If 1000000 can't be divided by
__profile_frequency () evenly, frequency in gmon data will be
incorrect. I am enclosing my original patch for reference.