Re: Problem in loading a python plugin for trace-cmd tool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 15, 2013 at 08:21:18AM +0200, Johannes Berg wrote:
> Hi,
> 
> > > I have written a plugin in python for parsing the tracing output of some 
> > > xhci events and i have placed it under the
> > > lib/trace-cmd/plugins directory. When i do "trace-cmd report", the 
> > > plugin is loaded successfully, the corresponding .pyc file is created 
> > > under the lib/trace-cmd/plugins directory and the tracing output is 
> > > displayed as expected.
> 
> That does seem like the correct place, and since it works for you ... :)
> 
> > > However, when Sarah follows the same steps, the plugin is not loaded, no 
> > > .pyc file is created and the printed output is the default.
> 
> Sarah, it sounds like you might not have the python plugin installed. I
> know of no distro, for example, that ships the python plugin today, so I
> run into this issue a lot. Or, if you did, you probably didn't have
> python-dev and/or swig installed when building (though I think if you
> have python-dev but not swig it actually errors out, but when you don't
> have python-dev it skips python.)

I installed trace-cmd after building it from the latest repo.  However,
I didn't have python-dev installed, so I think that's the problem.  I'll
work with Darren and get Xenia's instructions for installing her xhci
plugin updated once I figure out what's wrong.

Sarah Sharp
--
To unsubscribe from this list: send the line "unsubscribe linux-trace-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux