From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2A171385B515; Fri, 17 Feb 2023 08:36:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A171385B515 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676623007; bh=DqGAo1+elqyh5mK28taPKeVspociqYmiFLkL1vYNgQ0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HlUvZttjsGev3119piTxXyZNA64jpWRPubmY3wfpHUa/PNARHwLskWhMJFyrk9HqG Lsjb5wPIyP/OX3MVYeqxFUpP+sNu1zY9WJqF/hS6+7/lYHv5xErobaVdEnxIg61kLD XOb/hQnGAFCOhUF1DxbMFNSRsiZXLP3imL6tFSlU= From: "mcermak at redhat dot com" To: systemtap@sourceware.org Subject: [Bug runtime/30131] Testcase at_var_timer_profile.exp regressed Date: Fri, 17 Feb 2023 08:36:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mcermak 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: attachments.created 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=3D30131 --- Comment #1 from Martin Cermak --- Created attachment 14689 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14689&action=3Ded= it a demo patch My sense is that it might be a testcase problem: > Here's the testcase script as of today: > https://sourceware.org/git/?p=3Dsystemtap.git;a=3Dblob;f=3Dtestsuite/syst= emtap. > base/at_var_timer_profile.stp;h=3D479f74941a9fd739ea05b0d566c52d8929af7d0= 3; > hb=3DHEAD The testcase has two probes that fire asynchronously: global active =3D 0 probe process.function("sub") { active =3D 1 } probe timer.profile { if (active && pid() =3D=3D target()) { printf("@var(\"foo\", @1)->bar: %d\n", @var("foo", @1)->bar); printf("@var(\"foo@at_var_timer_profile.c\", @1)->bar: %d\n", @var("foo@at_var_timer_profile.c", @1)->bar); printf("@var(\"foo@at_var_timer_profile.c\", @2)->bar: %d\n", @var("foo@at_var_timer_profile.c", @2)->bar); printf("@var(\"foo\", @1)$: %s\n", @var("foo", @1)$); printf("@var(\"foo\", @1)$$: %s\n", @var("foo", @1)$$); printf("@defined(@var(\"foo\", \"badmodle\")): %s\n", @defined(@var("foo", "badmodule")) ? "YES" : "NO") printf("@defined(@var(\"foo\", @3)): %s\n", @defined(@var("foo", @3)) ? "YES" : "NO") exit() } } The failure is caused by a fail to read variables that were available in the first probe process.function (I've checked that), within the second probe - timer.profile. My hypothesis is that the second probe simply fires too lat= e, and the data are gone by then. IMHO The mentioned kernel update possibly o= nly impacted the probe timing, indirectly causing this testcase failure. The attached patch "fixes the failure" and demonstrates this hypothesis. --=20 You are receiving this mail because: You are the assignee for the bug.=