Skip to content

Move bpf_printk to bpf_helpers.h

Michal Rostecki bpf linux-kselftest lkml netdev xdp-newbies 3 versions – Applied

Status from this message: Applied. Thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/22 patches 2 repliesApplied
  2. v2 posting 1/22 patches 0 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- If HBM_DEBUG is not defined in hbm sample, undefine bpf_printk and set an empty macro for it.

Patches in v2 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/2selftests: bpf: Move bpf_printk to bpf_helpers.htools/testing/selftests/bpf/bpf_helpers.h tools/testing/selftests/bpf/progs/sockmap_parse_prog.c tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c +4 more+8 -420 replies
2/2samples: bpf: Do not define bpf_printk macrosamples/bpf/hbm_kern.h samples/bpf/tcp_basertt_kern.c samples/bpf/tcp_bufs_kern.c +7 more+2 -720 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchYonghong Song
SeriesA-b
1/2
2/2

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 bpf-next v2 RESEND 0/2] Move bpf_printk to bpf_helpers.h

This series of patches move the commonly used bpf_printk macro to bpf_helpers.h which is already included in all BPF programs which defined that macro on their own.

v1->v2:
- If HBM_DEBUG is not defined in hbm sample, undefine bpf_printk and set an empty macro for it.

Michal Rostecki (2):
selftests: bpf: Move bpf_printk to bpf_helpers.h
samples: bpf: Do not define bpf_printk macro

 samples/bpf/hbm_kern.h                                | 11 ++---------
 samples/bpf/tcp_basertt_kern.c                        |  7 -------
 samples/bpf/tcp_bufs_kern.c                           |  7 -------
 samples/bpf/tcp_clamp_kern.c                          |  7 -------
 samples/bpf/tcp_cong_kern.c                           |  7 -------
 samples/bpf/tcp_iw_kern.c                             |  7 -------
 samples/bpf/tcp_rwnd_kern.c                           |  7 -------
 samples/bpf/tcp_synrto_kern.c                         |  7 -------
 samples/bpf/tcp_tos_reflect_kern.c                    |  7 -------
 samples/bpf/xdp_sample_pkts_kern.c                    |  7 -------
 tools/testing/selftests/bpf/bpf_helpers.h             |  8 ++++++++
 .../testing/selftests/bpf/progs/sockmap_parse_prog.c  |  7 -------
 .../selftests/bpf/progs/sockmap_tcp_msg_prog.c        |  7 -------
 .../selftests/bpf/progs/sockmap_verdict_prog.c        |  7 -------
 .../testing/selftests/bpf/progs/test_lwt_seg6local.c  |  7 -------
 tools/testing/selftests/bpf/progs/test_xdp_noinline.c |  7 -------
 tools/testing/selftests/bpf/test_sockmap_kern.h       |  7 -------
 17 files changed, 10 insertions(+), 114 deletions(-)
Signature · 1 line
2.21.0