summaryrefslogtreecommitdiff
path: root/Valgrind-mmt.mdwn
diff options
context:
space:
mode:
authorMarcin Ślusarz <marcin.slusarz@gmail.com>2015-05-25 18:43:11 +0200
committerMarcin Ślusarz <marcin.slusarz@gmail.com>2015-05-25 18:43:11 +0200
commit58eca41e1c1bf4d42f8ad71147ced890f35a53dd (patch)
tree1f17ea19c9e3bc681b87a8f8306e4ce4752b250c /Valgrind-mmt.mdwn
parent23cf99ce2d9dac1f65249377fd8c363e393fd8f7 (diff)
Update example command and link to mmt sources.
Diffstat (limited to 'Valgrind-mmt.mdwn')
-rw-r--r--Valgrind-mmt.mdwn16
1 files changed, 8 insertions, 8 deletions
diff --git a/Valgrind-mmt.mdwn b/Valgrind-mmt.mdwn
index cf1ed12..47e7c52 100644
--- a/Valgrind-mmt.mdwn
+++ b/Valgrind-mmt.mdwn
@@ -3,9 +3,9 @@
<script type="text/javascript" src="/wiki/translate.js"></script>
-Valgrind-mmt is a [[Valgrind|http://valgrind.org/]] modification which allows tracing application accesses to mmaped memory (which is how userspace parts of graphics drivers communicate with hardware). It was created by Dave Airlie and then extended/fixed by others.
+[[https://github.com/envytools/valgrind|Valgrind-mmt]] is a [[Valgrind|http://valgrind.org/]] modification which allows tracing application accesses to mmaped memory (which is how userspace parts of graphics drivers communicate with hardware). It was created by Dave Airlie and then extended/fixed by others.
-Installation:
+Installation:
[[!format txt """
git clone https://github.com/envytools/valgrind.git
git clone https://github.com/envytools/VEX.git valgrind/VEX
@@ -19,7 +19,7 @@ make
make install
"""]]
-Update:
+Update:
[[!format txt """
cd valgrind
git pull
@@ -30,16 +30,16 @@ cd ..
Use:
[[!format txt """
-valgrind --tool=mmt --mmt-trace-file=/dev/nvidia0 --mmt-trace-file=/dev/nvidiactl --mmt-trace-nvidia-ioctls --log-file=file-bin.log glxgears
+valgrind --tool=mmt --mmt-trace-nvidia-ioctls --log-file=file-bin.log glxgears
"""]]
-Options:
+Options:
[[!format txt """
--mmt-trace-file=path trace loads and stores to memory mapped for this file (e.g. /dev/nvidia0) (you can pass this option multiple times)
--mmt-trace-all-files trace loads and stores to memory mapped for all files
---mmt-trace-nvidia-ioctls trace nvidia ioctls on /dev/nvidiactl
---mmt-trace-nouveau-ioctls trace nouveau ioctls on /dev/dri/cardX
---mmt-trace-fglrx-ioctls trace fglrx ioctls
+--mmt-trace-nvidia-ioctls trace nvidia ioctls on /dev/nvidia*, implies --mmt-trace-file on all /dev/nvidia* files
+--mmt-trace-nouveau-ioctls trace nouveau ioctls on /dev/dri/cardX, implies --mmt-trace-file on /dev/dri/cardX file connected to nouveau
+--mmt-trace-fglrx-ioctls trace fglrx ioctls, implies --mmt-trace-file on all /dev/ati/* files
--mmt-trace-all-opens trace all 'open' syscalls
--mmt-trace-marks send mmiotrace marks before and after ioctls
--mmt-trace-stdout-stderr trace writes to stdout and stderr