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
d271f3e2
Commit
d271f3e2
authored
Dec 19, 2017
by
Teng Qin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lost count in perf_reader
parent
73b5401f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/cc/perf_reader.c
src/cc/perf_reader.c
+9
-1
No files found.
src/cc/perf_reader.c
View file @
d271f3e2
...
...
@@ -243,7 +243,15 @@ void perf_reader_event_read(struct perf_reader *reader) {
}
if
(
e
->
type
==
PERF_RECORD_LOST
)
{
uint64_t
lost
=
*
(
uint64_t
*
)(
ptr
+
sizeof
(
*
e
));
/*
* struct {
* struct perf_event_header header;
* u64 id;
* u64 lost;
* struct sample_id sample_id;
* };
*/
uint64_t
lost
=
*
(
uint64_t
*
)(
ptr
+
sizeof
(
*
e
)
+
sizeof
(
uint64_t
));
if
(
reader
->
lost_cb
)
{
reader
->
lost_cb
(
lost
);
}
else
{
...
...
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