From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EDDE638582AC; Tue, 14 Feb 2023 14:01:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EDDE638582AC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676383264; bh=yWYR/VjOgl9B3hRWyxSJ2Pp9FRVt4GvxJG1SCwLHl8w=; h=From:To:Subject:Date:From; b=HB/H5LMuhlVIdq5RozuA8wfqH75pdamR2Q23Upv0VtN0z/+jFRnhmJ2+VSf3L5BTo GvuYgvei7j2ereH9j+iY/lKufw5Zb2kPMgrP0u+EKxIcyiWMj4gLy3VyH4YptdvoGj nTXMakWpa2Qe/aUgqEJrrj+ghlkHm0cVJKqeKMuk= From: "mcermak at redhat dot com" To: systemtap@sourceware.org Subject: [Bug runtime/30123] New: bitfield.exp fails with fresh kernels Date: Tue, 14 Feb 2023 14:01:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D30123 Bug ID: 30123 Summary: bitfield.exp fails with fresh kernels Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: runtime Assignee: systemtap at sourceware dot org Reporter: mcermak at redhat dot com Target Milestone: --- With Rawhide or recent RHEL9, the bitfield.exp testcase fails. The problem seems to be with @cast(). To demonstrate it, let's have the following code snippet: =3D=3D=3D=3D=3D=3D=3D8<=3D=3D=3D=3D=3D=3D=3D %{ #include static struct tcphdr foo =3D {0}; %} function get_ptr:long() %{ STAP_RETVALUE =3D (long)&foo; /* pure */ %} probe begin { ptr =3D get_ptr() # setter1 (seems to work) %{ foo.ack =3D 1 %} # setter2 (doesn't seem to work) # @cast(ptr, "tcphdr", "kernel")->ack =3D 1 # printer1 (seems to work) println(%{ foo.ack %}) # printer2 (doesn't seem to work) println(@cast(ptr, "tcphdr", "kernel")->ack) exit() } =3D=3D=3D=3D=3D=3D=3D8<=3D=3D=3D=3D=3D=3D=3D A success is to write 1 to foo->ack and then read/print it. When embedded = C is used, things work fine. Using @cast() however, the experiment fails both to write the data, and to read it. Tested with 6.2.0-0.rc8.57.fc39 and 5.14.0-252.el9. --=20 You are receiving this mail because: You are the assignee for the bug.=