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
67fa222c
Commit
67fa222c
authored
Sep 25, 2017
by
Teng Qin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bcc_resolve_global_addr on shared libraries
parent
9e02d82d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/cc/bcc_syms.cc
src/cc/bcc_syms.cc
+3
-1
No files found.
src/cc/bcc_syms.cc
View file @
67fa222c
...
...
@@ -395,6 +395,7 @@ void bcc_symcache_refresh(void *resolver) {
struct
mod_st
{
const
char
*
name
;
uint64_t
start
;
uint64_t
file_offset
;
};
static
int
_find_module
(
const
char
*
modname
,
uint64_t
start
,
uint64_t
end
,
...
...
@@ -402,6 +403,7 @@ static int _find_module(const char *modname, uint64_t start, uint64_t end,
struct
mod_st
*
mod
=
(
struct
mod_st
*
)
p
;
if
(
!
strcmp
(
modname
,
mod
->
name
))
{
mod
->
start
=
start
;
mod
->
file_offset
=
offset
;
return
-
1
;
}
return
0
;
...
...
@@ -414,7 +416,7 @@ int bcc_resolve_global_addr(int pid, const char *module, const uint64_t address,
mod
.
start
==
0x0
)
return
-
1
;
*
global
=
mod
.
start
+
address
;
*
global
=
mod
.
start
+
mod
.
file_offset
+
address
;
return
0
;
}
...
...
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