[PATCH bpf-next 00/11] bpf: random unpopular userspace fixes (32 bit et al.)

Alexander Lobakin posted 11 patches 4 years ago
include/linux/perf_event.h              |  2 ++
kernel/bpf/syscall.c                    |  4 +++-
samples/bpf/Makefile                    |  7 ++++---
samples/bpf/cookie_uid_helper_example.c | 12 ++++++------
samples/bpf/lathist_kern.c              |  2 +-
samples/bpf/lwt_len_hist_kern.c         |  2 +-
samples/bpf/lwt_len_hist_user.c         |  4 ++--
samples/bpf/task_fd_query_user.c        |  2 +-
samples/bpf/test_lru_dist.c             |  3 ++-
samples/bpf/tracex2_kern.c              |  2 +-
samples/bpf/xdpsock_user.c              |  5 +++--
tools/bpf/bpftool/tracelog.c            |  2 +-
12 files changed, 27 insertions(+), 20 deletions(-)
[PATCH bpf-next 00/11] bpf: random unpopular userspace fixes (32 bit et al.)
Posted by Alexander Lobakin 4 years ago
This mostly issues the cross build (1) errors for 32 bit (2)
MIPS (3) with minimal configuration (4) on Musl (5). The majority
of them aren't yesterday's, so it is a "who does need it outside
of x86_64 or ARM64?" moment again.
Trivial stuff in general, not counting the bpf_cookie build fix.

Alexander Lobakin (11):
  bpf, perf: fix bpftool compilation with !CONFIG_PERF_EVENTS
  bpf: always emit struct bpf_perf_link BTF
  tools, bpf: fix bpftool build with !CONFIG_BPF_EVENTS
  samples: bpf: add 'asm/mach-generic' include path for every MIPS
  samples: bpf: use host bpftool to generate vmlinux.h, not target
  tools, bpf: fix fcntl.h include in bpftool
  samples: bpf: fix uin64_t format literals
  samples: bpf: fix shifting unsigned long by 32 positions
  samples: bpf: fix include order for non-Glibc environments
  samples: bpf: fix -Wsequence-point
  samples: bpf: xdpsock: fix -Wmaybe-uninitialized

 include/linux/perf_event.h              |  2 ++
 kernel/bpf/syscall.c                    |  4 +++-
 samples/bpf/Makefile                    |  7 ++++---
 samples/bpf/cookie_uid_helper_example.c | 12 ++++++------
 samples/bpf/lathist_kern.c              |  2 +-
 samples/bpf/lwt_len_hist_kern.c         |  2 +-
 samples/bpf/lwt_len_hist_user.c         |  4 ++--
 samples/bpf/task_fd_query_user.c        |  2 +-
 samples/bpf/test_lru_dist.c             |  3 ++-
 samples/bpf/tracex2_kern.c              |  2 +-
 samples/bpf/xdpsock_user.c              |  5 +++--
 tools/bpf/bpftool/tracelog.c            |  2 +-
 12 files changed, 27 insertions(+), 20 deletions(-)

--
2.35.2
Re: [PATCH bpf-next 00/11] bpf: random unpopular userspace fixes (32 bit et al.)
Posted by Andrii Nakryiko 4 years ago
On Thu, Apr 14, 2022 at 3:44 PM Alexander Lobakin <alobakin@pm.me> wrote:
>
> This mostly issues the cross build (1) errors for 32 bit (2)
> MIPS (3) with minimal configuration (4) on Musl (5). The majority
> of them aren't yesterday's, so it is a "who does need it outside
> of x86_64 or ARM64?" moment again.
> Trivial stuff in general, not counting the bpf_cookie build fix.
>
> Alexander Lobakin (11):
>   bpf, perf: fix bpftool compilation with !CONFIG_PERF_EVENTS
>   bpf: always emit struct bpf_perf_link BTF
>   tools, bpf: fix bpftool build with !CONFIG_BPF_EVENTS
>   samples: bpf: add 'asm/mach-generic' include path for every MIPS
>   samples: bpf: use host bpftool to generate vmlinux.h, not target
>   tools, bpf: fix fcntl.h include in bpftool
>   samples: bpf: fix uin64_t format literals
>   samples: bpf: fix shifting unsigned long by 32 positions
>   samples: bpf: fix include order for non-Glibc environments
>   samples: bpf: fix -Wsequence-point
>   samples: bpf: xdpsock: fix -Wmaybe-uninitialized
>

For consistency with majority of other commits, can you please use
"samples/bpf: " prefix for samples/bpf changes and "bpftool: " for
bpftool's ones? Thanks!

>  include/linux/perf_event.h              |  2 ++
>  kernel/bpf/syscall.c                    |  4 +++-
>  samples/bpf/Makefile                    |  7 ++++---
>  samples/bpf/cookie_uid_helper_example.c | 12 ++++++------
>  samples/bpf/lathist_kern.c              |  2 +-
>  samples/bpf/lwt_len_hist_kern.c         |  2 +-
>  samples/bpf/lwt_len_hist_user.c         |  4 ++--
>  samples/bpf/task_fd_query_user.c        |  2 +-
>  samples/bpf/test_lru_dist.c             |  3 ++-
>  samples/bpf/tracex2_kern.c              |  2 +-
>  samples/bpf/xdpsock_user.c              |  5 +++--
>  tools/bpf/bpftool/tracelog.c            |  2 +-
>  12 files changed, 27 insertions(+), 20 deletions(-)
>
> --
> 2.35.2
>
>