Files
DroidDeck/tools/venus/watch-maps.sh
T
The412BannerandDersim Abbas 9035dd1dc2 Mali (Venus): David Cimo's Venus route sources and recipes
From DavidCimo/droiddeck-mali, branch mali-venus @ 4f838891 (prototype 13; his 12 commits on top
of DroidDeck 0.3.1, GPL-3.0), by David Cimo:
- tools/venus: Mesa Venus vtest patch (incl. the per-queue submit_mutex fix and the cached-memory
  frame readback), virglrenderer Android patch, the Mali compatibility layer (the six features
  DXVK needs: fill modes, multi-viewport, robustness2, clip/cull distance, BC1-BC7) and his tools.
- tools/linuxfs/preload/venus.c: keeps Zink's kopper under Venus.
- tools/gamescope/patches/0127 (his 0114): shm buffers uploaded on every commit.
- docs/development/mali-venus.md: his design notes.
- tools/venus/ci-build.sh and build-venus.yml: his build recipes as one CI job that packs the
  component (vtest server, ICD, layer) as venus.tzst for the apk.

Co-authored-by: Dersim Abbas <derabb0620@gmail.com>
2026-10-12 23:41:52 -04:00

20 lines
945 B
Bash

#!/system/bin/sh
# Keeps the memory map of a running game process in the app's cache directory, so a crash address
# in Wine's log (handle_syscall_fault pc=...) can be matched to a library afterwards.
# On the phone, as the app (from Git Bash, with MSYS_NO_PATHCONV=1):
# adb push tools/venus/watch-maps.sh /data/local/tmp/
# adb shell "run-as com.droiddeck.launcher sh /data/local/tmp/watch-maps.sh 'Hollow Knight Silksong.exe'"
# Runs 15 minutes. Then: adb exec-out "run-as com.droiddeck.launcher cat cache/game-maps.txt" > maps.txt
name=${1:?process name, as ps shows it}
cd /data/user/0/com.droiddeck.launcher || exit 1
rm -f cache/game-maps.txt
i=0
while [ $i -lt 900 ]; do
p=$(ps -A -o PID,NAME | grep -F "$name" | grep -v Crash | head -1 | awk '{print $1}')
if [ -n "$p" ]; then
cat /proc/$p/maps > cache/game-maps.tmp 2>/dev/null && mv cache/game-maps.tmp cache/game-maps.txt
fi
sleep 1
i=$((i + 1))
done