[Bug bpf/29307] New: assembler improvements and tapset porting guide

serhei at serhei dot io sourceware-bugzilla@sourceware.org
Thu Jun 30 16:25:44 GMT 2022


https://sourceware.org/bugzilla/show_bug.cgi?id=29307

            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 convention

0xc5, $rc, -, _err, 0; /* jslt $rc, 0, _err */

(comment absolutely necessary to avoid needing to look up opcodes); which was
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Systemtap mailing list