[DTrace-devel] [oracle/dtrace-utils] bcf5f8: cc, bpf: separate final BPF program creation from ...

Kris Van Hees noreply at github.com
Tue Aug 29 20:26:03 UTC 2023


  Branch: refs/heads/dev
  Home:   https://github.com/oracle/dtrace-utils
  Commit: bcf5f82ddd6c3c375dfc2c96517d6e5812ca1051
      https://github.com/oracle/dtrace-utils/commit/bcf5f82ddd6c3c375dfc2c96517d6e5812ca1051
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M libdtrace/dt_bpf.c
    M libdtrace/dt_bpf.h
    M libdtrace/dt_cc.c
    M libdtrace/dt_impl.h
    M libdtrace/dt_probe.c
    M libdtrace/dt_probe.h
    M libdtrace/dt_work.c

  Log Message:
  -----------
  cc, bpf: separate final BPF program creation from linking and loading

Some providers may need to do more complex code generaetion for the
probe BPF program trampoline.  The generation of trampoline code was
being done after BPF map creation, making it impossible for trampoline
code to use constructs that require data to be added to BPF maps.

The final BPF program handling has been changed to first create the
final programs, then create the BPF maps, and finally link and load the
BPF programs (performing the final relocations) and attaching them to
their probes.

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>





More information about the DTrace-devel mailing list