diff options
author | Steven Rostedt <srostedt@redhat.com> | 2011-06-29 11:18:00 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-06-29 11:18:00 -0400 |
commit | 1d51f1a4959ec87f17f66c2decace13a5cb30d1e (patch) | |
tree | 10187c4cb741f3ff0f845474c631e55726fd1bd1 | |
parent | 3834cc0354695c1808e3154681a218de26a8c928 (diff) |
trace-cmd: Allow use of enabling the nop tracer
For those cases that we just want to enable tracing because
we want to view trace_printk()s in the kernel or for whatever,
allow the nop tracer to be enabled.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-record.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/trace-record.c b/trace-record.c index fa23b82..9b331ef 100644 --- a/trace-record.c +++ b/trace-record.c | |||
@@ -1855,6 +1855,13 @@ static void check_plugin(const char *plugin) | |||
1855 | char *buf; | 1855 | char *buf; |
1856 | char *tok; | 1856 | char *tok; |
1857 | 1857 | ||
1858 | /* | ||
1859 | * nop is special. We may want to just trace | ||
1860 | * trace_printks, that are in the kernel. | ||
1861 | */ | ||
1862 | if (strcmp(plugin, "nop") == 0) | ||
1863 | return; | ||
1864 | |||
1858 | buf = read_file("available_tracers", NULL); | 1865 | buf = read_file("available_tracers", NULL); |
1859 | if (!buf) | 1866 | if (!buf) |
1860 | die("No plugins available"); | 1867 | die("No plugins available"); |