From: Arnaldo Carvalho de Melo Date: Wed, 30 May 2012 00:59:02 +0000 (-0300) Subject: perf config: Allow '_' in config file variable names X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8dc7c651dd7d95b548adef8cd56908392d3ba432;p=linux-beck.git perf config: Allow '_' in config file variable names For annotate I want to be able to have variables that are the same as the ones representing feature toggles. Cc: David Ahern Cc: Frederic Weisbecker Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-7rhhf6m0a72p2wja4tgv1itg@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c index 0deac6a14b65..6faa3a18bfbd 100644 --- a/tools/perf/util/config.c +++ b/tools/perf/util/config.c @@ -120,7 +120,7 @@ static char *parse_value(void) static inline int iskeychar(int c) { - return isalnum(c) || c == '-'; + return isalnum(c) || c == '-' || c == '_'; } static int get_value(config_fn_t fn, void *data, char *name, unsigned int len)