1. 15 Dec, 2017 12 commits
  2. 13 Dec, 2017 25 commits
  3. 12 Dec, 2017 3 commits
    • Eric Dumazet's avatar
      bpf: add schedule points to map alloc/free · 9147efcb
      Eric Dumazet authored
      While using large percpu maps, htab_map_alloc() can hold
      cpu for hundreds of ms.
      
      This patch adds cond_resched() calls to percpu alloc/free
      call sites, all running in process context.
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      9147efcb
    • Alexei Starovoitov's avatar
      Merge branch 'bpf-misc-fixes' · 9dbd2d94
      Alexei Starovoitov authored
      Daniel Borkmann says:
      
      ====================
      Couple of outstanding fixes for BPF tree: 1) fixes a perf RB
      corruption, 2) and 3) fixes a few build issues from the recent
      bpf_perf_event.h uapi corrections. Thanks!
      ====================
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      9dbd2d94
    • Daniel Borkmann's avatar
      bpf: fix broken BPF selftest build · 720f228e
      Daniel Borkmann authored
      At least on x86_64, the kernel's BPF selftests seemed to have stopped
      to build due to 618e165b ("selftests/bpf: sync kernel headers and
      introduce arch support in Makefile"):
      
        [...]
        In file included from test_verifier.c:29:0:
        ../../../include/uapi/linux/bpf_perf_event.h:11:32:
           fatal error: asm/bpf_perf_event.h: No such file or directory
         #include <asm/bpf_perf_event.h>
                                      ^
        compilation terminated.
        [...]
      
      While pulling in tools/arch/*/include/uapi/asm/bpf_perf_event.h seems
      to work fine, there's no automated fall-back logic right now that would
      do the same out of tools/include/uapi/asm-generic/bpf_perf_event.h. The
      usual convention today is to add a include/[uapi/]asm/ equivalent that
      would pull in the correct arch header or generic one as fall-back, all
      ifdef'ed based on compiler target definition. It's similarly done also
      in other cases such as tools/include/asm/barrier.h, thus adapt the same
      here.
      
      Fixes: 618e165b ("selftests/bpf: sync kernel headers and introduce arch support in Makefile")
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
      Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
      Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      720f228e