!21 update to 2.9.1

From: @zhangyiru330
Reviewed-by: 
Signed-off-by:
This commit is contained in:
openeuler-ci-bot 2021-12-03 07:16:01 +00:00 committed by Gitee
commit 6880eea88f
5 changed files with 18 additions and 14 deletions

View File

@ -25,7 +25,7 @@ index c3ce41c..1001fb3 100644
const Entry& e = entries[i]; const Entry& e = entries[i];
base::RawPrinter printer(buffer, kBufSize); base::RawPrinter printer(buffer, kBufSize);
- printer.Printf("Leak of %d bytes in %d objects allocated from:\n", - printer.Printf("Leak of %d bytes in %d objects allocated from:\n",
+ printer.Printf("Leak of %" PRIuS " bytes in %d objects allocated from:\n", + printer.Printf("Leak of %zu bytes in %d objects allocated from:\n",
e.bytes, e.count); e.bytes, e.count);
for (int j = 0; j < e.bucket->depth; j++) { for (int j = 0; j < e.bucket->depth; j++) {
const void* pc = e.bucket->stack[j]; const void* pc = e.bucket->stack[j];

Binary file not shown.

BIN
gperftools-2.9.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,6 +1,6 @@
Name: gperftools Name: gperftools
Version: 2.8.1 Version: 2.9.1
Release: 4 Release: 1
Summary: high-performance malloc and performance analysis tools Summary: high-performance malloc and performance analysis tools
License: BSD License: BSD
@ -9,10 +9,10 @@ Source0: https://github.com/gperftools/gperftools/releases/download/%{name}-%{ve
patch1: gperftools-generic-dynamic-tls.patch patch1: gperftools-generic-dynamic-tls.patch
Patch9000: issue-1122-fix-bus-error-on-aarch64.patch Patch9000: issue-1122-fix-bus-error-on-aarch64.patch
#https://github.com/gperftools/gperftools/issues/1309 #https://github.com/gperftools/gperftools/issues/1309
Patch9001: skip-arm-in-stacktrace_unittest.patch #Patch9001: skip-arm-in-stacktrace_unittest.patch
#https://github.com/gperftools/gperftools/issues/890 #https://github.com/gperftools/gperftools/issues/890
Patch9002: skip-heapchecker-in-arm-arch.patch Patch9001: skip-heapchecker-in-arm-arch.patch
Patch9003: avoid-exceed-int-range.patch Patch9002: avoid-exceed-int-range.patch
BuildRequires: autoconf automake gcc-c++ BuildRequires: autoconf automake gcc-c++
BuildRequires: libtool libunwind-devel perl-generators BuildRequires: libtool libunwind-devel perl-generators
@ -107,6 +107,9 @@ LD_LIBRARY_PATH=./.libs make check
%{_mandir}/man1/*.1.gz %{_mandir}/man1/*.1.gz
%changelog %changelog
* Mon Nov 29 2021 zhangyiru <zhangyiru3@huawei.com> - 2.9.1-1
- update to 2.9.1
* Tue Nov 9 2021 zhangyiru <zhangyiru3@huawei.com> - 2.8.1-4 * Tue Nov 9 2021 zhangyiru <zhangyiru3@huawei.com> - 2.8.1-4
- avoid exceed int range when use heapchecker - avoid exceed int range when use heapchecker

View File

@ -1,7 +1,7 @@
From a4ae4584f8e38fb96ed7adc33231afd19f161e1a Mon Sep 17 00:00:00 2001 From abf1ed0ce1340320474a4cf3b790b7b741b9a577 Mon Sep 17 00:00:00 2001
From: zhangyiru <zhangyiru3@huawei.com> From: zhangyiru <zhangyiru3@huawei.com>
Date: Wed, 20 Oct 2021 11:29:09 -0400 Date: Mon, 29 Nov 2021 10:35:01 +0800
Subject: [PATCH] skip-arm-in-stacktrace_unittest Subject: [PATCH] skip stacktrace_unittest in arm
the calling of unw_step in arm stacktrace_unittest is incorrect, but the the calling of unw_step in arm stacktrace_unittest is incorrect, but the
function is not affected, so skip it. function is not affected, so skip it.
@ -12,10 +12,10 @@ Signed-off-by: zhangyiru <zhangyiru3@huawei.com>
1 file changed, 5 insertions(+) 1 file changed, 5 insertions(+)
diff --git a/src/tests/stacktrace_unittest.cc b/src/tests/stacktrace_unittest.cc diff --git a/src/tests/stacktrace_unittest.cc b/src/tests/stacktrace_unittest.cc
index 3c9f735..37a90a6 100644 index e55a632..85c0bcd 100644
--- a/src/tests/stacktrace_unittest.cc --- a/src/tests/stacktrace_unittest.cc
+++ b/src/tests/stacktrace_unittest.cc +++ b/src/tests/stacktrace_unittest.cc
@@ -188,7 +188,12 @@ void ATTRIBUTE_NOINLINE CheckStackTrace(int i) { @@ -285,8 +285,13 @@ void ATTRIBUTE_NOINLINE CheckStackTrace(int i) {
//-----------------------------------------------------------------------// //-----------------------------------------------------------------------//
int main(int argc, char ** argv) { int main(int argc, char ** argv) {
@ -26,8 +26,9 @@ index 3c9f735..37a90a6 100644
+ printf("ARM SKIP\n"); + printf("ARM SKIP\n");
+ exit(77); + exit(77);
+#endif +#endif
return 0;
} #if TEST_UCONTEXT_BITS
leaf_capture_fn = CaptureLeafUContext;
-- --
2.27.0 1.8.3.1