diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-11-24 21:34:14 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-11-24 21:34:14 -0500 |
commit | 97206bab01a3af5c5cfe22e7cd12a29d711c94f0 (patch) | |
tree | 7e02d951d279f218afaa8ef58c288462c2daa24d | |
parent | f57227c404def68a98c3bb2d2fa7dbe904c5988f (diff) |
Report plugin activity
Add prints when a plugin is added, as well as when it overrides
a format. This will prevent people wondering why the output of
some event is not what they expect, when they forget that they
have a plugin installed.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | parse-events.c | 3 | ||||
-rw-r--r-- | trace-util.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/parse-events.c b/parse-events.c index 15cd0e4..483f6f0 100644 --- a/parse-events.c +++ b/parse-events.c | |||
@@ -3527,6 +3527,9 @@ int pevent_register_event_handler(int id, char *sys_name, char *event_name, | |||
3527 | return -1; | 3527 | return -1; |
3528 | } | 3528 | } |
3529 | 3529 | ||
3530 | printf("overriding event (%d) %s:%s with new print handler\n", | ||
3531 | event->id, event->system, event->name); | ||
3532 | |||
3530 | event->handler = func; | 3533 | event->handler = func; |
3531 | return 0; | 3534 | return 0; |
3532 | } | 3535 | } |
diff --git a/trace-util.c b/trace-util.c index 4780f26..0bdf009 100644 --- a/trace-util.c +++ b/trace-util.c | |||
@@ -108,6 +108,7 @@ static int load_plugin(const char *path, const char *file) | |||
108 | return -1; | 108 | return -1; |
109 | } | 109 | } |
110 | 110 | ||
111 | printf("registering plugin: %s\n", plugin); | ||
111 | ret = func(); | 112 | ret = func(); |
112 | 113 | ||
113 | /* dlclose ?? */ | 114 | /* dlclose ?? */ |