The option -f of the 'funcslower' script in combination with the option (-K|-U) prints TypeError.
Issue
The option -f
of the funcslower
script in combination with the option -K
or -U
prints following Traceback:
# /usr/share/bcc/tools/funcslower -f -K vfs_write
Exception ignored on calling ctypes callback function: <function PerfEventArray._open_perf_buffer.<locals>.raw_cb_ at 0x7f33aa178f70>
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/bcc/table.py", line 878, in raw_cb_
callback(cpu, data, size)
File "/usr/share/bcc/tools/funcslower", line 324, in print_event
print_stack(event)
File "/usr/share/bcc/tools/funcslower", line 308, in print_stack
print("%s %d" % (";".join(line), 1))
TypeError: sequence item 1: expected str instance, bytes found
Exception ignored on calling ctypes callback function: <function PerfEventArray._open_perf_buffer.<locals>.raw_cb_ at 0x7f33aa178dc0>
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/bcc/table.py", line 878, in raw_cb_
callback(cpu, data, size)
File "/usr/share/bcc/tools/funcslower", line 324, in print_event
print_stack(event)
File "/usr/share/bcc/tools/funcslower", line 308, in print_stack
print("%s %d" % (";".join(line), 1))
TypeError: sequence item 1: expected str instance, bytes found
Exception ignored on calling ctypes callback function: <function PerfEventArray._open_perf_buffer.<locals>.raw_cb_ at 0x7f33aa178f70>
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/bcc/table.py", line 878, in raw_cb_
callback(cpu, data, size)
File "/usr/share/bcc/tools/funcslower", line 324, in print_event
print_stack(event)
File "/usr/share/bcc/tools/funcslower", line 308, in print_stack
print("%s %d" % (";".join(line), 1))
TypeError: sequence item 1: expected str instance, bytes found
# /usr/share/bcc/tools/funcslower -f -U c:open -u 5
Exception ignored on calling ctypes callback function: <function PerfEventArray._open_perf_buffer.<locals>.raw_cb_ at 0x7f9c0adf2dc0>
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/bcc/table.py", line 878, in raw_cb_
callback(cpu, data, size)
File "/usr/share/bcc/tools/funcslower", line 324, in print_event
print_stack(event)
File "/usr/share/bcc/tools/funcslower", line 308, in print_stack
print("%s %d" % (";".join(line), 1))
TypeError: sequence item 1: expected str instance, bytes found
Environment
- Red Hat Enterprise Linux release 9.0 Beta (Plow)
- bcc-tools
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.