|
@@ -16,7 +16,7 @@ or
|
|
or
|
|
or
|
|
'perf probe' --list
|
|
'perf probe' --list
|
|
or
|
|
or
|
|
-'perf probe' [options] --line='FUNC[:RLN[+NUM|:RLN2]]|SRC:ALN[+NUM|:ALN2]'
|
|
|
|
|
|
+'perf probe' [options] --line='LINE'
|
|
or
|
|
or
|
|
'perf probe' [options] --vars='PROBEPOINT'
|
|
'perf probe' [options] --vars='PROBEPOINT'
|
|
|
|
|
|
@@ -128,13 +128,14 @@ LINE SYNTAX
|
|
-----------
|
|
-----------
|
|
Line range is described by following syntax.
|
|
Line range is described by following syntax.
|
|
|
|
|
|
- "FUNC[:RLN[+NUM|-RLN2]]|SRC[:ALN[+NUM|-ALN2]]"
|
|
|
|
|
|
+ "FUNC[@SRC][:RLN[+NUM|-RLN2]]|SRC[:ALN[+NUM|-ALN2]]"
|
|
|
|
|
|
FUNC specifies the function name of showing lines. 'RLN' is the start line
|
|
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
|
|
number from function entry line, and 'RLN2' is the end line number. As same as
|
|
probe syntax, 'SRC' means the source file path, 'ALN' is start line number,
|
|
probe syntax, 'SRC' means the source file path, 'ALN' is start line number,
|
|
and 'ALN2' is end line number in the file. It is also possible to specify how
|
|
and 'ALN2' is end line number in the file. It is also possible to specify how
|
|
-many lines to show by using 'NUM'.
|
|
|
|
|
|
+many lines to show by using 'NUM'. Moreover, 'FUNC@SRC' combination is good
|
|
|
|
+for searching a specific function when several functions share same name.
|
|
So, "source.c:100-120" shows lines between 100th to l20th in source.c file. And "func:10+20" shows 20 lines from 10th line of func function.
|
|
So, "source.c:100-120" shows lines between 100th to l20th in source.c file. And "func:10+20" shows 20 lines from 10th line of func function.
|
|
|
|
|
|
LAZY MATCHING
|
|
LAZY MATCHING
|