From: Namhyung Kim <namhyung@kernel.org>
To: Taeung Song <treeze.taeung@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@kernel.org>,
Jiri Olsa <jolsa@redhat.com>
Subject: Re: [PATCH RESEND] perf tools: bug fix, an error of parsing 'man.<tool>.*' config variable.
Date: Thu, 7 Jan 2016 17:01:04 +0900 [thread overview]
Message-ID: <20160107080104.GH8053@sejong> (raw)
In-Reply-To: <1452139251-23725-1-git-send-email-treeze.taeung@gmail.com>
Hi Taeung,
On Thu, Jan 07, 2016 at 01:00:51PM +0900, Taeung Song wrote:
> To add new man viewer, configs like 'man.<tool>.cmd',
> 'man.<tool>.path' can be set into config file (~/.perfconfig).
> But parsing config file is stopped because the config variable
> contains '.' character i.e.
>
> If setting 'man.xman.cmd' into config file,
>
> [man]
> gman.cmd = gman
>
> when launching perf an error message is printed like below.
>
> Fatal: bad config file line 11 in /home/taeung/.perfconfig
Not sure anyone actually uses this..
Anyway, it should be fixed since man viewer code requires it.
>
> So modify iskeychar() function to decide '.' character
> as key character parsing config file.
>
> Cc: Jiri Olsa <jolsa@redhat.com>
> Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Thanks,
Namhyung
> ---
> tools/perf/util/config.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c
> index d3e12e3..3c01ced 100644
> --- a/tools/perf/util/config.c
> +++ b/tools/perf/util/config.c
> @@ -122,7 +122,7 @@ static char *parse_value(void)
>
> static inline int iskeychar(int c)
> {
> - return isalnum(c) || c == '-' || c == '_';
> + return isalnum(c) || c == '-' || c == '_' || c == '.';
> }
>
> static int get_value(config_fn_t fn, void *data, char *name, unsigned int len)
> --
> 2.5.0
>
prev parent reply other threads:[~2016-01-07 8:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-07 4:00 [PATCH RESEND] perf tools: bug fix, an error of parsing 'man.<tool>.*' config variable Taeung Song
2016-01-07 8:01 ` Namhyung Kim [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160107080104.GH8053@sejong \
--to=namhyung@kernel.org \
--cc=acme@kernel.org \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=treeze.taeung@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox