该项目从 https://github.com/iovisor/bcc.git 镜像。 Pull mirroring failed .
由于尝试失败次数过多,仓库镜像已暂停,可以由项目维护者或所有者恢复。
上次成功更新 此分支已与上游分叉。
  1. 12 4月, 2022 1 次提交
  2. 07 4月, 2022 3 次提交
  3. 06 4月, 2022 4 次提交
  4. 31 3月, 2022 2 次提交
  5. 28 3月, 2022 3 次提交
  6. 25 3月, 2022 1 次提交
  7. 24 3月, 2022 3 次提交
  8. 23 3月, 2022 1 次提交
    • Connor O'Brien's avatar
      libbpf-tools: improve check for fentry program support · 3787a0d2
      Connor O'Brien 创作于
      
      On architectures that lack support for fentry programs, tools should
      fall back to using kprobes even if the kernel version is new enough to
      include BPF_TRACE_FENTRY, but fentry_exists() cannot currently detect
      this case.
      
      Instead of searching for BPF_TRACE_FENTRY, verify that attaching a
      BPF_TRACE_FENTRY program can actually succeed. Rename fentry_exists to
      fentry_can_attach to reflect this change.
      
      Signed-off-by: default avatarConnor O'Brien <connoro@google.com>
      Change-Id: I5ad0341cb060c7a4a2ee17245337170963dfefad
      3787a0d2
  9. 22 3月, 2022 1 次提交
  10. 21 3月, 2022 2 次提交
  11. 20 3月, 2022 1 次提交
  12. 17 3月, 2022 2 次提交
  13. 16 3月, 2022 4 次提交
    • Dave Marchevsky's avatar
      usdt: support xmm registers as args for x64 · 6dac27d9
      Dave Marchevsky 创作于
      Support for using xmm registers for USDT args was added to systemtap in
      early 2021 (commit 04c99d0d0267f574fa60044c96933b0dd3846aa1 added xmm0-7
      and eaa15b047688175a94e3ae796529785a3a0af208 added xmm8-15). As a result
      these registers are showing up in probe descriptors on Fedora.
      
      pthread_start probe description on Ubuntu 20.04:
      ```
        stapsdt              0x00000052       NT_STAPSDT (SystemTap probe descriptors)
          Provider: libpthread
          Name: pthread_start
          Location: 0x00000000000095e9, Base: 0x000000000001922c, Semaphore: 0x0000000000000000
          Arguments: 8@%rax 8@1600(%rax) 8@1608(%rax)
      ```
      
      And in the Fedora test container:
      ```
      
      ```
        stapsdt              0x00000053       NT_STAPSDT (SystemTap probe descriptors)
          Provider: libpthread
          Name: pthread_start
          Location: 0x0000000000009280, Base: 0x0000000000016cbc, Semaphore: 0x0000000000000000
          Arguments: 8@%xmm0 8@1600(%rax) 8@1608(%rax)
      ```
      
      bcc doesn't recognize these registers so it's unable to generate code to fetch arguments which use these registers for storage. Add support for XMM0-15
      
      .
      
      This should fix `lib/uthreads.py` test, which uses `pthread_start` and therefore fails to generate program on Fedora.
      
      Signed-off-by: default avatarDave Marchevsky <davemarchevsky@fb.com>
      6dac27d9
    • Jerome Marchand's avatar
      libbpf-tools: Allow to use different cflags for bpf targets · c353d172
      Jerome Marchand 创作于
      commit 531b698c ("libbpf-tools: Enable compilation warnings for
      BPF programs") applies CFLAGS to all targets. However, some of the c
      flags typically used by distribution are not available to the bpf
      target. Add a new BPFCFLAGS macro to take care of that.
      
      Fixes the following compilation error on fedora:
      
        BPF      bashreadline.bpf.o
      clang-13: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
      clang-13: warning: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' [-Wunused-command-line-argument]
      clang-13: warning: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' [-Wunused-command-line-argument]
      clang-13: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]
      error: option 'cf-protection=return' cannot be specified on this target
      error: option 'cf-protection=branch' cannot be specified on this target
      2 errors generated.
      c353d172
    • xingfeng2510's avatar
      tools: Fix bytes<->str mixing in python3 · 55dcd2ee
      xingfeng2510 创作于
      55dcd2ee
    • Hengqi Chen's avatar
      bcc: Get rid of deprecated libbpf API btf__get_map_kv_tids() · b2e363d1
      Hengqi Chen 创作于
      
      btf__get_map_kv_tids() is deprecated and causes annoying compilation warnings.
      Reimplement it in BCC.
      
      Signed-off-by: default avatarHengqi Chen <chenhengqi@outlook.com>
      b2e363d1
  14. 13 3月, 2022 2 次提交
  15. 12 3月, 2022 3 次提交
    • Yonghong Song's avatar
      Fix a llvm compilation bug · b022144c
      Yonghong Song 创作于
      llvm upstream patch https://reviews.llvm.org/D118652
      
      
      did some header file cleanup and this breaks bcc with llvm15
      with the following compilation error:
      
        /.../src/cc/bpf_module.cc: In member function ‘void ebpf::BPFModule::dump_ir(llvm::Module&)’:
        /.../src/cc/bpf_module.cc:231:39: error: no matching function for call to ‘llvm::legacy::PassManager::add(llvm::Module Pass*)’
         PM.add(createPrintModulePass(errs()));
                                             ^
        In file included from /.../src/cc/bpf_module.cc:25:
        /.../include/llvm/IR/LegacyPassManager.h:58:8: note: candidate: ‘virtual void llvm::legacy::PassManager::add(llvm::Pass*)’
           void add(Pass *P) override;
                ^~~
        /.../include/llvm/IR/LegacyPassManager.h:58:8: note:   no known conversion for argument 1 from ‘llvm::ModulePass*’ to ‘llvm::Pass*’
      
      Adding the include path "llvm/Pass.h" in bpf_module.cc fixed the issue.
      
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      b022144c
    • Hengqi Chen's avatar
      libbpf-tools: Fix cachestat with kernel 5.15 · 194e6908
      Hengqi Chen 创作于
      
      The tool cachestat is broken on kernel 5.15 due to kernel function
      renaming. Fix the tool by detecting symbol existence. See #3687 and
       #3692.
      
      Signed-off-by: default avatarHengqi Chen <chenhengqi@outlook.com>
      194e6908
    • xingfeng2510's avatar
      libbpf-tools: Fix typos in softirqs.c · 2f4f22c5
      xingfeng2510 创作于
      2f4f22c5
  16. 10 3月, 2022 1 次提交
  17. 07 3月, 2022 2 次提交
  18. 06 3月, 2022 1 次提交
  19. 04 3月, 2022 3 次提交