!119 atune update Makefile and logs
From: @ChendongSun Reviewed-by: @gaoruoshu Signed-off-by: @gaoruoshu
This commit is contained in:
commit
4227fad8b9
64
0005-atune-update-Makefile-and-logs.patch
Normal file
64
0005-atune-update-Makefile-and-logs.patch
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
From f1fa941597af1b27278b430c1f7172fc5820d0ac Mon Sep 17 00:00:00 2001
|
||||||
|
From: gaoruoshu <gaoruoshu@huawei.com>
|
||||||
|
Date: Wed, 16 Aug 2023 12:39:37 +0800
|
||||||
|
Subject: [PATCH] [atune]update Makefile and logs
|
||||||
|
|
||||||
|
---
|
||||||
|
Makefile | 10 ++++------
|
||||||
|
common/profile/profile.go | 2 +-
|
||||||
|
2 files changed, 5 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index bcac447..5c76b4e 100755
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -46,14 +46,13 @@ clean:
|
||||||
|
rm -rf $(PKGPATH)/*
|
||||||
|
|
||||||
|
cleanall: clean
|
||||||
|
- rm -rf $(DESTDIR)/etc/atuned/
|
||||||
|
+ rm -rf $(DESTDIR)/etc/atune*
|
||||||
|
rm -rf $(DESTDIR)$(PREFIX)/lib/atuned/
|
||||||
|
rm -rf $(DESTDIR)$(PREFIX)/share/atuned/
|
||||||
|
rm -rf $(DESTDIR)$(PREFIX)/$(LIBEXEC)/atuned/
|
||||||
|
rm -rf $(DESTDIR)/var/lib/atuned/
|
||||||
|
rm -rf $(DESTDIR)/var/run/atuned/
|
||||||
|
- rm -rf $(DESTDIR)/var/atuned/
|
||||||
|
- rm -rf $(DESTDIR)/var/atune_data/
|
||||||
|
+ rm -rf $(DESTDIR)/var/atune*
|
||||||
|
|
||||||
|
db:
|
||||||
|
sqlite3 database/atuned.db ".read database/init.sql"
|
||||||
|
@@ -72,14 +71,13 @@ libinstall:
|
||||||
|
@echo "BEGIN INSTALL A-Tune..."
|
||||||
|
mkdir -p $(BINDIR)
|
||||||
|
mkdir -p $(SYSTEMDDIR)
|
||||||
|
- rm -rf $(DESTDIR)/etc/atuned/
|
||||||
|
+ rm -rf $(DESTDIR)/etc/atune*
|
||||||
|
rm -rf $(DESTDIR)$(PREFIX)/lib/atuned/
|
||||||
|
rm -rf $(DESTDIR)$(PREFIX)/share/atuned/
|
||||||
|
rm -rf $(DESTDIR)$(PREFIX)/$(LIBEXEC)/atuned/
|
||||||
|
rm -rf $(DESTDIR)/var/lib/atuned/
|
||||||
|
rm -rf $(DESTDIR)/var/run/atuned/
|
||||||
|
- rm -rf $(DESTDIR)/var/atuned/
|
||||||
|
- rm -rf $(DESTDIR)/var/atune_data/
|
||||||
|
+ rm -rf $(DESTDIR)/var/atune*
|
||||||
|
mkdir -p $(DESTDIR)/etc/atuned/tuning
|
||||||
|
mkdir -p $(DESTDIR)/etc/atuned/rules
|
||||||
|
mkdir -p $(DESTDIR)/etc/atuned/training
|
||||||
|
diff --git a/common/profile/profile.go b/common/profile/profile.go
|
||||||
|
index 264fdd8..43a4e77 100644
|
||||||
|
--- a/common/profile/profile.go
|
||||||
|
+++ b/common/profile/profile.go
|
||||||
|
@@ -294,7 +294,7 @@ func (p *Profile) ItemSort() error {
|
||||||
|
} else {
|
||||||
|
itemQuery, err := sqlstore.GetPropertyItem(key.Name())
|
||||||
|
if err != nil {
|
||||||
|
- log.Errorf("key %s is not exist in tuned_item", key.Name())
|
||||||
|
+ log.Infof("key %s is not exist in tuned_item", key.Name())
|
||||||
|
itemName = "OTHERS"
|
||||||
|
} else {
|
||||||
|
itemName = itemQuery
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -3,7 +3,7 @@
|
|||||||
Summary: AI auto tuning system
|
Summary: AI auto tuning system
|
||||||
Name: atune
|
Name: atune
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 11
|
Release: 12
|
||||||
License: Mulan PSL v2
|
License: Mulan PSL v2
|
||||||
URL: https://gitee.com/openeuler/A-Tune
|
URL: https://gitee.com/openeuler/A-Tune
|
||||||
Source: https://gitee.com/openeuler/A-Tune/repository/archive/v%{version}.tar.gz
|
Source: https://gitee.com/openeuler/A-Tune/repository/archive/v%{version}.tar.gz
|
||||||
@ -17,6 +17,7 @@ Patch9005: 0001-bugfix-transfer-can-only-save-file-to-specified-dir.patch
|
|||||||
Patch9006: 0002-bugfix-training-model-can-only-save-file-to-specifie.patch
|
Patch9006: 0002-bugfix-training-model-can-only-save-file-to-specifie.patch
|
||||||
Patch9007: 0003-bugfix-collection-res-can-only-save-file-to-specifie.patch
|
Patch9007: 0003-bugfix-collection-res-can-only-save-file-to-specifie.patch
|
||||||
Patch9008: 0004-atune-add-service-restart-mode.patch
|
Patch9008: 0004-atune-add-service-restart-mode.patch
|
||||||
|
Patch9009: 0005-atune-update-Makefile-and-logs.patch
|
||||||
|
|
||||||
BuildRequires: rpm-build golang-bin procps-ng
|
BuildRequires: rpm-build golang-bin procps-ng
|
||||||
BuildRequires: sqlite >= 3.24.0 openssl
|
BuildRequires: sqlite >= 3.24.0 openssl
|
||||||
@ -169,6 +170,9 @@ cp -af %{_prefix}/lib/golang/src/cmd/vendor/golang.org/x/sys vendor/golang.org/x
|
|||||||
%exclude /etc/atuned/rest_certs
|
%exclude /etc/atuned/rest_certs
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 17 2023 sunchendong <sunchendong@xfusion.com> - 1.0.0-12
|
||||||
|
- atune update Makefile and logs
|
||||||
|
|
||||||
* Fri Aug 25 2023 sunchendong <sunchendong@xfusion.com> - 1.0.0-11
|
* Fri Aug 25 2023 sunchendong <sunchendong@xfusion.com> - 1.0.0-11
|
||||||
- atune add service restart mode
|
- atune add service restart mode
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user