Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bpftrace
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bpftrace
Commits
2d30e314
Commit
2d30e314
authored
Feb 04, 2019
by
williangaspar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes:
https://github.com/iovisor/bpftrace/issues/376
parent
ccac69c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
src/list.cpp
src/list.cpp
+15
-1
No files found.
src/list.cpp
View file @
2d30e314
...
...
@@ -113,8 +113,22 @@ void print_tracepoint_args(const std::string &category, const std::string &event
}
}
void
list_probes
(
const
std
::
string
&
search
)
void
list_probes
(
const
std
::
string
&
search
_input
)
{
std
::
string
search
=
search_input
;
std
::
smatch
probe_match
;
std
::
regex
probe_regex
(
":.*"
);
std
::
regex_search
(
search
,
probe_match
,
probe_regex
);
// replace alias name with full name
if
(
probe_match
.
size
())
{
auto
pos
=
probe_match
.
position
(
0
);
auto
probe_name
=
probetypeName
(
search
.
substr
(
0
,
probe_match
.
position
(
0
)));
search
=
probe_name
+
search
.
substr
(
pos
,
search
.
length
());
}
unsigned
int
i
,
j
;
std
::
string
line
,
probe
;
std
::
string
glob
=
"*"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment