Skip to content

bpf: share helpers between tracing and networking

Alexei Starovoitov linux-api lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesIn review
  2. v13 patches 12 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bpf: introduce current->pid, tgid, uid, gid, comm accessorsinclude/linux/bpf.h include/uapi/linux/bpf.h kernel/bpf/core.c +6 more+178 -140 replies
2/3bpf: allow networking programs to use bpf_trace_printk() for debugginginclude/linux/bpf.h kernel/bpf/core.c kernel/trace/bpf_trace.c +1 more+19 -80 replies
3/3bpf: let kprobe programs use bpf_get_smp_processor_id() helperkernel/trace/bpf_trace.c+2 -01 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchDaniel Borkmann
1/3
2/3
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/3] bpf: share helpers between tracing and networking

v1->v2: switched to init_user_ns from current_user_ns as suggested by Andy

Introduce new helpers to access 'struct task_struct'->pid, tgid, uid, gid, comm fields in tracing and networking.

Share bpf_trace_printk() and bpf_get_smp_processor_id() helpers between tracing and networking.

Alexei Starovoitov (3):
bpf: introduce current->pid, tgid, uid, gid, comm accessors
bpf: allow networking programs to use bpf_trace_printk() for
debugging
bpf: let kprobe programs use bpf_get_smp_processor_id() helper

 include/linux/bpf.h        |    4 +++
 include/uapi/linux/bpf.h   |   19 +++++++++++++
 kernel/bpf/core.c          |    7 +++++
 kernel/bpf/helpers.c       |   58 ++++++++++++++++++++++++++++++++++++++
 kernel/trace/bpf_trace.c   |   28 ++++++++++++------
 net/core/filter.c          |    8 ++++++
 samples/bpf/bpf_helpers.h  |    6 ++++
 samples/bpf/tracex2_kern.c |   24 ++++++++++++----
 samples/bpf/tracex2_user.c |   67 ++++++++++++++++++++++++++++++++++++++------
 9 files changed, 199 insertions(+), 22 deletions(-)
Signature · 1 line
1.7.9.5