Commit 8dc7c651dd7d95b548adef8cd56908392d3ba432

Authored by Arnaldo Carvalho de Melo
1 parent e9823b21ba

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 <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-7rhhf6m0a72p2wja4tgv1itg@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

tools/perf/util/config.c
... ... @@ -120,7 +120,7 @@
120 120  
121 121 static inline int iskeychar(int c)
122 122 {
123   - return isalnum(c) || c == '-';
  123 + return isalnum(c) || c == '-' || c == '_';
124 124 }
125 125  
126 126 static int get_value(config_fn_t fn, void *data, char *name, unsigned int len)