Skip to content

Commit c8a779b

Browse files
committed
Some more QBDI and SDE fixes
1 parent 58b2c44 commit c8a779b

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ jobs:
4747
run: |
4848
curl https://github.com/QBDI/QBDI/releases/download/v0.12.0/QBDI-0.12.0-windows-X86_64.exe -L > QBDI.exe
4949
./QBDI.exe
50+
mv "$(which qbdi-template-X86_64)/../QBDIWinPreloader.exe" .
51+
ls "$(which qbdi-template-X86_64)/.." -r
52+
cat "-DQBDI_DIR=$(which qbdi-template-X86_64)/../lib/cmake/QBDI"
53+
cmake -SQ . -B build "-DQBDI_DIR=$(which qbdi-template-X86_64)/../lib/cmake/QBDI"
5054
5155
- name: Build binary, example and QBDI
5256
working-directory: benchmarking-tool
@@ -58,24 +62,30 @@ jobs:
5862
bash build-qbdi.sh
5963
mv 'qbdi/build/${{ matrix.dynamic-library }}' .
6064
61-
- name: Move QBDIPreload (windows)
62-
if: ${{ matrix.os == 'windows-latest' }}
65+
- name: Investigate QBDI (linux)
66+
if: ${{ matrix.os == 'ubuntu-latest' }}
6367
run: |
64-
mv "$(which qbdi-template-X86_64)/../QBDIWinPreloader.exe" .
68+
getcap ${{ matrix.dynamic-library }}
69+
ls -l .
70+
chmod +x ${{ matrix.dynamic-library }}
71+
LD_BIND_NOW=1 LD_PRELOAD=${{ matrix.dynamic-library }} ./iterations 10
6572
66-
- name: Build and run iterations
73+
- name: Build iterations
6774
working-directory: benchmarking-tool
6875
shell: bash
6976
run: |
7077
cargo build --example iterations
7178
mv target/debug/examples/iterations${{ matrix.executable-extension }} .
7279
80+
- name: Run QBDI iterations
81+
working-directory: benchmarking-tool
82+
shell: bash
83+
run: |
7384
for i in {0..3}
7485
do
7586
i=$((10**i))
76-
7787
echo "::group::benchmark${{ matrix.executable-extension }} qbdi ./iterations${{ matrix.executable-extension }} $i"
78-
./benchmark${{ matrix.executable-extension }} qbdi --sort name ./iterations${{ matrix.executable-extension }} $i
88+
sudo ./benchmark${{ matrix.executable-extension }} qbdi --sort name ./iterations${{ matrix.executable-extension }} $i
7989
echo "::endgroup::"
8090
done
8191
@@ -86,6 +96,10 @@ jobs:
8696
environmentVariableName: SDE_PATH # default value is `SDE_PATH`
8797
sdeVersion: 9.58.0 # possible values: 9.58.0 (default), 9.33.0
8898

99+
- name: sde-path-to-github-path
100+
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' }}
101+
run: echo "$SDE_PATH" >> $GITHUB_PATH
102+
89103
- name: Run SDE (linux or windows)
90104
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' }}
91105
working-directory: benchmarking-tool

0 commit comments

Comments
 (0)