aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* 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>
| * trace-view: Add save and load of task filtersSteven Rostedt2010-04-09
| | | | | | | | | | | | | | Include saving of the task filters to the filter file as well as the ability to load them. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * trace-view: Add pop-up task menu for filtering tasksSteven Rostedt2010-04-09
| | | | | | | | | | | | | | Add pop-up menu over the rows that will allow to filter on tasks in trace-view. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * trace-view: Add loading of saved event filtersSteven Rostedt2010-04-09
| | | | | | | | | | | | | | Add "Load filters" to trace-view that loads the event filters saved with a "Save filters". Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
| * trace-view: Added saving of filtersSteven Rostedt2010-04-09
| | | | | | | | | | | | | | Add "Save filters" to "File" menu, where it will allow the user to save the filters to a file in XML format. 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: Add dialog helperSteven Rostedt2010-04-09
| | | | | | | | | | | | | | Add trace-dialog.c to include a trace_show_help() and trace_dialog() helpers. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* | build: Add DESTDIR to makeSteven Rostedt2010-06-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the variable DESTDIR that allows a user to install into a directory that will later be moved to another host. This facilitates the creation of distribution packages. make DESTDIR=/tmp/build prefix=/usr install Will install the program files into /tmp/build/usr/.. but the program will expect to find itself in the /usr/.. directories. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* | trace-cmd: Version 1.1.0-rc1Steven Rostedt2010-06-09
| | | | | | | | | | | | | | Separate out the difference between the stable releases and the developmental ones. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* | build/doc: Use a substitution reference in man pages installJohn Kacur2010-06-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | subst will substitution every occurence of a string with another. What we want here is just to substitute the last occurence. That is we want to transform files that end with .1 into .1.install We do not want to transform every ".1" in a path name into .1.install. Without this fix you can get errors of this nature. make prefix=/home/jkacur/rpmbuild/BUILDROOT/trace-cmd-1.0.1-4.fc12.x86_64/usr install_doc make -C /home/jkacur/rpmbuild/BUILD/trace-cmd-1.0.1/Documentation install make[1]: *** No rule to make target `/home/jkacur/rpmbuild/BUILD/trace-cmd-1.0.1.install/Documentation/trace-cmd.1', needed by `/home/jkacur/rpmbuild/BUILD/trace-cmd-1.0.1.install/Documentation/trace-cmd.1.install'. Stop. make: *** [install_doc] Error 2 Signed-off-by: John Kacur <jkacur@redhat.com> LKML-Reference: <1276099288-3029-3-git-send-email-jkacur@redhat.com> Use a "substitution reference" instead of a substitution. A "subst" will change every occurence of a string Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* | build: EXTRAVERSION should be set without a leading periodJohn Kacur2010-06-09
| | | | | | | | | | | | | | | | | | EXTRAVERSION should be set without a leading period, and then add the period where necessary in the Makefile Signed-off-by: John Kacur <jkacur@redhat.com> LKML-Reference: <1276099288-3029-2-git-send-email-jkacur@redhat.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* | trace-graph: Use ref_count instead of comparisonsSteven Rostedt2010-06-09
| | | | | | | | | | | | | | | | | | | | In find_previous_record in the trace-plot, instead of checking if the last_record is equal to the start_record, simply up the ref count. Then the free will not free the start_record. This makes the code a bit cleaner. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
* | trace-cmd: Remove free_record from tracecmd_read_prevSteven Rostedt2010-06-09
| | | | | | | | | | | | Missed a free_record in the revert of the need to free peek data. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>