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 <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • 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.