Skip to content
Snippets Groups Projects
  1. Apr 28, 2020
  2. Apr 23, 2020
  3. Apr 21, 2020
  4. Apr 20, 2020
    • Yonghong Song's avatar
      fix llvm 11 compilation issues · 45e63f2b
      Yonghong Song authored
      The llvm CreateCall used in bcc is deprecated in llvm 11:
        https://reviews.llvm.org/D76269
      The llvm CreateMemCpy is changed in llvm 11 as well:
        https://reviews.llvm.org/D71473
      
      This caused bcc compilation error.
      
        /home/yhs/work/bcc/src/cc/frontends/b/codegen_llvm.cc: In member function
           ‘ebpf::StatusTuple ebpf::cc::CodegenLLVM::emit_log(ebpf::cc::Method CallExprNode*)’:
        /home/yhs/work/bcc/src/cc/frontends/b/codegen_llvm.cc:691:39: error: no matching function for call to
           ‘llvm::IRBuilder<>::CreateCall(llvm::Value*&, std::vector<llvm::Value*, std::allocator<llvm::Value*> >&)’
           expr_ = B.CreateCall(printk_fn, args);
                                             ^
        ...
      
        /home/yhs/work/bcc/src/cc/frontends/b/codegen_llvm.cc: In member function
           ‘virtual ebpf::StatusTuple ebpf::cc::CodegenLLVM::visit_string_exp_node(ebpf::cc::StringExprNode*)’:
        /home/yhs/work/bcc/src/cc/frontends/b/codegen_llvm.cc:440:55: error: no matching function for call to
           ‘llvm::IRBuilder<>::CreateMemCpy(llvm:Value*&, int, llvm::Value*&, int, std::__cxx11::basic_string<char>::size_type)’
         B.CreateMemCpy(ptr, 1, global, 1, n->val_.size() + 1);
                                                             ^
        ...
      
      This patch fixed the compilation issue.
      45e63f2b
    • Itay Shakury's avatar
      Improve ubuntu installation description · d3359b29
      Itay Shakury authored
      d3359b29
  5. Apr 19, 2020
  6. Apr 17, 2020
  7. Apr 07, 2020
  8. Apr 06, 2020
  9. Apr 04, 2020
  10. Mar 29, 2020
  11. Mar 28, 2020
  12. Mar 23, 2020
    • Jerome Marchand's avatar
      tools: fix alignment of ipv6_key_t in tcptop · 6b8a8967
      Jerome Marchand authored
      Fixes the following error on aarch64:
      
      bpf: Failed to load program: Permission denied
      ; struct sock *sk = ctx->regs[0]; int copied = ctx->regs[1];
      0: (79) r8 = *(u64 *)(r1 +8)
      ...
      ; struct ipv6_key_t ipv6_key = {.pid = pid};
      79: (63) *(u32 *)(r10 -48) = r7
      ; struct ipv6_key_t ipv6_key = {.pid = pid};
      80: (7b) *(u64 *)(r10 +8) = r9
      invalid stack off=8 size=8
      processed 96 insns (limit 1000000) max_states_per_insn 0 total_states 7 peak_states 7 mark_read 4
      6b8a8967
    • Joey Freeland's avatar
  13. Mar 20, 2020
    • Alban Crequy's avatar
      opensnoop: fix --cgroupmap with kfunc · 510fc742
      Alban Crequy authored
      Commit c347fe6c ("Support kfunc in opensnoop.py") introduces an
      alternative probe on do_sys_open() with kfuncs instead of kprobes. This
      new implementation is used if the kernel supports it. But it removed the
      --cgroupmap filter added in commit b2aa29fa ("tools: cgroup
      filtering in execsnoop/opensnoop").
      
      This patch adds the --cgroupmap filter in the kfunc implementation.
      510fc742
Loading