| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Add tracecmd_local_plugins() that returns a list of available
tracer plugins.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
| |
Add const char *fmt to die, warning and pr_stat.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
Add a vpr_stat(const char *fmt, va_list ap) that can be
overridden.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| |
| |
| |
| |
| | |
Conflicts:
Makefile
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| | |
When the task filters are updated, call the registered callback.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| | |
Add the function trace_graph_refresh_filters that redraws the graph
after the filters are updated.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| | |
Reported-by: Darren Hart <dvhltc@us.ibm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| | |
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| | |
Add documentation on how to use kernelshark.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| | |
Show tip window to explain how to zoom in and out on the graph.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| | |
Add tooltips to give some information on the markers.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| | |
Remove the printf statements that was used for debugging in
trace-filter.c.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| | |
When a warning happens, show it with a dialog instead of printing
to the console.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|