diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-12-10 13:57:07 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-12-10 13:57:07 -0500 |
commit | 4d03347b50ec3b6f37beb557487f74a9a3d47558 (patch) | |
tree | 29d053311a030d4eff7575443015e8f5734ae39a /trace-cmd.c | |
parent | 82bf45c96fcf9cfe6fd2d99d39119475c8d3b590 (diff) |
Let trace-cmd start disable function tracing
The disabling of the function tracer was hidden in the trace-cmd record
branch. Move it to be used by both record and start.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'trace-cmd.c')
-rw-r--r-- | trace-cmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/trace-cmd.c b/trace-cmd.c index 52ae03c..26fd883 100644 --- a/trace-cmd.c +++ b/trace-cmd.c | |||
@@ -1273,12 +1273,11 @@ int main (int argc, char **argv) | |||
1273 | 1273 | ||
1274 | read_tracing_data(); | 1274 | read_tracing_data(); |
1275 | 1275 | ||
1276 | fset = set_ftrace(!disable); | ||
1277 | |||
1278 | start_threads(); | 1276 | start_threads(); |
1279 | signal(SIGINT, finish); | 1277 | signal(SIGINT, finish); |
1280 | } | 1278 | } |
1281 | 1279 | ||
1280 | fset = set_ftrace(!disable); | ||
1282 | disable_all(); | 1281 | disable_all(); |
1283 | 1282 | ||
1284 | if (events) | 1283 | if (events) |