Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
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
bcc
Commits
991a1df2
Commit
991a1df2
authored
Mar 19, 2018
by
Teng Qin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add move constructor for BPFStackTable
parent
913450f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/cc/api/BPFTable.cc
src/cc/api/BPFTable.cc
+7
-0
src/cc/api/BPFTable.h
src/cc/api/BPFTable.h
+1
-0
No files found.
src/cc/api/BPFTable.cc
View file @
991a1df2
...
...
@@ -157,6 +157,13 @@ BPFStackTable::BPFStackTable(const TableDesc& desc,
};
}
BPFStackTable
::
BPFStackTable
(
BPFStackTable
&&
that
)
:
BPFTableBase
<
int
,
stacktrace_t
>
(
that
.
desc
),
symbol_option_
(
std
::
move
(
that
.
symbol_option_
)),
pid_sym_
(
std
::
move
(
that
.
pid_sym_
))
{
that
.
pid_sym_
.
clear
();
}
BPFStackTable
::~
BPFStackTable
()
{
for
(
auto
it
:
pid_sym_
)
bcc_free_symcache
(
it
.
second
,
it
.
first
);
...
...
src/cc/api/BPFTable.h
View file @
991a1df2
...
...
@@ -289,6 +289,7 @@ class BPFStackTable : public BPFTableBase<int, stacktrace_t> {
BPFStackTable
(
const
TableDesc
&
desc
,
bool
use_debug_file
,
bool
check_debug_file_crc
);
BPFStackTable
(
BPFStackTable
&&
that
);
~
BPFStackTable
();
void
clear_table_non_atomic
();
...
...
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