diff options
Diffstat (limited to 'tools/perf/util/probe-event.c')
-rw-r--r-- | tools/perf/util/probe-event.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index b812f1412c3a..3ba9c5393775 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c | |||
@@ -515,15 +515,18 @@ int show_available_vars(struct perf_probe_event *pevs __unused, | |||
515 | } | 515 | } |
516 | #endif | 516 | #endif |
517 | 517 | ||
518 | /* | ||
519 | * Stuff 'lr' according to the line range described by 'arg'. | ||
520 | * The line range syntax is described by: | ||
521 | * | ||
522 | * SRC[:SLN[+NUM|-ELN]] | ||
523 | * FNC[:SLN[+NUM|-ELN]] | ||
524 | */ | ||
518 | int parse_line_range_desc(const char *arg, struct line_range *lr) | 525 | int parse_line_range_desc(const char *arg, struct line_range *lr) |
519 | { | 526 | { |
520 | const char *ptr; | 527 | const char *ptr; |
521 | char *tmp; | 528 | char *tmp; |
522 | /* | 529 | |
523 | * <Syntax> | ||
524 | * SRC:SLN[+NUM|-ELN] | ||
525 | * FUNC[:SLN[+NUM|-ELN]] | ||
526 | */ | ||
527 | ptr = strchr(arg, ':'); | 530 | ptr = strchr(arg, ':'); |
528 | if (ptr) { | 531 | if (ptr) { |
529 | lr->start = (int)strtoul(ptr + 1, &tmp, 0); | 532 | lr->start = (int)strtoul(ptr + 1, &tmp, 0); |