Skip to content

Commit

Permalink
perf config: Allow '_' in config file variable names
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
acmel committed May 30, 2012
1 parent e9823b2 commit 8dc7c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/util/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8dc7c65

Please sign in to comment.