diff options
| author | Franck Bui-Huu <[email protected]> | 2010-12-20 14:18:05 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2010-12-21 19:20:13 +0000 |
| commit | 21dd9ae5a4e9f717f3957ec934dd3158129436b8 (patch) | |
| tree | 817d9db270a3179f480eeac358d43c0c8655b361 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | |
| parent | perf probe: Don't always consider EOF as an error when listing source code (diff) | |
| download | kernel-21dd9ae5a4e9f717f3957ec934dd3158129436b8.tar.gz kernel-21dd9ae5a4e9f717f3957ec934dd3158129436b8.zip | |
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/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions
