Re: [PATCH 1/2] kernelshark: Fix the GUI plugin loading

From: Steven Rostedt
Date: Wed Nov 01 2017 - 10:22:20 EST


On Wed, 1 Nov 2017 13:04:22 +0200
"Yordan Karadzhov (VMware)" <y.karadz@xxxxxxxxx> wrote:

> In add_plugin(const char *): wrong file name used when loading a plugin.
>
> Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@xxxxxxxxx>

Applied. Thanks Yordan!

-- Steve

> ---
> kernel-shark.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel-shark.c b/kernel-shark.c
> index c952302..89723c3 100644
> --- a/kernel-shark.c
> +++ b/kernel-shark.c
> @@ -1816,7 +1816,7 @@ static void add_plugin(const char *file)
> struct stat st;
> int ret;
>
> - ret = stat(default_input_file, &st);
> + ret = stat(file, &st);
> if (ret < 0) {
> warning("plugin %s not found", file);
> return;