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
6276fb54
Commit
6276fb54
authored
Jan 15, 2019
by
Brendan Gregg
Committed by
Dan Xu
Jan 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix symbol translation #349
parent
94936573
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/bpftrace.cpp
src/bpftrace.cpp
+2
-2
No files found.
src/bpftrace.cpp
View file @
6276fb54
...
...
@@ -1497,7 +1497,7 @@ std::string BPFtrace::resolve_sym(uintptr_t addr, bool show_offset)
if
(
!
ksyms_
)
ksyms_
=
bcc_symcache_new
(
-
1
,
nullptr
);
if
(
bcc_symcache_resolve
(
ksyms_
,
addr
,
&
sym
))
if
(
bcc_symcache_resolve
(
ksyms_
,
addr
,
&
sym
)
==
0
)
{
symbol
<<
sym
.
name
;
if
(
show_offset
)
...
...
@@ -1630,7 +1630,7 @@ std::string BPFtrace::resolve_usym(uintptr_t addr, int pid, bool show_offset)
psyms
=
pid_sym_
[
pid
];
}
if
(
bcc_symcache_resolve
(
psyms
,
addr
,
&
sym
))
if
(
bcc_symcache_resolve
(
psyms
,
addr
,
&
sym
)
==
0
)
{
symbol
<<
sym
.
name
;
if
(
show_offset
)
...
...
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