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
698e4f7c
Commit
698e4f7c
authored
Dec 14, 2016
by
4ast
Committed by
GitHub
Dec 14, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #860 from brendangregg/master
runqlen: use bpf_get_smp_processor_id()
parents
e80df106
ed02ad8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tools/runqlen.py
tools/runqlen.py
+1
-1
No files found.
tools/runqlen.py
View file @
698e4f7c
...
...
@@ -99,7 +99,7 @@ if args.cpus:
bpf_text
=
bpf_text
.
replace
(
'STORAGE'
,
'BPF_HISTOGRAM(dist, cpu_key_t);'
)
bpf_text
=
bpf_text
.
replace
(
'STORE'
,
'cpu_key_t key = {.slot = len}; '
+
'
bpf_probe_read(&key.cpu, sizeof(key.cpu), &task->wake_cpu);
'
+
'
key.cpu = bpf_get_smp_processor_id();
'
+
'dist.increment(key);'
)
else
:
bpf_text
=
bpf_text
.
replace
(
'STORAGE'
,
...
...
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