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
0e8c031b
Commit
0e8c031b
authored
Oct 11, 2017
by
Brendan Gregg
Committed by
GitHub
Oct 11, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1361 from navytux/y/hardirqs-d-fix
hardirqs, softirqs: Fix distribution mode units handling
parents
920319d1
f2d125e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tools/hardirqs.py
tools/hardirqs.py
+1
-1
tools/softirqs.py
tools/softirqs.py
+1
-1
No files found.
tools/hardirqs.py
View file @
0e8c031b
...
...
@@ -109,7 +109,7 @@ int trace_completion(struct pt_regs *ctx)
# code substitutions
if
args
.
dist
:
bpf_text
=
bpf_text
.
replace
(
'STORE'
,
'irq_key_t key = {.slot = bpf_log2l(delta
)};'
+
'irq_key_t key = {.slot = bpf_log2l(delta
/ %d)};'
%
factor
+
'bpf_probe_read(&key.name, sizeof(key.name), name);'
+
'dist.increment(key);'
)
else
:
...
...
tools/softirqs.py
View file @
0e8c031b
...
...
@@ -103,7 +103,7 @@ TRACEPOINT_PROBE(irq, softirq_exit)
# code substitutions
if
args
.
dist
:
bpf_text
=
bpf_text
.
replace
(
'STORE'
,
'key.vec = vec; key.slot = bpf_log2l(delta
); '
+
'key.vec = vec; key.slot = bpf_log2l(delta
/ %d); '
%
factor
+
'dist.increment(key);'
)
else
:
bpf_text
=
bpf_text
.
replace
(
'STORE'
,
...
...
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