projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e80df10
)
runqlen: use bpf_get_smp_processor_id()
author
Brendan Gregg
<brendan.d.gregg@gmail.com>
Wed, 14 Dec 2016 21:28:13 +0000
(13:28 -0800)
committer
Brendan Gregg
<brendan.d.gregg@gmail.com>
Wed, 14 Dec 2016 21:28:13 +0000
(13:28 -0800)
tools/runqlen.py
patch
|
blob
|
history
diff --git
a/tools/runqlen.py
b/tools/runqlen.py
index
204ce19
..
5092e5c
100755
(executable)
--- a/
tools/runqlen.py
+++ b/
tools/runqlen.py
@@
-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',