1. 12 Oct, 2019 7 commits
  2. 11 Oct, 2019 7 commits
  3. 10 Oct, 2019 4 commits
  4. 09 Oct, 2019 5 commits
  5. 08 Oct, 2019 14 commits
  6. 07 Oct, 2019 3 commits
    • Andrii Nakryiko's avatar
      selftests/bpf: Fix dependency ordering for attach_probe test · dcb5f400
      Andrii Nakryiko authored
      Current Makefile dependency chain is not strict enough and allows
      test_attach_probe.o to be built before test_progs's
      prog_test/attach_probe.o is built, which leads to assembler complaining
      about missing included binary.
      
      This patch is a minimal fix to fix this issue by enforcing that
      test_attach_probe.o (BPF object file) is built before
      prog_tests/attach_probe.c is attempted to be compiled.
      
      Fixes: 928ca75e ("selftests/bpf: switch tests to new bpf_object__open_{file, mem}() APIs")
      Signed-off-by: default avatarAndrii Nakryiko <andriin@fb.com>
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      Link: https://lore.kernel.org/bpf/20191007204149.1575990-1-andriin@fb.com
      dcb5f400
    • Alexei Starovoitov's avatar
      Merge branch 'autogen-bpf-helpers' · 05949f63
      Alexei Starovoitov authored
      Andrii Nakryiko says:
      
      ====================
      This patch set adds ability to auto-generate list of BPF helper definitions.
      It relies on existing scripts/bpf_helpers_doc.py and include/uapi/linux/bpf.h
      having a well-defined set of comments. bpf_helper_defs.h contains all BPF
      helper signatures which stay in sync with latest bpf.h UAPI. This
      auto-generated header is included from bpf_helpers.h, while all previously
      hand-written BPF helper definitions are simultaneously removed in patch #3.
      The end result is less manually maintained and redundant boilerplate code,
      while also more consistent and well-documented set of BPF helpers. Generated
      helper definitions are completely independent from a specific bpf.h on
      a target system, because it doesn't use BPF_FUNC_xxx enums.
      
      v3->v4:
      - instead of libbpf's Makefile, integrate with selftest/bpf's Makefile (Alexei);
      
      v2->v3:
      - delete bpf_helper_defs.h properly (Alexei);
      
      v1->v2:
      - add bpf_helper_defs.h to .gitignore and `make clean` (Alexei).
      ====================
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      05949f63
    • Andrii Nakryiko's avatar
      libbpf: auto-generate list of BPF helper definitions · 24f25763
      Andrii Nakryiko authored
      Get rid of list of BPF helpers in bpf_helpers.h (irony...) and
      auto-generate it into bpf_helpers_defs.h, which is now included from
      bpf_helpers.h.
      Suggested-by: default avatarAlexei Starovoitov <ast@fb.com>
      Signed-off-by: default avatarAndrii Nakryiko <andriin@fb.com>
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      24f25763