-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: use perf probes to trace assembly calls
- Loading branch information
1 parent
d399d3e
commit 3857a22
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# list all the assembly routines we can put probes on related to itx.rs, etc. | ||
# perf probe -x target/release/dav1d --funcs=dav1d_inv_txfm_add_* > rav1d_inv_txfm_add.list.txt | ||
|
||
# count number of assembly routines | ||
# perf probe -x target/release/dav1d --funcs=dav1d_inv_txfm_add_* | wc -l | ||
|
||
# build dav1d release mode without trimming unused assembly routines | ||
# meson build --buildtype release -Dtrim_dsp=false | ||
# ninja -C build | ||
|
||
# perf probe -x build/src/libdav1d.so.6.8.0 --funcs=dav1d_inv_txfm_add_* > dav1d_inv_txfm_add.list.txt | ||
# perf probe -x build/src/libdav1d.so.6.8.0 --funcs=dav1d_inv_txfm_add_* | wc -l | ||
|
||
# FINDING: confirmed that rav1d/main has the same itx asm routines as the dav1d binary | ||
|
||
perf probe -x target/release/dav1d dav1d_inv_txfm_add_adst_adst_4x8_8bpc_avx2 | ||
|
||
perf record -e probe:dav1d_inv_txfm_add_adst_adst_4x8_8bpc_avx2 | ||
|
||
perf record -e probe:dav1d_inv_txfm_add_adst_adst_4x8_8bpc_avx2 target/debug/dav1d |