eBPF : softirqs -d script fails with 'TypeError: list indices must be integers or slices, not bytes'
Issue
- eBPF : softirqs -d script fails with 'TypeError: list indices must be integers or slices, not bytes'
# /usr/share/bcc/tools/softirqs -d
Tracing soft irq event time... Hit Ctrl-C to end.
^C
Traceback (most recent call last):
File "/usr/share/bcc/tools/softirqs", line 144, in <module>
dist.print_log2_hist(label, "softirq", section_print_fn=vec_to_name)
File "/usr/lib/python3.6/site-packages/bcc/table.py", line 326, in print_log2_hist
vals[slot] = v.value
TypeError: list indices must be integers or slices, not bytes
Environment
- Red Hat Enterprise Linux 8
- bcc-tools
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.