Messages in this thread | | | Date | Wed, 10 Jun 2009 11:21:07 -0400 (EDT) | From | Steven Rostedt <> | Subject | Re: [PATCH 00/11] [GIT PULL] more updates for the tag format |
| |
On Wed, 10 Jun 2009, Mathieu Desnoyers wrote: > > > > > > And then in the trace format, we could do: > > > > <data:gfp:field> > > > > And the 'data' will flag us to how to print the data. > > > > For userland, there could be a file in: > > > > /debug/tracing/events/data_types/gfp/format > > > > That will show that format. Yes we duplicate some of the code, but it > > it would solve these types of issues. > > > > It sounds a lot like the type tables LTTng is currently exporting > through specific channels. One for the list of IRQ handlers, one listing > softirqs, one for syscalls.... etc etc. The nice side of this approach > is that it permits to deal with dynamic events that modify the table > state while tracing is active, e.g. : loadling a module which adds an > IRQ handlers. > > This is planned to be used for enum description eventually.
Well, I wouldn't make it dependent on any class, just a generic type to add that any user could do. The types just need to be added before the events are registered.
-- Steve
| |