Description of problem: [root@virtlab413 ~]# /usr/bin/qemu-trace-stap list /usr/libexec/qemu-kvm Traceback (most recent call last): File "/usr/bin/qemu-trace-stap", line 175, in <module> main() File "/usr/bin/qemu-trace-stap", line 171, in main args.func(args) File "/usr/bin/qemu-trace-stap", line 118, in cmd_list print_probes(args.verbose, "*") File "/usr/bin/qemu-trace-stap", line 114, in print_probes if line.startswith(prefix): TypeError: startswith first arg must be bytes or a tuple of bytes, not str Version-Release number of selected component (if applicable): qemu-kvm-core-4.2.0-4.el8.bz1772774a.x86_64 How reproducible: 100% Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Needs Python 3 compatibility.
Reproduced this bug with qemu-kvm-core-4.2.0-4.module+el8.2.0+5220+e82621dc.x86_64 # /usr/bin/qemu-trace-stap list /usr/libexec/qemu-kvm Traceback (most recent call last): File "/usr/bin/qemu-trace-stap", line 175, in <module> main() File "/usr/bin/qemu-trace-stap", line 171, in main args.func(args) File "/usr/bin/qemu-trace-stap", line 118, in cmd_list print_probes(args.verbose, "*") File "/usr/bin/qemu-trace-stap", line 107, in print_probes stdout=subprocess.PIPE, env=tapset_env(tapsets)) File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__ restore_signals, start_new_session) File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'stap': 'stap' # /usr/bin/qemu-trace-stap -v usage: qemu-trace-stap [-h] [-v] {run,list} ... qemu-trace-stap: error: the following arguments are required: command
Patch sent upstream: https://lists.gnu.org/archive/html/qemu-devel/2020-01/msg00850.html
QEMU has been recently split into sub-components and as a one-time operation to avoid breakage of tools, we are setting the QEMU sub-component of this BZ to "General". Please review and change the sub-component if necessary the next time you review this BZ. Thanks
Tested this bug with qemu-kvm-4.2.0-13.module+el8.2.0+5898+fb4bceae.x86_64 # /usr/bin/qemu-trace-stap list /usr/libexec/qemu-kvm Traceback (most recent call last): File "/usr/bin/qemu-trace-stap", line 175, in <module> main() File "/usr/bin/qemu-trace-stap", line 171, in main args.func(args) File "/usr/bin/qemu-trace-stap", line 118, in cmd_list print_probes(args.verbose, "*") File "/usr/bin/qemu-trace-stap", line 107, in print_probes env=tapset_env(tapsets)) File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__ restore_signals, start_new_session) File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'stap': 'stap' Hi Stefan, Is it expected result?
> FileNotFoundError: [Errno 2] No such file or directory: 'stap': 'stap' You need to install the systemtap packages.
Verified bug with qemu-kvm-4.2.0-13.module+el8.2.0+5898+fb4bceae.x86_64 and 4.18.0-183.el8.x86_64 /usr/bin/qemu-trace-stap list /usr/libexec/qemu-kvm acpi_pci_down_read acpi_pci_ej_write acpi_pci_eject_slot acpi_pci_features_read acpi_pci_rmv_read ..... wct_cmd_re wct_cmd_sp wct_cmd_st wct_cmd_ts wct_init wct_speed x86_iommu_iec_notify The fixed qemu-kvm works. So set this bug as verfied.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2017