Commit 698e4f7c authored by 4ast's avatar 4ast Committed by GitHub

Merge pull request #860 from brendangregg/master

runqlen: use bpf_get_smp_processor_id()
parents e80df106 ed02ad8a
......@@ -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',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment