This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]