1. 15 5月, 2018 3 次提交
    • D
      Merge branch 'bpf-stackmap-nmi' · 1772be37
      Daniel Borkmann 提交于
      Song Liu says:
      ====================
      Changes v2 -> v3:
        Improve syntax based on suggestion by Tobin C. Harding.
      
      Changes v1 -> v2:
        1. Rename some variables to (hopefully) reduce confusion;
        2. Check irq_work status with IRQ_WORK_BUSY (instead of work->sem);
        3. In Kconfig, let BPF_SYSCALL select IRQ_WORK;
        4. Add static to DEFINE_PER_CPU();
         5. Remove pr_info() in stack_map_init().
      ====================
      Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
      1772be37
    • S
      bpf: add selftest for stackmap with build_id in NMI context · 13790d1c
      Song Liu 提交于
      This new test captures stackmap with build_id with hardware event
      PERF_COUNT_HW_CPU_CYCLES.
      
      Because we only support one ips-to-build_id lookup per cpu in NMI
      context, stack_amap will not be able to do the lookup in this test.
      Therefore, we didn't do compare_stack_ips(), as it will alwasy fail.
      
      urandom_read.c is extended to run configurable cycles so that it can be
      caught by the perf event.
      Signed-off-by: NSong Liu <songliubraving@fb.com>
      Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
      13790d1c
    • S
      bpf: enable stackmap with build_id in nmi context · bae77c5e
      Song Liu 提交于
      Currently, we cannot parse build_id in nmi context because of
      up_read(&current->mm->mmap_sem), this makes stackmap with build_id
      less useful. This patch enables parsing build_id in nmi by putting
      the up_read() call in irq_work. To avoid memory allocation in nmi
      context, we use per cpu variable for the irq_work. As a result, only
      one irq_work per cpu is allowed. If the irq_work is in-use, we
      fallback to only report ips.
      
      Cc: Alexei Starovoitov <ast@kernel.org>
      Cc: Daniel Borkmann <daniel@iogearbox.net>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Signed-off-by: NSong Liu <songliubraving@fb.com>
      Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
      bae77c5e
  2. 11 5月, 2018 21 次提交
  3. 10 5月, 2018 6 次提交
  4. 09 5月, 2018 9 次提交
  5. 08 5月, 2018 1 次提交
    • D
      Merge branch 'bnxt_en-Fixes-for-net-next' · 8d42eada
      David S. Miller 提交于
      Michael Chan says:
      
      ====================
      bnxt_en: Fixes for net-next.
      
      This series includes a bug fix for a regression in firmware message polling
      introduced recently on net-next.  There are 3 additional minor fixes for
      unsupported link speed checking, VF MAC address handling, and setting
      PHY eeprom length.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8d42eada