foss-for-synopsys-dwc-arc-processors / linux

Helpful resources for users & developers of Linux kernel for ARC
22 stars 13 forks source link

WIP: BPF support for ARCv2 #82

Closed geomatsi closed 2 years ago

geomatsi commented 2 years ago

More or less complete eBPF support for ARCv2 requires the following features:

  1. HAVE_REGS_AND_STACK_ACCESS_API
  2. HAVE_SYSCALL_TRACEPOINTS
  3. HAVE_FUNCTION_TRACER (optionally ?)
  4. HAVE_EBPF_JIT

This PR implements the first two steps. Now kprobe/tracepoint and syscall tracepoint BPF programs appear to be working fine.

geomatsi commented 2 years ago

By now all the patches have been submitted to the appropriate Linux kernel mailing lists:

  1. ARC: add missing bits for better BPF support
  2. libbpf: add ARC support to bpf_tracing.h
  3. ARC: bpf: define uapi for BPF_PROG_TYPE_PERF_EVENT program type

So close this PR. Further revisions will be directly posted to mailing lists.