This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2268] New: Wrong frequency setting for ITIMER_PROF
- From: "hjl at lucon dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 3 Feb 2006 21:22:23 -0000
- Subject: [Bug libc/2268] New: Wrong frequency setting for ITIMER_PROF
- Reply-to: sourceware-bugzilla at sourceware dot org
sysdeps/posix/profil.c has
timer.it_value.tv_sec = 0;
timer.it_value.tv_usec = 1;
timer.it_interval = timer.it_value;
return __setitimer (ITIMER_PROF, &timer, otimer_ptr);
That sets ITIMER_PROF with 1 microsecond interval. Kernel will try to deliver a
SIGPROF signal every microsecond. Depending on other factors, a process may
get anywhere from __profile_frequency () to 1000000 SIGPROF signals per second.
--
Summary: Wrong frequency setting for ITIMER_PROF
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: hjl at lucon dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=2268
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.