aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
...
* kernelshark: Add "capture" featureSteven Rostedt2010-06-14
| | | | | | | | This is the start of code to allow kernelshark to be used to capture data. This patch also introduced threaded tasks in reading the trace-cmd output. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Add helper function trace_create_combo_box()Steven Rostedt2010-06-11
| | | | | | | | Add helper function trace_create_combo_box() and use it for in trace-filter.c. This will be used by other functions needing to make a label followed by a combo box. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-cmd: Add tracecmd_local_plugins()Steven Rostedt2010-06-11
| | | | | | | Add tracecmd_local_plugins() that returns a list of available tracer plugins. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-cmd/kernelshark/parse-events: Add const char to output functionsSteven Rostedt2010-06-11
| | | | | | Add const char *fmt to die, warning and pr_stat. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* parse-events: Add vpr_stat()Steven Rostedt2010-06-11
| | | | | | | Add a vpr_stat(const char *fmt, va_list ap) that can be overridden. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Use pevent instead of handle for filter dialogsSteven Rostedt2010-06-11
| | | | | | | | | | | | | | | The internal filter dialogs currently pass around the tracecmd_handle, but only uses the pevent to display the data. Pass pevent around instead. This also allows us to add: trace_filter_pevent_dialog() This function will display a event dialog with a pevent being passed to it instead of a tracecmd_input handle. Now we can pop up the events local to the system that are not related to any file. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Add trace_dialog_register_alt_warning()Steven Rostedt2010-06-11
| | | | | | | | Add trace_dialog_register_alt_warning() that will allow the tools to override the warning messages. To hide warnings from poping up, or to record them elsewhere, this allows to do so. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-cmd: Add tracecmd_local_events()Steven Rostedt2010-06-11
| | | | | | | | Add tracecmd_local_events() that returns an pevent that will consist of the events local to the machine. It reads the /debugfs/tracing/events directory to create them. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* parse-events: Make char parameters const in pevent_parse_event()Steven Rostedt2010-06-11
| | | | | | | The pevent_parse_event() function does not modify the parameters @buf or @sys. They should be made constant. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-cmd: Add way to retrieve a list of event systems or eventsSteven Rostedt2010-06-11
| | | | | | | | Add tracecmd_event_systems() and tracecmd_system_events() to retrieve the list of event systems or events under a system that is in the /debug/tracing/events/* directory. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* trace-cmd: Prevent latency tracer plugins from doing network tracingSteven Rostedt2010-06-11
| | | | | | | | | | The latency tracer plugins do not support network tracing. It crashes when an attempt to do a latency tracer plugin with the -N option. Simply prevent trace-cmd from performing a network trace with one of the latency tracer plugins and update the man pages. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* python: use referenced record for peek_eventJohannes Berg2010-06-11
| | | | | | | | | | | | The change back to returning unreferenced records from tracecmd_peek_data may have broken python applications using it, just like it would have broken C applications. In order to avoid issues with it, provide real python API for using it, using a new tracecmd_peek_data_ref() API function. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Update the HTML documentation to reflect the filter changesSteven Rostedt2010-06-10
| | | | | | | | Update the HTML kernelshark documentation to reflect the separation of the list and graph task filters as well as updating the fact that the event filters can now stay in sync. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Group list filters togetherSteven Rostedt2010-06-10
| | | | | | | | | Move the filters around so that the graph filters are all together, and the list filters are all together. This makes accessing the filters a bit easier when they are separate. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Fix seting of clear task menuSteven Rostedt2010-06-10
| | | | | | | | | The clear_task_menu was being updated by the set_menu_label() helper function. But that function expects a "comm" passed to it. The clear_task_menu may be updated when comm is NULL, and this would cause a strlen(comm) to crash the program. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* Merge branch 'kernelshark-devel' into trace-cmdSteven Rostedt2010-06-10
|\ | | | | | | | | | | | | Conflicts: Makefile Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark/parse-events: Add tests if event filters are sameSteven Rostedt2010-06-10
| | | | | | | | | | | | | | | | | | | | On load of event filters, if the list and graph filters are the same, then make them synced. On syncing of event filters, if they are already the same, do not ask which way to sync, just sync them and keep them synced. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Add tests if task filters are sameSteven Rostedt2010-06-10
| | | | | | | | | | | | | | | | | | On load of task filters, if they are the same, then make them synced. On syncing of task filters, if they are already the same, do not ask which way to sync, just sync them and keep them synced. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Fix the xml save/load to handle separate task filtersSteven Rostedt2010-06-10
| | | | | | | | | | | | | | Update the save/load of the filters to handle the change to make the List and Graph have separate task filters. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kerenlshark: Allow for list and graph event filters to by in syncSteven Rostedt2010-06-10
| | | | | | | | | | | | | | | | Update the event filters to be like the task filters where the list and graph event filters are in sync. The user can unsync them so that the list and graph event filters will be independent. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Add hide tasks filter to menu barSteven Rostedt2010-06-10
| | | | | | | | | | | | | | | | Now the menu bar has hide tasks that popups a task dialog to let the user choose what tasks to hide. Selecting tasks via the menu bar will enable the filter automatically. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Add list and graph task filter menuSteven Rostedt2010-06-10
| | | | | | | | | | | | | | | | | | | | Add a list and graph task filter menu to the menu bar. The tasks added to this filter are enabled by default. This also adds a nice feature that you can pick and choose tasks to filter from a dialog box. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * trace-graph: Call filter callback on update task filtersSteven Rostedt2010-06-09
| | | | | | | | | | | | When the task filters are updated, call the registered callback. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * trace-graph: Add trace_graph_refresh_filters()Steven Rostedt2010-06-09
| | | | | | | | | | | | | | Add the function trace_graph_refresh_filters that redraws the graph after the filters are updated. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * trace-graph: Allow update of task filters with same filterSteven Rostedt2010-06-09
| | | | | | | | | | | | | | | | Allow trace_graph_update_filters have the ginfo filters passed to it. This will give a way to let external users to refresh the graph filters. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Clean up CPU dialog codeSteven Rostedt2010-06-09
| | | | | | | | | | | | | | | | Use gtk_dialog_run() and examine the results instead of having to create a helper structure that is allocated and passed back to signals. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Clean up event dialog codeSteven Rostedt2010-06-09
| | | | | | | | | | | | | | | | Use gtk_dialog_run() and examine the results instead of having to create a helper structure that is allocated and passed back to signals. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Clean up task plot dialog codeSteven Rostedt2010-06-09
| | | | | | | | | | | | | | | | Use gtk_dialog_run() and examine the results instead of having to create a helper structure that is allocated and passed back to signals. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Clean up advance filter dialog codeSteven Rostedt2010-06-09
| | | | | | | | | | | | | | | | Use gtk_dialog_run() and examine the results instead of having to create a helper structure that is allocated and passed back to signals. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Allow for separate list and graph task filtersSteven Rostedt2010-06-08
| | | | | | | | | | | | | | To make the task filters more like the event filters, allow the list and graph to have their own filtering. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * trace-graph: Fix pop up for hide taskSteven Rostedt2010-05-27
| | | | | | | | | | | | | | The pop up said "Hide task to filter" which does not make any sense. Change it to just "Hide task". Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * trace-cmd: Fix reading of print stringsSteven Rostedt2010-05-18
| | | | | | | | | | | | | | | | The code that cleaned up parsing the printk_format file never registered the formats to the pevent code. Any trace_printk() that used bprint() was not able to be parsed. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * doc: Use timestamp and timeline instead of time stamp and time lineSteven Rostedt2010-04-09
| | | | | | | | | | | | | | | | | | | | The document is inconsistent with its use of time stamp and timestamp as well as time line and timeline. This patch changes them all to be single words, except when referencing the GUI labels which have the space. Reported-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * doc: Fixed more types and cleared up some explanationsSteven Rostedt2010-04-09
| | | | | | | | | | Reported-by: Darren Hart <dvhltc@us.ibm.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * doc: Fix typos and grammar in kernelshark helpRandy Dunlap2010-04-09
| | | | | | | | | | Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark/build: Install HTML doc and reference itSteven Rostedt2010-04-09
| | | | | | | | | | | | | | Install the HTML document on "make install_doc" and have the kernelshark executable be able to reference that location. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kerselshark/doc: Add html documentation on how to use kernelsharkSteven Rostedt2010-04-09
| | | | | | | | | | | | Add documentation on how to use kernelshark. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * trace-graph: Clear zoom tip on double clickSteven Rostedt2010-04-09
| | | | | | | | | | | | | | When selecting a cursor with the double click, the zoom tip does not go away. Clear it on double click. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Add compat for gtk_widget_set_tooltip_text()Steven Rostedt2010-04-09
| | | | | | | | | | | | | | | | Add a function to handle old gtk libs that do not implement gtk_widget_set_tooltip_text(). But this compat function only works with widgets with windows, so there's not much we can do. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * trace-graph: Add tool tip about zoomingSteven Rostedt2010-04-09
| | | | | | | | | | | | Show tip window to explain how to zoom in and out on the graph. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * trace-graph: Add tooltips to graph markersSteven Rostedt2010-04-09
| | | | | | | | | | | | Add tooltips to give some information on the markers. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Remove debug statements in trace-filter.cSteven Rostedt2010-04-09
| | | | | | | | | | | | | | Remove the printf statements that was used for debugging in trace-filter.c. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Add warning dialogsSteven Rostedt2010-04-09
| | | | | | | | | | | | | | When a warning happens, show it with a dialog instead of printing to the console. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * parse-events: Move parse-event utils to separate fileSteven Rostedt2010-04-09
| | | | | | | | | | | | | | | | Move the util functions used by parse-events into a separate file and compile it with the libparsevents library. Also add "__die()" equivalent functions that are always available. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Move status bar to general code for trace-view and trace-graphSteven Rostedt2010-04-09
| | | | | | | | | | | | | | Move the code for the status bar to trace-dialog.c and have trace-view and trace-graph have access to it too. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Add status bar and status dialogSteven Rostedt2010-04-09
| | | | | | | | | | | | | | | | | | | | Add a status bar at the bottom of the window and show an info icon when status exists. Left mouse button will produce a popup to let the user display the status information. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Fixed grammar on popup menu remove taskSteven Rostedt2010-04-09
| | | | | | | | | | | | | | | | | | | | | | | | The popup menu for removing a task said: Remove task to filter when it should be saying: Remove task from filter Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Make all saved filters under KernelSharkSteven Rostedt2010-04-09
| | | | | | | | | | | | | | | | Make the xml doc under <KernelShark>...</KernelShark> for trace-view and trace-graph. Also pull out the task filters since the view and graph in kernelshark share the same filters. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * kernelshark: Add loading and saving of filtersSteven Rostedt2010-04-09
| | | | | | | | | | | | | | Hooked to the trace-view and trace-graph code to load and save event and task filters. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * trace-graph: Add loading and saving of task and event filtersSteven Rostedt2010-04-09
| | | | | | | | | | | | | | | | Add the filter loading and saving to trace-graph. Most of the work was done already to get trace-view working. This just hooks into that framework. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>