From e1d44628a0ddd8a1352535a3d3eaee514a4e1e0f Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Thu, 24 Jun 2010 17:52:23 -0400 Subject: trace-cmd: Load the default ftrace print handlers before plugins Load the ftrace function print handlers before loading the plugins. This allows for a loaded plugin to override one of the ftrace default output functions. Signed-off-by: Steven Rostedt --- trace-input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'trace-input.c') diff --git a/trace-input.c b/trace-input.c index 815d250..398d0f9 100644 --- a/trace-input.c +++ b/trace-input.c @@ -479,9 +479,6 @@ int tracecmd_read_headers(struct tracecmd_input *handle) if (ret < 0) return -1; - /* register default ftrace functions first */ - tracecmd_ftrace_overrides(handle); - return 0; } @@ -1978,6 +1975,9 @@ struct tracecmd_input *tracecmd_alloc_fd(int fd) if (!handle->pevent) goto failed_read; + /* register default ftrace functions first */ + tracecmd_ftrace_overrides(handle); + handle->plugin_list = tracecmd_load_plugins(handle->pevent); handle->pevent->file_bigendian = buf[0]; -- cgit v1.2.2