Using Intel Media Server Studio for Linux tracer

ID 672970
Updated 10/2/2015
Version Latest



The tracer utility provides a log of Intel® Media Server Studio API calls and parameters by placing a shim between the main libmfx library and the application.  It is a useful debugging tool.

To enable it, copy the original library to a new name and copy the tracer shim over the original library.  This means that the shim will be executed instead.  Run these steps as root

# cd  /opt/intel/mediasdk/lib64
# cp
# cp ../tools/tracer/

Then configure the tracer library.  Run these steps as the user who will run the app to be traced.

$ cd /opt/intel/mediasdk/tools/tracer
$ ./mfx-tracer-config core.type file core.file ~/mfxtracer.log

The last step is where it all comes together.  Add a line to the ~/.mfxtracer file to point the shim to the real library:

$ cat ~/.mfxtracer 
  edit = 1
  file = /home/user/mfxtracer.log
  type = file
  lib  = /opt/intel/mediasdk/lib64/ 

Now when you run a Media Server Studio application you will see a logfile with the application process #.

$ ls mfxtracer_*.log

To return to normal operation and disable tracing, copy the "REAL" library back to the original name.

#cd /opt/intel/mediasdk/lib64
# cp
cp: overwrite ‘’? y