From c9e873ad840d674780ff07d8cc047f0112cc77f8 Mon Sep 17 00:00:00 2001 From: Lianjun Zhang Atlas Date: Tue, 22 Apr 2025 09:39:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=A7=E8=83=BD=E5=AE=9A=E7=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/taskd/taskd/go/backend_api.go | 4 ++++ .../framework_backend/worker/monitor/profiling/mspti_api.go | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/component/taskd/taskd/go/backend_api.go b/component/taskd/taskd/go/backend_api.go index decee1461..0557ec9e9 100644 --- a/component/taskd/taskd/go/backend_api.go +++ b/component/taskd/taskd/go/backend_api.go @@ -51,6 +51,10 @@ func InitTaskMonitor(rank int, upperLimitOfDiskInMb int) C.int { return C.int(1) } hwlog.RunLog.Info("successfully init mspti lib so") + hwlog.RunLog.Info("will not deal any records") + fmt.Print("WARN: new package will not deal any records") + fmt.Print("WARN: new package will not deal any records") + fmt.Print("WARN: new package will not deal any records") // listen to system signal sigChan := make(chan os.Signal, 1) var cancel context.CancelFunc diff --git a/component/taskd/taskd/go/framework_backend/worker/monitor/profiling/mspti_api.go b/component/taskd/taskd/go/framework_backend/worker/monitor/profiling/mspti_api.go index 1910e41a7..d74cb79e8 100644 --- a/component/taskd/taskd/go/framework_backend/worker/monitor/profiling/mspti_api.go +++ b/component/taskd/taskd/go/framework_backend/worker/monitor/profiling/mspti_api.go @@ -301,7 +301,8 @@ func dealBufferCompleted(buffer *C.uint8_t, size C.size_t, validSize C.size_t) { buffer = nil } }() - if validSize > 0 { + ok := false + if ok { runtime.LockOSThread() defer runtime.UnlockOSThread() var status C.msptiResult -- Gitee