lkml.org 
[lkml]   [2012]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/4] perf config: Allow '_' in config file variable names
    Date
    From: Arnaldo Carvalho de Melo <acme@redhat.com>

    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>
    ---
    tools/perf/util/config.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c
    index 0deac6a..6faa3a1 100644
    --- a/tools/perf/util/config.c
    +++ b/tools/perf/util/config.c
    @@ -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)
    --
    1.7.9.2.358.g22243


    \
     
     \ /
      Last update: 2012-05-30 04:41    [W:0.033 / U:0.236 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site