Age | Commit message (Collapse) | Author | Files | Lines |
|
Consolidate the help messages into a ktrace_commands structure that can
link to sub commands. Add a ktrace_help() helper function that can be
called to print the commands and sub command help messages.
This will be used for both the help command itself, and for improper usage
of the commands that lack arguments.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|
|
Add a help function that will be used to describe the commands in more
detail. Currently a very limited help is added, but it will be extended.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|
|
Keep headers separate from C files, and move ktrace.h into its own include
directory.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|
|
All the user to enter 'all' or a particular system to enable all events or
a group of events respectively.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|
|
Currently event_completion() uses its own counter for the ccli_list_add*()
functions. This means something that calls it can not add to the list.
Have the counter passed to event_completion() such that the caller has
more control.
Also combine enable_event_completion() with disable_event_completion()
into disenable_event_completion() as the code for both became a bit more
complex, but is still exactly the same.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|
|
Add the disable command to disable tracing and events just like the enable
command works.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|
|
Add the enable command that will enable tracing and an event. As well as
completions for the commands.
Note, so far only printing the "echo" commands are being done. In the future
the commands will actually commit, but for now its still in development mode.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|
|
The error to tell the user they do not have access to read the tracefs
file system used EPERM and not EACCES, to know to print that, and because
of that, it did not print the proper message.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|
|
Allow the create synthetic event allow fields to compare the start and end
events.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|
|
Managing the list of completions is tedious and error prone, use the
helper functions now provided by the ccli library for managing the list of
completions to return.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|
|
Use the new ccli API that lets you save and restore history. Add it to the
.cache/ktrace file.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|
|
Add the "create synthetic" command and the completion to create a
synthetic event.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|
|
Add the code to create a kprobe. It only prints the command for now, but
will later actually create it.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|
|
Add the completion callback for creating kprobes. Add the kprobe
functions, and offset and types.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|
|
Initial commit of the shell like utility to access Linux tracing.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|