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
6f3e1c4c
Commit
6f3e1c4c
authored
Jan 15, 2019
by
Brendan Gregg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
list sw/hw probes with full names
parent
f4376397
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
src/list.cpp
src/list.cpp
+5
-7
No files found.
src/list.cpp
View file @
6f3e1c4c
...
...
@@ -65,7 +65,8 @@ void list_dir(const std::string path, std::vector<std::string> &files)
closedir
(
dp
);
}
void
list_probes_from_list
(
const
std
::
vector
<
ProbeListItem
>
&
probes_list
,
const
std
::
string
&
search
)
void
list_probes_from_list
(
const
std
::
vector
<
ProbeListItem
>
&
probes_list
,
const
std
::
string
&
probetype
,
const
std
::
string
&
search
)
{
for
(
auto
&
probeListItem
:
probes_list
)
{
...
...
@@ -75,10 +76,7 @@ void list_probes_from_list(const std::vector<ProbeListItem> &probes_list, const
continue
;
}
std
::
cout
<<
probeListItem
.
path
;
if
(
!
probeListItem
.
alias
.
empty
())
std
::
cout
<<
" OR "
<<
probeListItem
.
alias
;
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
probetype
<<
":"
<<
probeListItem
.
path
<<
":"
<<
std
::
endl
;
}
}
...
...
@@ -88,11 +86,11 @@ void list_probes(const std::string &search)
std
::
string
line
,
probe
;
// software
list_probes_from_list
(
SW_PROBE_LIST
,
search
);
list_probes_from_list
(
SW_PROBE_LIST
,
"software"
,
search
);
// hardware
std
::
cout
<<
std
::
endl
;
list_probes_from_list
(
HW_PROBE_LIST
,
search
);
list_probes_from_list
(
HW_PROBE_LIST
,
"hardware"
,
search
);
// tracepoints
std
::
cout
<<
std
::
endl
;
...
...
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