The option -f of the 'funcslower' script in combination with the option (-K|-U) prints TypeError.

Solution In Progress - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content