diff options
author | Franck Bui-Huu <fbuihuu@gmail.com> | 2010-12-20 15:18:05 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-12-21 17:20:13 -0200 |
commit | 21dd9ae5a4e9f717f3957ec934dd3158129436b8 (patch) | |
tree | 817d9db270a3179f480eeac358d43c0c8655b361 /mm/mempolicy.c | |
parent | fde52dbd7f71934aba4e150f3d1d51e826a08850 (diff) | |
download | linux-21dd9ae5a4e9f717f3957ec934dd3158129436b8.tar.bz2 |
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 <masami.hiramatsu.pt@hitachi.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
LKML-Reference: <1292854685-8230-7-git-send-email-fbuihuu@gmail.com>
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'mm/mempolicy.c')
0 files changed, 0 insertions, 0 deletions