Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - "Resource busy" error when try to collect tracelog: (3 Items)
   
"Resource busy" error when try to collect tracelog  
I am trying to collect use tracelogger with following arguments and it giving error:"tracelogger: tracelog_acquire : 
Resource busy"

#tracelogger -r -k 3072 -w -v -s600

Any suggestions?
Re: "Resource busy" error when try to collect tracelog  
Hello all,
Is there nobody who can tell why the message 
# tracelogger: tracelog_acquire: Resource busy #
is coming when trying to start the trace logger.using the command
# tracelogger -d1 -n 10 -f /root/data/all_classes.kev #

I suspect that a previous attempt to start the tracelogger failed but the access to the file (specified with -f) was not
 properly terminated.

Is there anyone who can confirm the above and / or suggest a way to solve this without having to restart the whole 
system?
Is there a way to terminate the  tracelog_acquire session?

Regards
OZ
Re: "Resource busy" error when try to collect tracelog  
Is there another instance of tracelogger running? If so, you can try slaying it.

Another possibility is that an application called TraceEvent(_NTO_TRACE_START) before you tried to start tracelogger. 
Here's something that we recently added to the documentation:

If an application has called TraceEvent(_NTO_TRACE_START), and you then try to start tracelogger, tracelogger might fail
 with a “resource busy” message. To help avoid this:

-  Start tracelogger before your application issues a _NTO_TRACE_START or _NTO_TRACE_STARTNOSTATE command.

-  Don't leave tracing on indefinitely; be sure to issue a _NTO_TRACE_STOP after each _NTO_TRACE_START or 
_NTO_TRACE_STARTNOSTATE command.