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
7524fca5
Commit
7524fca5
authored
Apr 26, 2017
by
Teng Qin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use uintptr_t for addresses in C++ API
parent
bd62f6c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
src/cc/BPF.h
src/cc/BPF.h
+1
-1
src/cc/BPFTable.cc
src/cc/BPFTable.cc
+2
-2
src/cc/BPFTable.h
src/cc/BPFTable.h
+2
-2
No files found.
src/cc/BPF.h
View file @
7524fca5
...
...
@@ -215,7 +215,7 @@ private:
std
::
string
name_
;
std
::
string
probe_func_
;
std
::
vector
<
intptr_t
>
addresses_
;
std
::
vector
<
u
intptr_t
>
addresses_
;
std
::
string
program_text_
;
...
...
src/cc/BPFTable.cc
View file @
7524fca5
...
...
@@ -91,8 +91,8 @@ BPFStackTable::~BPFStackTable() {
bcc_free_symcache
(
it
.
second
,
it
.
first
);
}
std
::
vector
<
intptr_t
>
BPFStackTable
::
get_stack_addr
(
int
stack_id
)
{
std
::
vector
<
intptr_t
>
res
;
std
::
vector
<
u
intptr_t
>
BPFStackTable
::
get_stack_addr
(
int
stack_id
)
{
std
::
vector
<
u
intptr_t
>
res
;
stacktrace_t
stack
;
if
(
!
lookup
(
&
stack_id
,
&
stack
))
return
res
;
...
...
src/cc/BPFTable.h
View file @
7524fca5
...
...
@@ -208,7 +208,7 @@ class BPFHashTable : public BPFTableBase<KeyType, ValueType> {
// From src/cc/export/helpers.h
static
const
int
BPF_MAX_STACK_DEPTH
=
127
;
struct
stacktrace_t
{
intptr_t
ip
[
BPF_MAX_STACK_DEPTH
];
u
intptr_t
ip
[
BPF_MAX_STACK_DEPTH
];
};
class
BPFStackTable
:
public
BPFTableBase
<
int
,
stacktrace_t
>
{
...
...
@@ -217,7 +217,7 @@ class BPFStackTable : public BPFTableBase<int, stacktrace_t> {
:
BPFTableBase
<
int
,
stacktrace_t
>
(
desc
)
{}
~
BPFStackTable
();
std
::
vector
<
intptr_t
>
get_stack_addr
(
int
stack_id
);
std
::
vector
<
u
intptr_t
>
get_stack_addr
(
int
stack_id
);
std
::
vector
<
std
::
string
>
get_stack_symbol
(
int
stack_id
,
int
pid
);
private:
...
...
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