| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
|
| |
Added 'make install_doc'
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
| |
Update the Documentation Makefile to handle building outside the source tree.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The usage just printed all commands and their full descriptions. This is too much
for all the commands that trace-cmd does.
This patch moves the usage out of trace-cmd.c and into a new file called trace-usage.c.
It then makes a structure that holds the name of the command, a short description
and the full usage (from the original usage).
If no command, or the command passed to trace-cmd is not found, then the list
of commands and their short usages are shown.
If a command is passed in, only the usage for that command is shown.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change the output of installing from:
install -d -m 755 '/usr/local/share/trace-cmd/plugins'
install plugin_hrtimer.so plugin_kmem.so plugin_sched_switch.so plugin_mac80211.so plugin_jbd2.so '/usr/local/share/trace-cmd/plugins'
install -d -m 755 '/usr/local/bin'
install trace-cmd '/usr/local/bin'
gui build complete
install -d -m 755 '/usr/local/bin'
install trace-view '/usr/local/bin'
install trace-graph '/usr/local/bin'
install kernelshark '/usr/local/bin'
to:
INSTALL plugin_hrtimer.so to /usr/local/share/trace-cmd/plugins
INSTALL plugin_kmem.so to /usr/local/share/trace-cmd/plugins
INSTALL plugin_sched_switch.so to /usr/local/share/trace-cmd/plugins
INSTALL plugin_mac80211.so to /usr/local/share/trace-cmd/plugins
INSTALL plugin_jbd2.so to /usr/local/share/trace-cmd/plugins
INSTALL trace-cmd to /usr/local/bin
INSTALL trace-view to /usr/local/bin
INSTALL trace-graph to /usr/local/bin
INSTALL kernelshark to /usr/local/bin
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
- Add BUILDING and INSTALL instructions to the README
- Change Makefile so that messages don't appear like errors.
Signed-off-by: John Kacur <jkacur@redhat.com>
|
|
|
|
|
|
| |
If you a user does "make install", also install plugins.
Signed-off-by: John Kacur <jkacur@redhat.com>
|
|
|
|
|
|
|
|
| |
Make the default value of prefix /usr/local which makes sense for most end-users
Developers who wish to use $HOME can set this on the command line.
(use ?= which only sets the default if prefix doesn't already have a value)
Signed-off-by: John Kacur <jkacur@redhat.com>
|
|
|
|
|
|
|
| |
DESTDIR_SQ must have been incompletely copied from another project's makefile.
It isn't serving a purpose here, so remove it.
Signed-off-by: John Kacur <jkacur@redhat.com>
|
|
|
|
| |
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
| |
If the prefix in the make build is not $(HOME) then a system wide
plugin directory is used (in $(prefix)/share/trace-cmd/plugins).
This is then compiled into the tracecmd library so that it knows to look
for the plugins there.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
| |
Add the start of option to the trace.dat file. This will allow
later versions of the file to add data without breaking older
versions of trace-cmd.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
Added the jbd2 plugin that adds the helper functions to handle
jbd2_dev_to_name() and jiffies_to_msecs().
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
| |
Add the ability to make tags for (g)vim.
Also, add a section in clean that removes TAGS and tags
Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some people prefer to have the build output be done out of tree.
This follows the Linux method of building the objects in another
path.
make O=~/mypath
Will build the objects and the executables into the ~/mypath directory.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
| |
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
| |
Add a Makefile that has logic to build a man page.
It is still very primitive and uses ascriidoc and
xsltproc to do the formating. But instead of build my own xsl
file or putting together one from others, I decided to use
xsl files that already exist by doing a locate on
manpages/docbook.xsl, and using what is found.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a way to record the trace remotely. On a remote box, one
can start trace-cmd like:
trace-cmd listen -p 1234
Then the local box that wants to trace can run:
trace-cmd record -e all -N otherhost:1234 command
Instead of writing to trace.dat, the record will send the
data over the network using TCP and UDP and the trace.dat
file will be created on the remote host.
The remote host will save the file as trace.host:port.dat
TCP is used to send the recording box information, and UDP is
used to send the live data from the trace.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
| |
The header files tc_version.h and ks_version.h are created by the build
process. Add a comment warning that changes to these files will not
be sustained.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the ability to filter on event fields. This patch implements
the filter on trace-cmd report.
Using the following:
trace-cmd report -F 'sched.sched_switch:next_prio < 100 ||
(prev_comm != "swapper" && next_comm != "swapper")'
Will return a report where prios are under 100 (Real-time)
and does not include any context switch with the swapper task.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
Create the code to plot a task. Currently nothing calls it. But that
will change in later patches when we collect all task pids.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
| |
This is a start of moving from plotting just the CPUs, but
to move the code to a plot interface. This will eventually
allow a line to just plot a task (on all CPUs).
This first patch just sets up some of the infratructure,
but still is tied to the CPU plots.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
| |
The all_objs did not include trace-view-main.o or trace-graph-main.o
so these objects did not get rebuilt when files that they depend on
were changed.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
| |
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, if we type "make gui" after the gui has been built
nothing is displayed. It is hard to know if something happened or
not.
Now add a message that says the gui build is complete:
# make gui
*** gui build complete ***
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
| |
Add the output:
*** to build the gui, type "make gui" ***
to the end of the build when "make" is executed. This will let the
user know they need to do more to build the gui code.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
trace-cmd split [options] -o file [start [end]]
-o output file to write to (file.1, file.2, etc)
-s n split file up by n seconds
-m n split file up by n milliseconds
-u n split file up by n microseconds
-e n split file up by n events
-p n split file up by n pages
-r repeat from start to end
-c per cpu, that is -p 2 will be 2 pages for each CPU
if option is specified, it will split the file
up starting at start, and ending at end
start - decimal start time in seconds (ex: 75678.923853)
if left out, will start at beginning of file
end - decimal end time in seconds
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
trace-cmd did not have libtracecmd.a as a dependence, and would
not get relinked if the libtracecmd.a changed.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
| |
With the way the depends were set up, ks_version.h was always being
built even when building the non gui files. This lead to a constant
annoying message that would state the ks_version.h was up to date.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
| |
Restructured the Makefile to automate the dependencies.
Also a lot of changes to consolidate changes.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
Convert the build output to be similar to the KBUILD system
used by Linux.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
Have the versions of the tools in the Makefile and automate the updating
of them when the numbers in the Makefile change.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
Have the gui built with 'make gui'. This allows for those that don't
care about the gui to just build the command line (by default).
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
Move some of the trace-view event filtering to be generic enough and
have the trace-graph use it.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
| |
Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make the necessary trace-view-store methods non-static and place their
declarations in the header file.
Functions beginning with _ are considered private in python. The structs
beginning with _ caused their accessor functions to be generated as
private. Since they aren't used as structs anywhere in the C code,
rename them to something more accessible to python.
Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
LKML-Reference: <1262654682-20325-3-git-send-email-dvhltc@us.ibm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
If we do a make clean, still allow the dependencies of the programs
to create the library. That is:
$ make clean
$ make trace-view
Needs to build the libtracecmd.a file.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
| |
The list and graph can now filter tasks.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
| |
Let the tree view pop up menu filter the graph as well. This makes
finding tasks to filter on easier, as it is easier to search for a
task from the tree view than with the graph.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|\
| |
| |
| |
| |
| |
| | |
Conflicts:
Makefile
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The kmem events only show a useless hex symbol for the call site name.
This adds a plugin to do a lookup of the function name and still
print the rest of the event format.
Also adds pevent_find_function_address() to let the plugin show the
offset into the function as well.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Some of the functions that were used to make the fixed width
columns are not available for older GTK. This patch adds
compat functions that implement code that lets this compile
with older versions of GTK.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|\| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add a python EventStore instead of a generic gtk.ListStore. Load time is
reduced 50% although still 15x slower than the C version.
Add the proper freeing of the record to the Event destructor rather than
setting ownership of the pointer to Python. The latter causes swig to
call free() on the record rather than free_record() which does some
intelligent things regarding the mmap.
Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
|
| |
| |
| |
| | |
Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Tried to add more memory freeing using valgrind to find leaks.
But because GTK uses its own allocator it makes it difficult to
know what is freed and what is not.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| | |
Add a utility that makes both trace-graph and trace-view interact.
It may also in the future do recording as well.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| | |
In order to be able to use the trace-graph in other applications
we separate out the creation of the graph from the windowing.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
In order to make the trace-view list be used in other applications
separate out the main window into trace-view-main.c and make an
API that another application can use a trace view with.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| | |
trace-cmd is going to be a command line only tool. The viewer
is going to go into a separate utility. This patch separates it out.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
The trace-view.o and trace-graph.o were always compiled
due to the .PHONY gtk_depends. Not sure why this was done,
but I'm removing it until I figure it out.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|