[PATCH 0/4] ARC: add missing bits for better BPF support

Sergey Matyukevich geomatsi at gmail.com
Fri Apr 8 08:58:00 PDT 2022


Hi Vineet and all,

This patch set implements the following two features for ARC:
- HAVE_REGS_AND_STACK_ACCESS_API
- HAVE_SYSCALL_TRACEPOINTS

Adding these features enables more BPF programs for ARC kernels,
including KPROBE, TRACEPOINT, PERF_EVENT program types.

Regards,
Sergey

Sergey Matyukevich (4):
  ARC: bpf: define uapi for BPF_PROG_TYPE_PERF_EVENT program type
  ARC: enable HAVE_REGS_AND_STACK_ACCESS_API feature
  ARC: entry: fix syscall_trace_exit argument
  ARC: implement syscall tracepoints

 arch/arc/Kconfig                           |   2 +
 arch/arc/include/asm/perf_event.h          |   4 +
 arch/arc/include/asm/ptrace.h              |  27 ++++
 arch/arc/include/asm/syscall.h             |   2 +
 arch/arc/include/asm/thread_info.h         |   5 +-
 arch/arc/include/uapi/asm/bpf_perf_event.h |   9 ++
 arch/arc/kernel/entry.S                    |  13 +-
 arch/arc/kernel/ptrace.c                   | 140 ++++++++++++++++++++-
 8 files changed, 192 insertions(+), 10 deletions(-)
 create mode 100644 arch/arc/include/uapi/asm/bpf_perf_event.h

-- 
2.35.1




More information about the linux-snps-arc mailing list