From 7183e88b78b01fc5fed175a93aefc15718b7de4d Mon Sep 17 00:00:00 2001 From: wuying39 <921169248@qq.com> Date: Thu, 17 Jul 2025 14:46:41 +0800 Subject: [PATCH] fix python API error --- python/modules/_libkperf/Pmu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/modules/_libkperf/Pmu.py b/python/modules/_libkperf/Pmu.py index e24f535..572e461 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): -- Gitee