OSDN Git Service

add the support of multiple context tracing
authorpeng.chen <peng.c.chen@intel.com>
Wed, 11 May 2016 07:03:26 +0000 (15:03 +0800)
committerSean V Kelley <seanvk@ashland-svkelley.jf.intel.com>
Fri, 13 May 2016 16:51:16 +0000 (09:51 -0700)
commitcfed3696b6eff33f7bab16c91a61738ae52b34d0
tree7fab2e8b221445531eddde352a28f82c2a29dffe
parent1251f59ae8ec6a4b93f40f5052b3ebbe94fc2e50
add the support of multiple context tracing

Libva has a limited tracing function before. If more than one context is created
in one instance, then this tracing can't work and output wrong log messages.
This patch fixes this problem. Tracing is possible while multiple contexts are
being used.

Each log file name is suffixed by thread id. This file has all log message from
this thread. Each surface or codedbuf dump file name is suffixed by context id.
This file has all surface or codedbuf data of this context.

Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
Tested-by: Daniel Charles <daniel.charles@intel.com>
va/va.c
va/va_trace.c
va/va_trace.h