Skip to content

Commit

Permalink
Merge pull request #487 from GorilaMond/develop
Browse files Browse the repository at this point in the history
修复了内核uprobe绑定接口不一致的问题,使libbpf代码测试通过
  • Loading branch information
chenamy2017 authored Aug 11, 2023
2 parents baffecb + be5f1d4 commit 4cfcad5
Show file tree
Hide file tree
Showing 16 changed files with 2,330 additions and 276 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ebpf_stack_analyser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,27 @@ on:


jobs:
libbpf-build-and-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt update
sudo apt install clang libelf1 libelf-dev zlib1g-dev
sudo apt install libbpf-dev
sudo apt install linux-tools-5.19.0-46-generic
sudo apt install linux-cloud-tools-5.19.0-46-generic
sudo apt install libc6-dev-i386
sudo cp eBPF_Supermarket/Stack_Analyser/FlameGraph/* /usr/bin/
- name: Run
run: |
cd eBPF_Supermarket/Stack_Analyser/libbpf
sudo make
sudo ./stack_analyzer -p 1 -T 5
bcc-project-build-and-test:
runs-on: ubuntu-22.04
steps:
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
[submodule "eBPF_Supermarket/Network_Subsystem/libbpf-bootstrap"]
path = eBPF_Supermarket/Network_Subsystem/libbpf-bootstrap
url = https://github.com/libbpf/libbpf-bootstrap
[submodule "eBPF_Supermarket/Stack_Analyser/FlameGraph"]
path = eBPF_Supermarket/Stack_Analyser/FlameGraph
url = https://github.com/brendangregg/FlameGraph.git
[submodule "eBPF_Supermarket/XDP_Res-Application/tools/lib/libbpf"]
path = eBPF_Supermarket/XDP_Res-Application/tools/lib/libbpf
url = https://github.com/libbpf/libbpf.git
Expand Down
1 change: 0 additions & 1 deletion eBPF_Supermarket/Stack_Analyser/FlameGraph
Submodule FlameGraph deleted from d9fcc2
Loading

0 comments on commit 4cfcad5

Please sign in to comment.