From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D4F563858439; Fri, 27 Aug 2021 19:50:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4F563858439 From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug bpf/28285] New: Allow stapbpf backend to handle $arg1, $arg2, ... Date: Fri, 27 Aug 2021 19:50:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: bpf X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wcohen 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 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: Fri, 27 Aug 2021 19:50:18 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28285 Bug ID: 28285 Summary: Allow stapbpf backend to handle $arg1, $arg2, ... Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: bpf Assignee: systemtap at sourceware dot org Reporter: wcohen at redhat dot com Target Milestone: --- The stapbpf backend doesn't handle $argn (for example $arg2 in gmalloc_watch.stp example below). A number of the tapsets use $argn to acc= ess values passed into functions. The bpf backend should be able to access tho= se simple arguments also, but currently it fails. This can be demonstrated wi= th some of the systemtap examples: $ sudo dnf install glib2-devel $ cd /usr/share/systemtap/testsuite/systemtap.examples/ $ sudo stap --bpf apps/gmalloc_watch.stp -T 1 semantic error: unhandled statement or expression type: identifier '$arg2' = at /usr/share/systemtap/tapset/x86_64/libglib-2.0.so.0.6800.4.stp:31:13 source: n_bytes =3D $arg2;=20 ^ Pass 4: compilation failed. [man error::pass4] $ sudo stap --bpf apps/stap_time.stp=20 semantic error: unhandled statement or expression type: identifier '$arg1' = at /usr/share/systemtap/tapset/stap_staticmarkers.stp:18:12 source: session =3D $arg1 ^ Pass 4: compilation failed. [man error::pass4] On the same machine the linux kernel module version things work fine: $ sudo stap apps/gmalloc_watch.stp -T 1 g_malloc: pid=3D2077 n_bytes=3D72 $ sudo stap apps/stap_time.stp -T 1 $ --=20 You are receiving this mail because: You are the assignee for the bug.=