Commit 9d95b580 authored by Franck Bui-Huu's avatar Franck Bui-Huu Committed by Arnaldo Carvalho de Melo
Browse files

perf probe: Fix line range description since a single file is allowed

	$ perf-probe -L sched.c

is currently allowed but not documented.

Cc: Masami Hiramatsu <>
LKML-Reference: <>
Signed-off-by: default avatarFranck Bui-Huu <>
Signed-off-by: default avatarArnaldo Carvalho de Melo <>
parent 44b81e92
......@@ -117,7 +117,7 @@ LINE SYNTAX
Line range is described by following syntax.
FUNC specifies the function name of showing lines. 'RLN' is the start line
number from function entry line, and 'RLN2' is the end line number. As same as
......@@ -515,15 +515,18 @@ int show_available_vars(struct perf_probe_event *pevs __unused,
* Stuff 'lr' according to the line range described by 'arg'.
* The line range syntax is described by:
int parse_line_range_desc(const char *arg, struct line_range *lr)
const char *ptr;
char *tmp;
* <Syntax>
ptr = strchr(arg, ':');
if (ptr) {
lr->start = (int)strtoul(ptr + 1, &tmp, 0);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment