1. 15 Nov, 2019 6 commits
  2. 11 Nov, 2019 15 commits
  3. 09 Nov, 2019 2 commits
  4. 07 Nov, 2019 14 commits
  5. 06 Nov, 2019 2 commits
  6. 04 Nov, 2019 1 commit
    • Daniel Borkmann's avatar
      Merge branch 'bpf-libbpf-bitfield-size-relo' · f23c7ce3
      Daniel Borkmann authored
      Andrii Nakryiko says:
      
      ====================
      This patch set adds support for reading bitfields in a relocatable manner
      through a set of relocations emitted by Clang, corresponding libbpf support
      for those relocations, as well as abstracting details into
      BPF_CORE_READ_BITFIELD/BPF_CORE_READ_BITFIELD_PROBED macro.
      
      We also add support for capturing relocatable field size, so that BPF program
      code can adjust its logic to actual amount of data it needs to operate on,
      even if it changes between kernels. New convenience macro is added to
      bpf_core_read.h (bpf_core_field_size(), in the same family of macro as
      bpf_core_read() and bpf_core_field_exists()). Corresponding set of selftests
      are added to excercise this logic and validate correctness in a variety of
      scenarios.
      
      Some of the overly strict logic of matching fields is relaxed to support wider
      variety of scenarios. See patch #1 for that.
      
      Patch #1 removes few overly strict test cases.
      Patch #2 adds support for bitfield-related relocations.
      Patch #3 adds some further adjustments to support generic field size
      relocations and introduces bpf_core_field_size() macro.
      Patch #4 tests bitfield reading.
      Patch #5 tests field size relocations.
      
      v1 -> v2:
        - added direct memory read-based macro and tests for bitfield reads.
      ====================
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      f23c7ce3