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
845225fc
Commit
845225fc
authored
Nov 03, 2018
by
Ildar Musin
Committed by
yonghong-song
Nov 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix parsing of /proc/pid/maps (#2025)
Fix parsing of /proc/pid/maps
parent
415bd4e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/cc/bcc_proc.c
src/cc/bcc_proc.c
+2
-2
No files found.
src/cc/bcc_proc.c
View file @
845225fc
...
...
@@ -92,14 +92,14 @@ int bcc_procutils_each_module(int pid, bcc_procutils_modulecb callback,
if
(
!
procmap
)
return
-
1
;
char
buf
[
PATH_MAX
+
1
],
perm
[
5
],
dev
[
6
];
char
buf
[
PATH_MAX
+
1
],
perm
[
5
],
dev
[
8
];
char
*
name
;
uint64_t
begin
,
end
,
inode
;
unsigned
long
long
offset
;
while
(
true
)
{
buf
[
0
]
=
'\0'
;
// From fs/proc/task_mmu.c:show_map_vma
if
(
fscanf
(
procmap
,
"%lx-%lx %4s %llx %
5
s %lu%[^
\n
]"
,
&
begin
,
&
end
,
perm
,
if
(
fscanf
(
procmap
,
"%lx-%lx %4s %llx %
7
s %lu%[^
\n
]"
,
&
begin
,
&
end
,
perm
,
&
offset
,
dev
,
&
inode
,
buf
)
!=
7
)
break
;
...
...
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