kosslab-kr / linux-perf

:rocket: perf contribution (mirrored from git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git)
Other
16 stars 8 forks source link

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

Open seonyoungkims opened 8 years ago

seonyoungkims commented 8 years ago

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