This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10796] New: thread-specific globals
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 16 Oct 2009 22:23:03 -0000
- Subject: [Bug translator/10796] New: thread-specific globals
- Reply-to: sourceware-bugzilla at sourceware dot org
Similar to PR10795, it would also be nice to have native per-thread globals.
It's a common pattern to have maps indexed only by tid(), so it would be nice if
that were automatic and lockless.
Per-thread is not as easy as per-cpu though -- we'll probably need to have a
fixed pool of thread storage areas, allocating when a probe hits a thread,
deallocating when a thread dies (perhaps even on exec). Those lookups might
need some locking, but hopefully that could be more fine-grained than wrapping
the entire probe.
--
Summary: thread-specific globals
Product: systemtap
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: jistone at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10796
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.