[PATCH bpf-next 0/3] bpf: Introduce BPF timers.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Alexei Starovoitov <ast@xxxxxxxxxx>

The 1st patch implements interaction between bpf programs and bpf core.
The 2nd patch implements necessary safety checks.
The 3rd patch is the test.
The patchset it's not ready to land, since it needs a lot more tests,
but it's in functionally solid shape. Please review.

Alexei Starovoitov (3):
  bpf: Introduce bpf_timer
  bpf: Add verifier checks for bpf_timer.
  selftests/bpf: Add bpf_timer test.

 include/linux/bpf.h                           |  37 +++-
 include/linux/btf.h                           |   1 +
 include/uapi/linux/bpf.h                      |  26 +++
 kernel/bpf/arraymap.c                         |   7 +
 kernel/bpf/btf.c                              |  77 +++++++--
 kernel/bpf/hashtab.c                          |  53 ++++--
 kernel/bpf/helpers.c                          | 160 ++++++++++++++++++
 kernel/bpf/local_storage.c                    |   4 +-
 kernel/bpf/syscall.c                          |  23 ++-
 kernel/bpf/verifier.c                         | 134 +++++++++++++++
 kernel/trace/bpf_trace.c                      |   2 +-
 scripts/bpf_doc.py                            |   2 +
 tools/include/uapi/linux/bpf.h                |  26 +++
 .../testing/selftests/bpf/prog_tests/timer.c  |  47 +++++
 tools/testing/selftests/bpf/progs/timer.c     |  85 ++++++++++
 15 files changed, 644 insertions(+), 40 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/timer.c
 create mode 100644 tools/testing/selftests/bpf/progs/timer.c

-- 
2.30.2




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux