Messages in this thread | | | Subject | Re: collecting static data related to tracing | From | Johannes Berg <> | Date | Wed, 19 May 2010 10:15:31 +0200 |
| |
On Wed, 2010-05-19 at 09:28 +0200, Frederic Weisbecker wrote:
> > Sounds good, although it does require that I tell people who want to > > record to also install the recording plugin, but that should be > > manageable :) I can just dig out the data from the regular debugfs once > > I add files containing it.
> This is a place where events injection might be suitable perhaps. > Either kernel or user space event injection. > > kernel space injection would be a simple trace event declared that > have a callback called when it gets enabled. This callback would > inject any events it wants.
Indeed, that is a good point, and it would also allow us to handle hotplugging with the same event by sending it when a new device shows up, and additionally when it is enabled to dump the current state.
johannes
| |