!54 Backport aarch64 instrumentation support from 18.1.0
From: @rfwang07 Reviewed-by: @li-yancheng Signed-off-by: @li-yancheng
This commit is contained in:
commit
32ef74d897
2630
0009-support-aarch64-instrumentation.patch
Normal file
2630
0009-support-aarch64-instrumentation.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
Name: %{pkg_name}
|
Name: %{pkg_name}
|
||||||
Version: %{bolt_version}
|
Version: %{bolt_version}
|
||||||
Release: 9
|
Release: 10
|
||||||
Summary: BOLT is a post-link optimizer developed to speed up large applications
|
Summary: BOLT is a post-link optimizer developed to speed up large applications
|
||||||
License: Apache 2.0
|
License: Apache 2.0
|
||||||
URL: https://github.com/llvm/llvm-project/tree/main/bolt
|
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
|
Patch6: 0006-AArch64-Add-CFG-block-count-correction-optimization.patch
|
||||||
Patch7: 0007-BOLT-Skip-PLT-search-for-zero-value-weak-reference-symbols.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
|
Patch8: 0008-merge-fdata-Support-process-no_lbr-profile-file.patch
|
||||||
|
Patch9: 0009-support-aarch64-instrumentation.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -107,6 +108,10 @@ find %{buildroot}%{install_prefix} \
|
|||||||
! -name "libbolt_rt_instr.a" \
|
! -name "libbolt_rt_instr.a" \
|
||||||
-type f,l -exec rm -f '{}' \;
|
-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.
|
# Remove files installed during the build phase.
|
||||||
rm -f %{buildroot}/%{_builddir}/%{bolt_srcdir}/%{_vpath_builddir}/%{_lib}/lib*.a
|
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}/perf2bolt
|
||||||
%{install_bindir}/llvm-bolt-heatmap
|
%{install_bindir}/llvm-bolt-heatmap
|
||||||
|
|
||||||
|
%{install_libdir}/libbolt_rt_instr.a
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%{install_libdir}/libbolt_rt_hugify.a
|
%{install_libdir}/libbolt_rt_hugify.a
|
||||||
%{install_libdir}/libbolt_rt_instr.a
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%exclude %{_builddir}/%{bolt_srcdir}/lib/*
|
%exclude %{_builddir}/%{bolt_srcdir}/lib/*
|
||||||
@ -149,6 +154,12 @@ rm -f %{buildroot}/%{_builddir}/%{bolt_srcdir}/%{_vpath_builddir}/%{_lib}/lib*.a
|
|||||||
%doc %{install_docdir}
|
%doc %{install_docdir}
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Sep 10 2024 liyancheng <412998149@qq.com> 17.0.6-9
|
||||||
- Type:Bugfix
|
- Type:Bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user