aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_hrtimer.c
Commit message (Collapse)AuthorAge
* trace-cmd/pevent: Remove passing of cpu to pevent prasing functionsSteven Rostedt2009-12-18
| | | | | | | Now that the struct record holds the cpu information, there's no need to pass the cpu number to the pevent parsing routines. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-cmd: Pass in record to pevent functionsSteven Rostedt2009-12-18
| | | | | | | | | | Instead of passing in the data, size and timestamp to the pevent parsing routines, pass in the record itself. This allows the pevent parsing routines to have a bit more control and facilitates the need of future work where we need to know more about the record in the parser. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-cmd: Rename struct event to struct event_formatSteven Rostedt2009-12-17
| | | | | | | | Calling the event format parser "struct event" may lead to confusion about if the struct actually represents an instance of an event instead of what it really is: a format descriptor. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* Add handler to pevent functionsSteven Rostedt2009-12-04
| | | | | | | | | Currently pevent uses global variables to store the event types. This will eventually bite us since we may someday want to be able to read multiple files with different formats. This patch adds a handle to pevent, to keep it encapsulated. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* A callback plugin may need to know the timestamp it happened onSteven Rostedt2009-11-26
| | | | | | | | | Callbacks in plugins may need to know what the timestamp was when the trace was occurred. This patch gives the callback its timestamp in nanoseconds. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* A callback plugin may need to know what cpu it is onSteven Rostedt2009-11-26
| | | | | | | Callbacks in plugins may need to know what cpu the trace was recorded on. This patch gives the callback the cpu it is on. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* correct and simplify hrtimer pluginJohannes Berg2009-11-25
| | | | | | | | | | | The current hrtimer plugin code is broken wrt. the return values, but it can now ignore the trace_seq_* return values completely and focus on parsing the data. Also, the handler API should return 0 (all OK) or negative numbers on errors. Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
* hrtimer plugin: use new field infrastructureJohannes Berg2009-11-25
| | | | | | | | This should make the plugin able to read data from both 32 and 64 bit platforms regardless of the machine it is running on. Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
* hrtimer_plugin: handle name "timer"Johannes Berg2009-11-25
| | | | | | | On my machine the field is called just "timer", not "hrtimer", so handle that (silently). Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
* rename test_plugin to plugin_hrtimer.soJohannes Berg2009-11-25
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>