Projects
openEuler:Mainline
systemtap
_service:tar_scm:huawei-fix-py3example-script-r...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:huawei-fix-py3example-script-run-fail2.patch of Package systemtap
From ee556777a8f7d46ccfe0d53dd1088ab1724c9e42 Mon Sep 17 00:00:00 2001 From: langfei <langfei@huawei.com> Date: Wed, 5 Jul 2023 10:40:41 +0800 Subject: [PATCH] fix py3example script run fail2 Signed-off-by: langfei <langfei@huawei.com> --- .../systemtap.examples/general/tapset/python3_local.stp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testsuite/systemtap.examples/general/tapset/python3_local.stp b/testsuite/systemtap.examples/general/tapset/python3_local.stp index 4e26946..197be47 100644 --- a/testsuite/systemtap.examples/general/tapset/python3_local.stp +++ b/testsuite/systemtap.examples/general/tapset/python3_local.stp @@ -182,7 +182,7 @@ function p3_get_dict_hash (dict, i) { n = @cast (dict, "PyDictObject", @PYTHON3_LIBRARY)->ma_used; if (i > n || entries == 0) return 0 - return @cast (entries, "PyDictKeysObject", @PYTHON3_LIBRARY)->dk_entries[i]->me_hash + return @cast (@DK_ENTRIES(entries), "PyDictKeyEntry", @PYTHON3_LIBRARY)[i]->me_hash } # FUNCTION P3_GET_DICT_KEY @@ -195,7 +195,7 @@ function p3_get_dict_key (dict, i) { n = @cast (dict, "PyDictObject", @PYTHON3_LIBRARY)->ma_used; if (i > n || entries == 0) return 0 - return @cast (entries, "PyDictKeysObject", @PYTHON3_LIBRARY)->dk_entries[i]->me_key + return @cast (@DK_ENTRIES(entries), "PyDictKeyEntry", @PYTHON3_LIBRARY)[i]->me_key } # FUNCTION P3_GET_DICT_VALUE @@ -214,7 +214,7 @@ function p3_get_dict_value (dict, i) { n = @cast (dict, "PyDictObject", @PYTHON3_LIBRARY)->ma_used; if (i > n || entries == 0) return 0 - return @cast (entries, "PyDictKeysObject", @PYTHON3_LIBRARY)->dk_entries[i]->me_value + return @cast (@DK_ENTRIES(entries), "PyDictKeyEntry", @PYTHON3_LIBRARY)[i]->me_value } } -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2