aboutsummaryrefslogtreecommitdiffstats
path: root/kernel-shark.c
Commit message (Collapse)AuthorAge
* Plotter automatically reads all records _at least_ once.Jonathan Herman2012-10-01
| | | | | | | | Certain records, like container and task params, must be read on the first pass to set up the plot menus. Before, once the release was found, the plotter would skip right to the first task release. Unfortunately, container params are dropped right after the release record, and were being skipped. Now, the plotter will read up to the release time (or the release time + start offset).
* Fixed debug messagingJonathan Herman2012-09-21
|
* cleanupJonathan Herman2012-09-21
|
* Fixed performance / memory leak of mouse hoveringJonathan Herman2012-08-30
|
* Add -c option to ignore records before system release.Jonathan Herman2012-08-23
|
* rt-graph: cleanup of interfaceJonathan Herman2012-03-29
|
* containers: abstracted out common task-type codeJonathan Herman2012-03-24
|
* rt-graph: usability improvementsJonathan2012-03-09
| | | | | | 1. Real-time CPUs are loaded at startup 2. A menu item for loading all real-time tasks is added 3. Black boxes appear around run times when zoomed in
* rt-graph: code cleanupJonathan2012-03-08
|
* rt-graph: real-time cpus addedJonathan2012-03-08
|
* rt-graph: input to real-time plots is processed using real-time timestampsJonathan2012-03-08
| | | | | | | | | Each plot processes only the records which fit within the time window displayed. When passing records into a real-time plot, kernelshark will now decide if a record is within the current time window using real-time timestamps, instead of the old ftrace timestamps. This change also enables infinite zooming into the real-time plots.
* rt-graph: real-time tasks can be added / removed from the graphJonathan2012-03-05
| | | | Currently they copy the functionality of regular task.
* rt-graph: Litmus events and tasks loaded on startupJonathan2012-03-05
|
* Fix address of the Free Software FoundationUwe Kleine-König2011-03-22
| | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Have ^C on the command line kill the appSteven Rostedt2011-03-01
| | | | | | | | | The python plugin overrides the default kill of SIGINT. Have kernelshark add its own handler to kill it as well. TODO: Perhaps have a pop up to ask for sure? Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Place gdk lock around window showSteven Rostedt2011-02-21
| | | | | | | In order to be able to update the cursor while drawing windows, the first drawing of the main window requires the gdk_threads_enter(). Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Make ~/.trace-cmd/filters store filtersSteven Rostedt2010-06-22
| | | | | | | Have the filters stored locally in the users .trace-cmd directory. This will allow the filters to be read and saved from there. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernlshark: Add TRACE_DIALOG_FILTER_FILTERSteven Rostedt2010-06-21
| | | | | | | Add TRACE_DIALOG_FILTER_FILTER and have the KernelShark filter files use the *.ksf extension. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Set default file filtersSteven Rostedt2010-06-21
| | | | | | | | | | Set the default file filters for the specified commands. A load of trace data should filter on *.dat. A load of a settings should filter on *.kss. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Show only one pop up warning message after loading fileSteven Rostedt2010-06-16
| | | | | | | | Instead of showing every little error that happened while loading a trace file, show only one message at the end. Have the warnings go to the display status and the user can reference them there. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Keep capture state persistentSteven Rostedt2010-06-15
| | | | | | | | Make the changes to the capture dialog persistent. That is if the user makes updates to the dialog then closes it, the next time they open it, it will still contain their changes. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Automatically load file after executionSteven Rostedt2010-06-15
| | | | | | After the user records a trace, automatically load the file. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Have file dialog ask if we want to overwriteSteven Rostedt2010-06-14
| | | | | | | | If someone selects a file that already exists and the command will be used to overwrite the file. Ask the user if they want to overwrite it instead of just doing so. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* 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: 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* kernelshark: Created trace_get_file_dialog() to ask for filenameSteven Rostedt2010-04-09
| | | | | | | Added shortcut trace_get_file_dialog() to simplify the asking for a file name. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Add "Help" menu optionsSteven Rostedt2010-04-09
| | | | | | | Add help content and about to menu options. Still need to write the help content, right now it just points to google. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: stop segfaultsRandy Dunlap2010-04-09
| | | | | | | | | | | | Keep kernelshark from segfaulting when there is no open trace file. It segfaults in: Filter->graph events Filter->graph advanced event Filter->list CPUs Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> LKML-Reference: <20100408155736.3d12af4f.randy.dunlap@oracle.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark/trace-cmd: Use command line as input_file if -i is left outSteven Rostedt2010-02-19
| | | | | | | | If a user types "kernelshark mytrace.dat" without using te -i option, still use the mytrace.dat as the input file for the trace, instead of the default trace.dat. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Add CPU and task plotting menu optionsSteven Rostedt2010-02-18
| | | | | | | Add the CPU and task plotting menu that was implemented for trace-graph to kernelshark. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Make sync filters between graph and list handle advanceSteven Rostedt2010-02-17
| | | | | | | Make sure the advanced filters get copied too when syncing between the graph and list filters. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Add advance filters for list and graphSteven Rostedt2010-02-17
| | | | | | Add the advanced filter menu for list and graph. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark/trace-graph: Convert to use trace_filter_event_filter_dialog()Steven Rostedt2010-02-17
| | | | | | | | Use the event_filter dialog instead of the system and event names. trace-view already does this, this patch converts kernelshark and trace-graph. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Replace confusing "to" with "with" in sync filter menueSteven Rostedt2010-02-17
| | | | | | | | | | The menu "sync graph events to list" and "sync list events to graph" is confusing because the word "to" usually means to destination. But in this case, the "to" points to the source. Replacing "sync graph events with list" makes this less confusing. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* kernelshark: Convert to using event_filters for graph and listSteven Rostedt2010-02-16
| | | | | | | | Use the new pevent event_filter infrastructure to filter events. It removes a lot of specific graph and list code and is also faster. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>