public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/27417] New: glibc lacks define for sigev_notify_thread_id
@ 2021-02-14 20:40 alkondratenko at gmail dot com
  2021-02-15  9:27 ` [Bug libc/27417] " fweimer at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: alkondratenko at gmail dot com @ 2021-02-14 20:40 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=27417

            Bug ID: 27417
           Summary: glibc lacks define for sigev_notify_thread_id
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: alkondratenko at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

On linux (and freebsd) man page for sigevent lists support for event
notification kind that sends given signal to given thread.

Linux kernel headers define sigev_notify_thread_id in linux/signal.h, but this
header is actually unusable in practice:
https://bugzilla.kernel.org/show_bug.cgi?id=200081

Both freebsd and musl actually have this macro defined under <signal.h>, so
would be reasonable for glibc to also do same.

I guess this might be relevant to "famous" issue of glibc not having gettid
exposed as well. Since in order to use this kind of sigevent someone needs to
use tid. But tid is straightforward to get by using syscall function.

Also notably, glibc does "support" the feature by having sigevent struct with
_sigev_un._tid field, just not via "standard" naming.

Context: gperftools cpu profiler has a feature to use per-thread cpu time
timers for profiling "ticks", since stock interval timers commonly have skewed
tickings. E.g. see: https://github.com/golang/go/issues/14434. And using
per-thread cpu timers obviously depends on this sigevent feature.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libc/27417] glibc lacks define for sigev_notify_thread_id
  2021-02-14 20:40 [Bug libc/27417] New: glibc lacks define for sigev_notify_thread_id alkondratenko at gmail dot com
@ 2021-02-15  9:27 ` fweimer at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fweimer at redhat dot com @ 2021-02-15  9:27 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=27417

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-15  9:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-14 20:40 [Bug libc/27417] New: glibc lacks define for sigev_notify_thread_id alkondratenko at gmail dot com
2021-02-15  9:27 ` [Bug libc/27417] " fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).