Merge branch 'linuxkerneltravel:develop' into develop #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Stack_Analyser | |
on: | |
push: | |
branches: | |
- "*" | |
paths: | |
- 'eBPF_Supermarket/Stack_Analyser/**' | |
- '.github/workflows/ebpf_stack_analyser.yml' | |
pull_request: | |
branches: | |
- "*" | |
paths: | |
- 'eBPF_Supermarket/Stack_Analyser/**' | |
- '.github/workflows/ebpf_stack_analyser.yml' | |
jobs: | |
Stack_Analyser-build-and-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install native lib dependencies | |
run: | | |
git submodule update --init --recursive | |
sudo apt install clang libelf1 libelf-dev zlib1g-dev | |
- name: Run app with native lib | |
run: | | |
cd eBPF_Supermarket/Stack_Analyser | |
make | |
sudo ./stack_analyzer on_cpu off_cpu memleak io readahead llc_stat probe vfs_open -d 5 | |
sudo ./stack_analyzer probe p::vfs_open -d 5 | |
sudo ./stack_analyzer probe t:sched:sched_switch -d 5 | |
gcc -o ./testdir/usdt_pthread ./testdir/usdt_pthread.c | |
sudo ./stack_analyzer probe u:pthread:pthread_create -c "./testdir/usdt_pthread" -d 5 | |
gcc -o ./testdir/uprobe_malloc ./testdir/uprobe_malloc.c | |
sudo ./stack_analyzer probe c:malloc -c "./testdir/uprobe_malloc" -d 5 | |
magic-eyes-build-and-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install native lib dependencies | |
run: | | |
git submodule update --init --recursive | |
sudo apt install clang libelf1 libelf-dev zlib1g-dev | |
- name: Run app with native lib | |
run: | | |
mkdir -p MagicEyes/build | |
cd MagicEyes/build | |
cmake -DBUILD_STACK_ANALYZER=ON .. | |
make | |
sudo ./src/backend/system_diagnosis/stack_analyzer/stack_analyzer on_cpu off_cpu memleak io readahead llc_stat probe vfs_open -d 5 | |
sudo ./src/backend/system_diagnosis/stack_analyzer/stack_analyzer probe p::vfs_open -d 5 | |
sudo ./src/backend/system_diagnosis/stack_analyzer/stack_analyzer probe t:sched:sched_switch -d 5 | |
sudo ./src/backend/system_diagnosis/stack_analyzer/stack_analyzer probe c:malloc -c "../../eBPF_Supermarket/Stack_Analyser/testdir/uprobe_malloc" -d 5 | |
sudo ./src/backend/system_diagnosis/stack_analyzer/stack_analyzer probe u:pthread:pthread_create -c "../../eBPF_Supermarket/Stack_Analyser/testdir/usdt_pthread" -d 5 |