From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7EB083857C47; Tue, 4 Aug 2020 19:59:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7EB083857C47 From: "fche at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/26296] delay script-global locking until required Date: Tue, 04 Aug 2020 19:59:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fche at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2020 19:59:22 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26296 --- Comment #3 from Frank Ch. Eigler --- > 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; >=20 > 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:=20 release of locks as early as possible. --=20 You are receiving this mail because: You are the assignee for the bug.=