Skip to content

perf config: fix bug in parsing 'man.<tool>.*' config#142

Open
seonyoungkims wants to merge 1 commit intokosslab-kr:masterfrom
seonyoungkims:develop
Open

perf config: fix bug in parsing 'man.<tool>.*' config#142
seonyoungkims wants to merge 1 commit intokosslab-kr:masterfrom
seonyoungkims:develop

Conversation

@seonyoungkims
Copy link
Collaborator

To add new man viewer, configs like 'man..cmd',
'man..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

So modify iskeychar() function to decide '.' character
as key character parsing config file.

Acked-by: Namhyung Kim namhyung@kernel.org
Cc: Jiri Olsa jolsa@kernel.org
Signed-off-by: Kim SeonYoung adamas0414@naver.com

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

So modify iskeychar() function to decide '.' character
as key character parsing config file.

Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Kim SeonYoung <adamas0414@naver.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments