Skip to content

Commit 8dc7c65

Browse files
committed
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 <[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]>
1 parent e9823b2 commit 8dc7c65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/util/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static char *parse_value(void)
120120

121121
static inline int iskeychar(int c)
122122
{
123-
return isalnum(c) || c == '-';
123+
return isalnum(c) || c == '-' || c == '_';
124124
}
125125

126126
static int get_value(config_fn_t fn, void *data, char *name, unsigned int len)

0 commit comments

Comments
 (0)