Skip to content

bpf/s390: Implement get_preempt_count()

Ilya Leoshkevich bpf 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2s390: Introduce bpf_get_lowcore() kfuncarch/s390/kernel/Makefile arch/s390/kernel/bpf.c kernel/bpf/helpers.c +1 more+21 -00 repliesApplied
2/2bpf/s390: Implement get_preempt_count()tools/testing/selftests/bpf/bpf_experimental.h+7 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] bpf/s390: Implement get_preempt_count()

Hi,

This series adds get_preempt_count() BPF implementation for s390. On s390 preempt_count lives in lowcore: a per-cpu data structure mapped at virtual address 0 or 0x70000 depending on the kernel command line.

Patch 1 adds a kfunc to obtain lowcore address. Patch 2 is the implementation that delegates to it.

Best regards,
Ilya

Ilya Leoshkevich (2):
s390: Introduce bpf_get_lowcore() kfunc
bpf/s390: Implement get_preempt_count()

 arch/s390/kernel/Makefile                      |  2 ++
 arch/s390/kernel/bpf.c                         | 12 ++++++++++++
 kernel/bpf/helpers.c                           |  3 +++
 tools/testing/selftests/bpf/bpf_experimental.h | 11 +++++++++++
 4 files changed, 28 insertions(+)
 create mode 100644 arch/s390/kernel/bpf.c
Signature · 1 line
2.53.0