atune update Makefile and logs
This commit is contained in:
parent
9ae0f29807
commit
850a27ac15
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
|
||||
Name: atune
|
||||
Version: 1.0.0
|
||||
Release: 13
|
||||
Release: 14
|
||||
License: MulanPSL-2.0
|
||||
URL: https://gitee.com/openeuler/A-Tune
|
||||
Source: https://gitee.com/openeuler/A-Tune/repository/archive/v%{version}.tar.gz
|
||||
@ -18,6 +18,7 @@ Patch9006: 0001-bugfix-transfer-can-only-save-file-to-specified-dir.patch
|
||||
Patch9007: 0002-bugfix-training-model-can-only-save-file-to-specifie.patch
|
||||
Patch9008: 0003-bugfix-collection-res-can-only-save-file-to-specifie.patch
|
||||
Patch9009: 0004-atune-add-service-restart-mode.patch
|
||||
Patch9010: 0005-atune-update-Makefile-and-logs.patch
|
||||
|
||||
|
||||
BuildRequires: rpm-build golang-bin procps-ng
|
||||
@ -90,6 +91,7 @@ atune engine tool for manage atuned AI tuning system.
|
||||
%patch9007 -p1
|
||||
%patch9008 -p1
|
||||
%patch9009 -p1
|
||||
%patch9010 -p1
|
||||
|
||||
%build
|
||||
%make_build
|
||||
@ -179,6 +181,9 @@ atune engine tool for manage atuned AI tuning system.
|
||||
%exclude /etc/atuned/rest_certs
|
||||
|
||||
%changelog
|
||||
* Tue Oct 17 2023 sunchendong <sunchendong@xfusion.com> - 1.0.0-14
|
||||
- atune update Makefile and logs
|
||||
|
||||
* Fri Aug 25 2023 sunchendong <sunchendong@xfusion.com> - 1.0.0-13
|
||||
- atune add service restart mode
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user