Backport aarch64 instrumentation support from 18.1.0

This commit is contained in:
rfwang07 2024-10-31 15:38:31 +08:00
parent e0ef578f2b
commit 111ac97d9b
2 changed files with 2643 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -22,7 +22,7 @@
Name: %{pkg_name}
Version: %{bolt_version}
Release: 9
Release: 10
Summary: BOLT is a post-link optimizer developed to speed up large applications
License: Apache 2.0
URL: https://github.com/llvm/llvm-project/tree/main/bolt
@ -38,6 +38,7 @@ Patch5: 0005-BOLT-AArch64-Don-t-change-layout-in-PatchEntries.patch
Patch6: 0006-AArch64-Add-CFG-block-count-correction-optimization.patch
Patch7: 0007-BOLT-Skip-PLT-search-for-zero-value-weak-reference-symbols.patch
Patch8: 0008-merge-fdata-Support-process-no_lbr-profile-file.patch
Patch9: 0009-support-aarch64-instrumentation.patch
BuildRequires: gcc
BuildRequires: gcc-c++
@ -107,6 +108,10 @@ find %{buildroot}%{install_prefix} \
! -name "libbolt_rt_instr.a" \
-type f,l -exec rm -f '{}' \;
%ifarch aarch64
find %{buildroot}%{install_prefix} -name "libbolt_rt_hugify.a" -type f,l -exec rm -f '{}' \;
%endif
# Remove files installed during the build phase.
rm -f %{buildroot}/%{_builddir}/%{bolt_srcdir}/%{_vpath_builddir}/%{_lib}/lib*.a
@ -138,9 +143,9 @@ rm -f %{buildroot}/%{_builddir}/%{bolt_srcdir}/%{_vpath_builddir}/%{_lib}/lib*.a
%{install_bindir}/perf2bolt
%{install_bindir}/llvm-bolt-heatmap
%{install_libdir}/libbolt_rt_instr.a
%ifarch x86_64
%{install_libdir}/libbolt_rt_hugify.a
%{install_libdir}/libbolt_rt_instr.a
%endif
%exclude %{_builddir}/%{bolt_srcdir}/lib/*
@ -149,6 +154,12 @@ rm -f %{buildroot}/%{_builddir}/%{bolt_srcdir}/%{_vpath_builddir}/%{_lib}/lib*.a
%doc %{install_docdir}
%changelog
* Thu Oct 31 2024 rfwang07 <wangrufeng5@huawei.com> 17.0.6-10
- Type:Backport
- ID:NA
- SUG:NA
- DESC: Backport aarch64 instrumentation support from 18.1.0
* Tue Sep 10 2024 liyancheng <412998149@qq.com> 17.0.6-9
- Type:Bugfix
- ID:NA