diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-05-29 20:59:02 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-05-29 20:59:02 -0400 |
commit | 8dc7c651dd7d95b548adef8cd56908392d3ba432 (patch) | |
tree | 6723d190f0eacda4a810a147c5f4268a21b9d1d9 /tools | |
parent | e9823b21bab7ff0c39e14a7a970a40fad74ce778 (diff) |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
120 | 120 | ||
121 | static inline int iskeychar(int c) | 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 | static int get_value(config_fn_t fn, void *data, char *name, unsigned int len) | 126 | static int get_value(config_fn_t fn, void *data, char *name, unsigned int len) |