| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
When you hover close enough to an events time, the event name will
display. This time is based on _litmus_ time, not record time.
|
|
|
|
| |
Currently they copy the functionality of regular task.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There is a new option added to the 'report' target to check event
formats of the events recorded in a trace data file. This patch updates
the documentation in the man page.
This patch also adds a new man page for 'check-events' target which
verifies event formats on the local machine.
Cc: Michael Rubin <mrubin@google.com>
Cc: David Sharp <dhsharp@google.com>
Signed-off-by: Vaibhav Nagarnaik <vnagarnaik@google.com>
Link: http://lkml.kernel.org/r/1313091459-12049-5-git-send-email-vnagarnaik@google.com
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
Add trace-cmd options that reads all the plugins and lists
the available options for trace-cmd report.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
| |
The -O field now passes options to the plugins. The format is of:
-O [plugin:]var[=val]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added --func-stack option to trace-cmd record, that will enable the
function stack tracing, but only if the -l option (limit functions)
is used, and succeeds in filtering functions. It is known that running
the function stack trace on all functions can livelock the machine.
The output now looks like this:
<idle>-0 [002] 64003.696572: function: schedule
<idle>-0 [002] 64003.696577: kernel_stack: <stack trace>
=> cpu_idle (ffffffff8100a38c)
=> start_secondary (ffffffff814ab828)
trace-cmd-4132 [003] 64003.696632: function: schedule
trace-cmd-4132 [003] 64003.696637: kernel_stack: <stack trace>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add -T option to perform a stacktrace on each event:
kworker/3:2-2393 [003] 58549.282806: sched_switch: kworker/3:2:2393 [120] S ==> trace-cmd:2603 [120]
kworker/3:2-2393 [003] 58549.282808: kernel_stack: <stack trace>
=> schedule (ffffffff814b260e)
=> worker_thread (ffffffff8106edd7)
=> kthread (ffffffff81072b43)
=> kernel_thread_helper (ffffffff814bcbe4)
<idle>-0 [000] 58549.282866: sched_switch: swapper:0 [120] R ==> trace-cmd:2600 [120]
<idle>-0 [000] 58549.282869: kernel_stack: <stack trace>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
| |
Adding the --date option to trace-cmd record (and extract) will
cause trace-cmd to write a timestamp into the ftrace buffer and
use it to mapped the ftrace buffer's timestamps with gettimeofday.
This will allow reading of the trace.dat file to be able to convert
the timestamps into actual wall time.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
In case the user wants to use a different manpage/docbook.xsl,
let them override the MANPAGE_DOCBOOK_XSL environment variable.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
Remove space from the do_install script that was making the
install of kernelshark html documents fail.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
| |
Fail if the docbook.xsl is not found. Currently it fails if
the file does not exist, but passing in a blank string does not
produce an error.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add to trace-cmd restore:
-t dir: where dir is the directory to search instead of looking at
debugfs/tracing
-k file: where to read kallsyms from, instead of reading
/proc/kallsyms
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
Add the -T option to print the filter strings created by -F
and exit.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a 'COMM' special field to allow the filter in trace-cmd report
to filter on the task's comm.
Most records do not have data about what the comm is of the
task that recorded the record. But comms are stored in various
ways that parse-events can handle.
By adding a special field 'COMM' (all caps) the user can now
filter out tasks based on their name. This is useful when filtering
out (or in) a bunch of threads.
-F 'COMM != "trace-cmd"'
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
Add the -a option to trace-cmd record that will bring back the old
behavior of recording the format of all events.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
| |
Add the stack command to the trace-cmd man page.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
| |
Added the command "trace-cmd stack" to run the stack tracer.
It simply enables the stack tracer and depending on the options
it will ouput the current stack, or disable it.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
| |
The restore feature now allows you to make a trace.dat file from
several trace.dat.cpu.X files. This will let you put together files
leftover from a crashed trace-cmd record run.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
| |
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
| |
Add -k option to trace-cmd record that will keep it from resetting
the buffers when it is done. This option brings back the old
behavior of trace-cmd record.
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>
|
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| |
| |
| |
| |
| | |
Conflicts:
Makefile
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds a python plugin that can in turn
load plugins written in python.
To make it work, trace-cmd needs to load
plugin modules with RTLD_GLOBAL so that
the python interpreter's symbols will be
available to python C extension modules.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
When parsing by pages is set, we automatically set the percpu parsing.
This is because non percpu does not make sense. The CPU data is stored
per page and two or more CPU data is not shared on a single CPU data page.
This patch forces the -c option (percpu) when the -p option is set.
Previously the -p option without the -c option gave some strange results.
Usually just one or two events per page.
Reported-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
To remove the trace.dat man page "SYNOPSIS" section, the lines
from: .SH "SYNOPSIS" to .sp are removed. But some systems do not
add a .sp after the SYNOPSIS, so they remove the entire rest of
the document.
Instead of testing for .sp, test for "ignore" since that is in the
document and is known to be there.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
| |
Typo/grammo corrections to trace-cmd.dat.5.txt:
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
LKML-Reference: <20100408155718.8673c823.randy.dunlap@oracle.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
Add the option '-r' to the trace-cmd record that will set the
trace capture threads to that real-time FIFO priority.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
Add a way to pipe log info to another file, especially useful in
daemon mode.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
| |
Added a documentation man page on the format of the trace.dat file.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
To make way for creating other numbered man pages, modify the make documentation
build to be number specific. This required adding the numbers to the text files.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
| |
Added 'make install_doc'
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
| |
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
|
|
|
| |
Using dependencies to trigger the manpage.xsl waring was causing all man pages
to be built every time, event when no files were changed.
By converting it to a funciton and calling it first, it will allow the man pages
to only be rebuilt if their source files were changed.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
| |
Use the "KBUILD" method to build documentation.
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>
|
|
|
|
| |
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
The output of the plugins being loaded, while useful, are quite
annoying. Make it default off and add an option to display them.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
| |
Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|
|
|
|
|
|
|
| |
Added a -q option to trace-cmd report that will not print out
warnings about parsing errors.
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>
|
|
Added a Documentation directory that will become the trace-cmd manpages.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
|