import memstrack-0.1.11-1.el8

This commit is contained in:
CentOS Sources 2020-08-07 18:29:01 +00:00 committed by Andrew Lukoshko
parent 45b22a70c3
commit 983bd79d68
5 changed files with 9 additions and 63 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/memstrack-afc06ba.tar.gz
SOURCES/memstrack-bdc9386.tar.gz

View File

@ -1 +1 @@
fbdd189cded49991eead6a7c7ad683f152366c21 SOURCES/memstrack-afc06ba.tar.gz
47747f1a981523c9c5caadf7c0ccb30baa3edabb SOURCES/memstrack-bdc9386.tar.gz

View File

@ -1,25 +0,0 @@
From 94423edf9662e15af7e6b1e146bc3e688c7cd538 Mon Sep 17 00:00:00 2001
From: Kairui Song <kasong@redhat.com>
Date: Mon, 13 Jul 2020 18:50:28 +0800
Subject: [PATCH] Fix TUI not responding on quit
---
src/tui.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tui.c b/src/tui.c
index a84fe74..726e729 100644
--- a/src/tui.c
+++ b/src/tui.c
@@ -340,7 +340,7 @@ void tui_loop(void) {
case 'q':
case 'Q':
endwin();
- /// m_exit(0);
+ m_exit(0);
return;
case 'm':
--
2.26.2

View File

@ -1,27 +0,0 @@
From 41058049dd777f09872c822402913c40edee8e39 Mon Sep 17 00:00:00 2001
From: Kairui Song <kasong@redhat.com>
Date: Tue, 14 Jul 2020 01:35:36 +0800
Subject: [PATCH] Fix unittest failure
---
src/tests/unittesdt.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/tests/unittesdt.h b/src/tests/unittesdt.h
index b6a4269..2199d9e 100644
--- a/src/tests/unittesdt.h
+++ b/src/tests/unittesdt.h
@@ -29,6 +29,10 @@ int m_log(int level, const char *__restrict fmt, ...){
return ret;
}
+void m_exit(int ret){
+ return;
+}
+
void dump_task(struct Task *task) {
printf("Task %s: page_alloc: %ld, peak_alloc_peak: %ld\n",
task->task_name,
--
2.26.2

View File

@ -1,11 +1,11 @@
# vim: syntax=spec
%global gitcommit afc06babd50695ea5c07c811e48d4c75c05b60aa
%global gitcommit bdc9386376f377218b25624a580a39c4d5917f71
%global gitshortcommit %(c=%{gitcommit}; echo ${c:0:7})
%global snapshotdate 20200628
%global snapshotdate 20200806
Name: memstrack
Version: 0.1.8
Release: 2%{?dist}
Version: 0.1.11
Release: 1%{?dist}
Summary: A memory allocation tracer, like a hot spot analyzer for memory allocation
License: GPLv3
URL: https://github.com/ryncsn/memstrack
@ -14,8 +14,6 @@ BuildRequires: gcc
BuildRequires: ncurses-devel
Source: https://github.com/ryncsn/memstrack/archive/%{gitcommit}/memstrack-%{gitshortcommit}.tar.gz
Patch0: 0001-Fix-TUI-not-responding-on-quit.patch
Patch1: 0002-Fix-unittest-failure.patch
%description
A memory allocation tracer, like a hot spot analyzer for memory allocation
@ -23,9 +21,6 @@ A memory allocation tracer, like a hot spot analyzer for memory allocation
%prep
%setup -q -n memstrack-%{gitcommit}
%patch0 -p1
%patch1 -p1
%build
%{set_build_flags}
make %{?_smp_mflags}
@ -40,6 +35,9 @@ install -p -m 755 memstrack %{buildroot}/%{_bindir}
%{_bindir}/memstrack
%changelog
* Tue Aug 6 2020 Kairui Song <kasong@redhat.com> - 0.1.11-1
- Fix memstrack failure with large memory hole
* Tue Jul 14 2020 Kairui Song <kasong@redhat.com> - 0.1.8-2
- Fix TUI not quiting issue