lkml.org 
[lkml]   [2012]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 01/10] perf, tool: Add empty rule for new line in event syntax parsing
    Date
    The flex generator prints out each input character that is ignored
    by lex rules.

    Since the alias processing, we can have '\n' characters on input. We
    need to assign empty rule to it, so it's not printed out.

    Signed-off-by: Jiri Olsa <jolsa@redhat.com>
    ---
    tools/perf/util/parse-events.l | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/tools/perf/util/parse-events.l b/tools/perf/util/parse-events.l
    index 488362e..c05dbef 100644
    --- a/tools/perf/util/parse-events.l
    +++ b/tools/perf/util/parse-events.l
    @@ -152,6 +152,7 @@ r{num_raw_hex} { return raw(yyscanner); }
    , { return ','; }
    : { return ':'; }
    = { return '='; }
    +\n { }

    <mem>{
    {modifier_bp} { return str(yyscanner, PE_MODIFIER_BP); }
    --
    1.7.10.4


    \
     
     \ /
      Last update: 2012-07-04 01:01    [W:0.020 / U:30.208 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site