From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7D143386F0D4; Thu, 30 Jun 2022 16:25:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D143386F0D4 From: "serhei at serhei dot io" To: systemtap@sourceware.org Subject: [Bug bpf/29307] New: assembler improvements and tapset porting guide Date: Thu, 30 Jun 2022 16:25:44 +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: serhei at serhei dot io 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: Thu, 30 Jun 2022 16:25:44 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29307 Bug ID: 29307 Summary: assembler improvements and tapset porting guide Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: bpf Assignee: systemtap at sourceware dot org Reporter: serhei at serhei dot io Target Milestone: --- PR created to track improvements to the stapbpf tapsets to make them easier= to contribute to. Relevant products include but not limited to: (1) 'Porting tapsets to stapbpf' document on the SystemTap Wiki, including = an explanation of what code goes where (there are some conventions with %( %? = %) ifdefs to avoid code duplication) (2) improvements to the BPF assembler. The current code follows the convent= ion 0xc5, $rc, -, _err, 0; /* jslt $rc, 0, _err */ (comment absolutely necessary to avoid needing to look up opcodes); which w= as fine at the beginning but as I contemplate coming back to this and redoing embedded-C code for several more tapsets, I think it can be vastly improved. --=20 You are receiving this mail because: You are the assignee for the bug.=