[Bug libc/2268] New: Wrong frequency setting for ITIMER_PROF

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug libc/2268] New: Wrong frequency setting for ITIMER_PROF

tromey 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.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/2268] Wrong frequency setting for ITIMER_PROF

tromey at sourceware dot org

------- Additional Comments From cvs-commit at gcc dot gnu dot org  2006-02-03 22:28 -------
Subject: Bug 2268

CVSROOT: /cvs/glibc
Module name: libc
Changes by: [hidden email] 2006-02-03 22:28:32

Modified files:
        sysdeps/posix  : profil.c

Log message:
        2006-02-03  Roland McGrath  <[hidden email]>
       
        [BZ #2268]
        * sysdeps/posix/profil.c (__profil): Use __profile_frequency to choose
        timer interval, don't assume smallest possible interval is it.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/posix/profil.c.diff?cvsroot=glibc&r1=1.13&r2=1.14



--


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.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/2268] Wrong frequency setting for ITIMER_PROF

tromey at sourceware dot org
In reply to this post by tromey at sourceware dot org

------- Additional Comments From decimal at us dot ibm dot com  2006-02-07 18:25 -------
Do you (H.J.) have a small testcase for this? I'm wanting to put one in the
glibc tests.

--


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.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/2268] Wrong frequency setting for ITIMER_PROF

tromey at sourceware dot org
In reply to this post by tromey at sourceware dot org

------- Additional Comments From hjl at lucon dot org  2006-02-07 18:37 -------
I don't have a small testcase. The only thing I have needs icc and MKL.

--


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.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/2268] Wrong frequency setting for ITIMER_PROF

tromey at sourceware dot org
In reply to this post by tromey at sourceware dot org


--
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|drepper at redhat dot com   |decimal at us dot ibm dot
                   |                            |com
             Status|NEW                         |ASSIGNED


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.
Reply | Threaded
Open this post in threaded view
|

[Bug libc/2268] Wrong frequency setting for ITIMER_PROF

tromey at sourceware dot org
In reply to this post by tromey at sourceware dot org

------- Additional Comments From drepper at redhat dot com  2006-05-01 18:35 -------
According to the changelog entry this should be fixed.

--
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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.