Merge pull request #772 from Super-Lzzx/develop #1
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 | |
gcc -o ./testdir/usdt_pthread ./testdir/usdt_pthread.c | |
sudo ./stack_analyzer on_cpu off_cpu memleak io readahead llc_stat probe u:pthread:pthread_create -c "./testdir/usdt_pthread" -t 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 u:pthread:pthread_create -c "../../eBPF_Supermarket/Stack_Analyser/testdir/usdt_pthread" -t 5 |