Commit 58eca41e authored by Marcin Ślusarz's avatar Marcin Ślusarz
Browse files

Update example command and link to mmt sources.

parent 23cf99ce
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment