]> sourceware.org Git - systemtap.git/commit
stapbpf PR27030 WIP :: new bpf/uconversions.stp tapset
authorSerhei Makarov <smakarov@redhat.com>
Wed, 3 Feb 2021 15:36:33 +0000 (10:36 -0500)
committerSerhei Makarov <smakarov@redhat.com>
Wed, 3 Feb 2021 15:36:33 +0000 (10:36 -0500)
commit908baf70af6510bd48e859b030e7b04e9bc83702
tree2f493dd7309eea9fce1fc2ae9f6b63465808f99b
parent1ebe26bec96ebe5f70320f4578ed3cc388aa37a4
stapbpf PR27030 WIP :: new bpf/uconversions.stp tapset

Tentative version of user_long_error() for bpf, needs more testing.
NEXT, the __bpf_probe_read_user_error() helper can be used to implement
the other user_{char,short,int} tapset functions.

This patch starts a new practice for tapset layout for tapset functions
that have a lkm/dyninst implementation and a separate bpf implementation:

- The lkm/dyninst implementation is placed in the toplevel tapset/
  directory, surrounded by %( runtime != "bpf" %? ... %).

- The bpf implementation is placed in the tapset/bpf/ directory.

Once applied to the rest of the tapsets, this practice should work to
eliminate the current proliferation of two-way
%( runtime != "bpf" %? implementation1 %: implementation2 %)
conditionals in the runtime code, and allow bpf versions of numerous
remaining tapset functions to be implemented and cleanly placed
into separate files under bpf/.
tapset/bpf/uconversions.stp [new file with mode: 0644]
tapset/uconversions.stp
This page took 0.026679 seconds and 5 git commands to generate.