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
5c550b5d
Commit
5c550b5d
authored
Apr 02, 2018
by
yonghong-song
Committed by
GitHub
Apr 02, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1659 from lcp/cachetop-bytes
tools/cachetop: match bpf.ksym() with bytes arrays
parents
865133d1
c5b5b30c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tools/cachetop.py
tools/cachetop.py
+4
-4
No files found.
tools/cachetop.py
View file @
5c550b5d
...
...
@@ -88,16 +88,16 @@ def get_processes_stats(
whits
=
0
for
k
,
v
in
count
.
items
():
if
re
.
match
(
'mark_page_accessed'
,
bpf
.
ksym
(
k
))
is
not
None
:
if
re
.
match
(
b
'mark_page_accessed'
,
bpf
.
ksym
(
k
))
is
not
None
:
mpa
=
max
(
0
,
v
)
if
re
.
match
(
'mark_buffer_dirty'
,
bpf
.
ksym
(
k
))
is
not
None
:
if
re
.
match
(
b
'mark_buffer_dirty'
,
bpf
.
ksym
(
k
))
is
not
None
:
mbd
=
max
(
0
,
v
)
if
re
.
match
(
'add_to_page_cache_lru'
,
bpf
.
ksym
(
k
))
is
not
None
:
if
re
.
match
(
b
'add_to_page_cache_lru'
,
bpf
.
ksym
(
k
))
is
not
None
:
apcl
=
max
(
0
,
v
)
if
re
.
match
(
'account_page_dirtied'
,
bpf
.
ksym
(
k
))
is
not
None
:
if
re
.
match
(
b
'account_page_dirtied'
,
bpf
.
ksym
(
k
))
is
not
None
:
apd
=
max
(
0
,
v
)
# access = total cache access incl. reads(mpa) and writes(mbd)
...
...
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