[Bug runtime/21887] New: bpf: exit()

fche at redhat dot com sourceware-bugzilla@sourceware.org
Wed Aug 2 18:07:00 GMT 2017


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

            Bug ID: 21887
           Summary: bpf: exit()
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: fche at redhat dot com
  Target Milestone: ---

The bpf runtime doesn't support an exit operation.  This would require a piece
of shared state between the bpf runtime and stapbpf userspace; probably a
designated bpf map object.  (Maybe we need a map that has such metadata, and
per-probe hit counts, etc.; the kind of stuff stap -t uses.)

The exit() %{ /* bpf */ %} variant function would set that global; bpf probe
handlers would check it and abort if set (to avoid triggering new probe
handlers after one of them calls exit()); stapbpf userspace would poll it
periodically (instead of just sitting in pause()).

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


More information about the Systemtap mailing list