From: "fche at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug translator/26296] delay script-global locking until required
Date: Tue, 04 Aug 2020 19:59:22 +0000 [thread overview]
Message-ID: <bug-26296-6586-ojD74SW5EB@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-26296-6586@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=26296
--- Comment #3 from Frank Ch. Eigler <fche at redhat dot com> ---
> Even an explicit construct that scopes locking would be handy. Borrow from
> Java's "synchronized" perhaps.
If one can come up with easy-to-explain, implementable, safe
semantics, yeah perhaps!
> global targets_map;
>
> probe process("foo").mark("some_probe_point") {
> if (pid() in targets_map) {
> kdelay(100000);
> }
> }
In this example, you need the dual of the subject feature:
release of locks as early as possible.
--
You are receiving this mail because:
You are the assignee for the bug.
next prev parent reply other threads:[~2020-08-04 19:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-23 15:40 [Bug translator/26296] New: " fche at redhat dot com
2020-07-24 5:22 ` Craig Ringer
2020-07-24 14:12 ` Arkady
2020-07-24 5:22 ` [Bug translator/26296] " craig at 2ndquadrant dot com
2020-07-24 14:12 ` arkady.miasnikov at gmail dot com
2020-08-04 19:59 ` fche at redhat dot com [this message]
2020-08-10 6:32 ` Craig Ringer
2020-08-10 6:33 ` craig at 2ndquadrant dot com
2020-08-18 19:06 ` fche at redhat dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-26296-6586-ojD74SW5EB@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).