Projects
Eulaceura:Mainline:GA
dim
_service:obs_scm:backport-Dont-queue-measuremen...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:backport-Dont-queue-measurement-task-when-baseline-failed.patch of Package dim
From 6617fb034f69009893c33c8dd6b4e1485b77800f Mon Sep 17 00:00:00 2001 From: Huaxin Lu <luhuaxin1@huawei.com> Date: Wed, 14 Feb 2024 13:21:27 +0800 Subject: [PATCH 17/26] Dont queue measurement task when baseline failed --- src/core/dim_core_measure.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/dim_core_measure.c b/src/core/dim_core_measure.c index 4ccbd0c..ff134e5 100644 --- a/src/core/dim_core_measure.c +++ b/src/core/dim_core_measure.c @@ -120,6 +120,10 @@ static void measure_work_cb(struct work_struct *work) static void baseline_work_cb(struct work_struct *work) { dim_measure_task_measure(DIM_BASELINE, &dim_core_handle); + /* if baseline is failed, dont perform measurement */ + if (dim_measure_status_error(&dim_core_handle)) + return; + queue_delayed_measure_work(); } @@ -244,4 +248,4 @@ void dim_core_measure_destroy(void) dim_measure_destroy(&dim_core_handle); dim_core_policy_destroy(); mutex_unlock(&dim_core_measure_lock); -} \ No newline at end of file +} -- 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