From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BD4823858403; Tue, 6 Feb 2024 22:30:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD4823858403 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707258641; bh=c+bSI15+lLp9sadhFWT5xuVSW/gg2G61ud1hkv1Ggfo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iqHsiHDlfZloUKrJsFkxfAtbYYYMLDQik7XBOagZiDwxHEuE80AJCQDVfC1TLyXeW 6PuxwB6uaEAziez05qrNheFZs56oH3LibSU3hPPD7hZdbGHOzh+VyPpe8YUje2Ki6+ ysVngUP+muhXF4yYHVt02Ug0QEcOWPGhu2eaGre8= From: "jkriegshauser at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug nptl/27880] Please provide a pthread pid accessor Date: Tue, 06 Feb 2024 22:30:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jkriegshauser at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: adhemerval.zanella at linaro dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D27880 Josh Kriegshauser changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jkriegshauser at gmail dot= com --- Comment #12 from Josh Kriegshauser --- I would really like to see this addition make it in, even if it is only exp= osed for the calling thread. Sadly, it seems as though work on it has stalled. In my use case it's a performance issue. The gettid() syscall takes ~700 ns= on my machine, but reading pthread_self() is ~9 ns. It would be great to have a performant way of reading the TID out of the st= ruct pthread. --=20 You are receiving this mail because: You are on the CC list for the bug.=