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
18ae111f
Commit
18ae111f
authored
Apr 20, 2016
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cc: Looser heuristic to detect .so modules
parent
6b59b2c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
src/cc/bcc_syms.cc
src/cc/bcc_syms.cc
+1
-6
No files found.
src/cc/bcc_syms.cc
View file @
18ae111f
...
...
@@ -118,11 +118,6 @@ class ProcStat {
void
reset
()
{
inode_
=
getinode_
();
}
};
static
bool
has_suffix
(
const
std
::
string
&
str
,
const
std
::
string
&
suffix
)
{
return
str
.
size
()
>=
suffix
.
size
()
&&
str
.
compare
(
str
.
size
()
-
suffix
.
size
(),
suffix
.
size
(),
suffix
)
==
0
;
}
class
ProcSyms
:
SymbolCache
{
struct
Symbol
{
Symbol
(
const
char
*
name
,
uint64_t
start
,
uint64_t
size
,
int
flags
=
0
)
...
...
@@ -143,7 +138,7 @@ class ProcSyms : SymbolCache {
void
load_sym_table
();
bool
decode_sym
(
uint64_t
addr
,
struct
bcc_symbol
*
sym
);
bool
is_so
()
{
return
has_suffix
(
name_
,
".so"
)
;
}
bool
is_so
()
{
return
strstr
(
name_
.
c_str
(),
".so"
)
!=
nullptr
;
}
static
int
_add_symbol
(
const
char
*
symname
,
uint64_t
start
,
uint64_t
end
,
int
flags
,
void
*
p
);
...
...
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