Skip to content

Commit

Permalink
runqlen: use bpf_get_smp_processor_id()
Browse files Browse the repository at this point in the history
  • Loading branch information
brendangregg committed Dec 14, 2016
1 parent e80df10 commit ed02ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/runqlen.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
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',
Expand Down

0 comments on commit ed02ad8

Please sign in to comment.