diff options
author | Franck Bui-Huu <[email protected]> | 2010-12-20 15:18:05 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2010-12-21 17:20:13 -0200 |
commit | 21dd9ae5a4e9f717f3957ec934dd3158129436b8 (patch) | |
tree | 817d9db270a3179f480eeac358d43c0c8655b361 /tools/perf/scripts/python/Perf-Trace-Util/lib | |
parent | fde52dbd7f71934aba4e150f3d1d51e826a08850 (diff) |
perf probe: Handle gracefully some stupid and buggy line syntaxes
Currently perf probe doesn't handle those incorrect syntaxes:
$ perf probe -L sched.c:++13
$ perf probe -L sched.c:-+13
$ perf probe -L sched.c:10000000000000000000000000000+13
This patches rewrites parse_line_range_desc() to handle them.
As a bonus, it reports more useful error messages instead of: "Tailing
with invalid character...".
Acked-by: Masami Hiramatsu <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Franck Bui-Huu <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions