From 98fb6aeeee5c97f6dae20e578c05a431dc251975 Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Thu, 24 Jun 2010 18:51:46 -0400 Subject: trace-cmd: Reset plugin_function variables on unload Seems that unloading the dynamic plugin and loading it again does not reset the static variables back to their original value. On unload, reset these variables back. Signed-off-by: Steven Rostedt --- plugin_function.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin_function.c b/plugin_function.c index 9ee0eaa..62e8072 100644 --- a/plugin_function.c +++ b/plugin_function.c @@ -140,4 +140,6 @@ void PEVENT_PLUGIN_UNLOADER(void) } free(fstack); + fstack = NULL; + cpus = -1; } -- cgit v1.2.2