diff --git a/fix-typo-error-in-mspti.patch b/fix-typo-error-in-mspti.patch new file mode 100644 index 0000000000000000000000000000000000000000..02134ee53fceb1564049e11a4d4b3741ab5558d0 --- /dev/null +++ b/fix-typo-error-in-mspti.patch @@ -0,0 +1,34 @@ +From 9b9e44a8a86b75c2b36882d8f335d79a7ee69e03 Mon Sep 17 00:00:00 2001 +From: weli-l <1289113577@qq.com> +Date: Thu, 22 May 2025 20:25:44 +0800 +Subject: [PATCH] fix typo + +Signed-off-by: weli-l <1289113577@qq.com> +--- + sysTrace/src/mspti/json_file_writer.h | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/sysTrace/src/mspti/json_file_writer.h b/sysTrace/src/mspti/json_file_writer.h +index 27c3836..9b19788 100644 +--- a/sysTrace/src/mspti/json_file_writer.h ++++ b/sysTrace/src/mspti/json_file_writer.h +@@ -144,7 +144,6 @@ class MSPTIHcclFileWriter + markerJson["SourceKind"] = activity.sourceKind; + markerJson["Timestamp"] = activity.timestamp; + markerJson["Id"] = activity.id; +- markerJson["Domain"] = ""; + markerJson["Flag"] = activity.flag; + Json::Value msptiObjecId; + if (activity.sourceKind == MSPTI_ACTIVITY_SOURCE_KIND_HOST) +@@ -170,7 +169,7 @@ class MSPTIHcclFileWriter + msptiObjecId["Pt"] = pt; + msptiObjecId["Ds"] = ds; + } +- markerJson["msptiObjecId"] = msptiObjecId; ++ markerJson["msptiObjectId"] = msptiObjecId; + markerJson["Name"] = activity.name; + this->root.append(markerJson); + } +-- +2.43.0 + diff --git a/sysTrace.spec b/sysTrace.spec index a659c83532c9dc8f08084379c34aed778ab5a670..c1d61be255bdf0b9ff15c498e5e80190d206561b 100644 --- a/sysTrace.spec +++ b/sysTrace.spec @@ -2,7 +2,7 @@ %global _enable_debug_packages 0 Name: sysTrace Version: 1.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: System Tracing Library with Fail Slow Detection License: GPLv2 AND MulanPSL2 URL: https://gitee.com/src-openeuler/sysTrace @@ -13,11 +13,14 @@ BuildRequires: python3-devel python3-setuptools BuildRequires: boost-devel abseil-cpp-devel openssl-devel BuildRequires: protobuf-devel protobuf-compiler jsoncpp-devel protobuf-c protobuf-c-devel +Patch0001: fix-typo-error-in-mspti.patch + %description sysTrace is a system tracing library that provides low-level system tracing capabilities for debugging and performance analysis, bundled with fail slow detection module. + %package -n sysTrace-failslow Summary: Fail Slow Detection for AI Model Training and Inference Requires: python3-pyyaml python3-joblib python3-numpy @@ -29,7 +32,7 @@ Fail slow detection module for A-Ops project, providing detection capabilities for AI model training and inference scenarios. %prep -%setup -q -n %{name}-%{version} +%autosetup -n %{name}-%{version} -p1 %build cd sysTrace @@ -83,6 +86,9 @@ getent passwd systrace >/dev/null || \ %{_unitdir}/systrace-failslow.service %changelog +* Thu May 22 2025 liwei <1289113577@qq.com> - 1.0-3 +- fix typo in mspti + * Tue May 20 2025 liwei <1289113577@qq.com> - 1.0-2 - Upgrade sysTrace for cann memory alloc