From: Franck Bui-Huu Date: Mon, 20 Dec 2010 14:18:05 +0000 (+0100) Subject: perf probe: Handle gracefully some stupid and buggy line syntaxes X-Git-Tag: v2.6.38-rc1~490^2~24^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21dd9ae5a4e9f717f3957ec934dd3158129436b8;p=pandora-kernel.git 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 Cc: Masami Hiramatsu LKML-Reference: <1292854685-8230-7-git-send-email-fbuihuu@gmail.com> Signed-off-by: Franck Bui-Huu Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed