• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

config/H21-Dec-2021-253157

dumps/H21-Dec-2021-4,2663,437

gui/H03-May-2022-2,0741,474

loggers/H03-May-2022-824413

tools/H21-Dec-2021-470307

tracer/H03-May-2022-1,402963

wrappers/H21-Dec-2021-4,4333,423

README.mdH A D21-Dec-20211.7 KiB5743

libmfx.mapH A D21-Dec-20211.9 KiB9784

mfx-tracer-config.vcxprojH A D21-Dec-20217.6 KiB153153

mfx-tracer.defH A D21-Dec-20211.8 KiB7764

mfx-tracer.vcxprojH A D21-Dec-202111.4 KiB213213

README.md

1# Media SDK Tracer
2
3## Overview
4
5**Media SDK Tracer** is a tool which permits to dump logging information from the calls
6of the application to the Media SDK library. Trace log obtained from this tool is a
7recommended information to provide to Media SDK team on submitting questions and
8issues.
9
10## Installation
11
12Use the following sequence to generate config file for the tracer:
13
14Generate default config file:
15```
16# $INSTALLDIR/bin/mfx-tracer-config --default
17```
18Set API level coverage:
19```
20# $INSTALLDIR/bin/mfx-tracer-config core.level full
21```
22Set trace type:
23```
24# $INSTALLDIR/bin/mfx-tracer-config core.type file
25```
26Set log file:
27```
28# $INSTALLDIR/bin/mfx-tracer-config core.log ~/mfxtracer.log
29```
30
31Following this procedure you will generate a configuration file called `~/.mfxtracer` and set the tracer to dump
32logs to `~/mfxtracer_<PID>.log` files. You may adjust your configuration with **mfx-tracer-config** tool.
33Run `mfx-tracer-config -h` to get full list of supported options.
34
35## Running
36
37For use the tracer, run the application with **LD_PRELOAD**:
38
39```
40LD_PRELOAD=libmfx-tracer.so.1.34 <./some_application>
41```
42
43Make sure that the tracer library is added to the search path:
44
45```
46export LD_LIBRARY_PATH=$INSTALLDIR/lib:$LD_LIBRARY_PATH
47```
48
49After each run of some Media SDK based application you should see traces in the configured log files.
50Note that the tracer library reads settings from `~/.mfxtracer` located in the home directory of a current user.
51If you need to run application with 'sudo', copy `~/.mfxtracer` file to a home directory of the root user.
52
53## Known issues & limitations
54
55- This is prototype release of the tracer - not all functionality can be available
56- Syslog logger is not supported
57- Some API functions may not be covered by the tracing