diff --git a/python/modules/_libkperf/Pmu.py b/python/modules/_libkperf/Pmu.py index e24f5352f7ad5da877447c58e9122c2e33942e36..572e461314e5bd4dca4bc55452eccdc9050acc76 100644 --- a/python/modules/_libkperf/Pmu.py +++ b/python/modules/_libkperf/Pmu.py @@ -1790,7 +1790,7 @@ def PmuDeviceBdfList(bdf_type): c_bdf_list = c_PmuDeviceBdfList(c_bdf_type, ctypes.byref(c_num_bdf)) - return [c_bdf_list.decode(UTF_8) for i in range(c_num_bdf.value)] + return [c_bdf_list[i].decode(UTF_8) for i in range(c_num_bdf.value)] def PmuDeviceOpen(device_attr):