From 175b8a2cb711cde2eefe2b1f5a0e315ee5642ca5 Mon Sep 17 00:00:00 2001 From: Bing Xia Date: Thu, 14 Mar 2024 09:45:04 +0800 Subject: [PATCH] perf: add CoreSight trace component support on aarch64 platform Add libopencsd BuildRequires and make perf tool with build config (CORESIGHT=1) to support CoreSight trace component. --- kernel.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/kernel.spec b/kernel.spec index 87960ba..df419c8 100644 --- a/kernel.spec +++ b/kernel.spec @@ -11,7 +11,7 @@ %global upstream_sublevel 0 %global devel_release 191 %global maintenance_release .0.0 -%global pkg_release .94 +%global pkg_release .95 %define with_debuginfo 1 # Do not recompute the build-id of vmlinux in find-debuginfo.sh @@ -128,6 +128,9 @@ ExclusiveOS: Linux %if %{with_perf} BuildRequires: flex xz-devel libzstd-devel BuildRequires: java-devel +%ifarch aarch64 +BuildRequires: OpenCSD +%endif %endif BuildRequires: dwarves @@ -378,8 +381,14 @@ make ARCH=%{Arch} modules %{?_smp_mflags} ## make tools %if %{with_perf} # perf +%ifarch aarch64 +# aarch64 make perf with CORESIGHT=1 +%global perf_make \ + make EXTRA_CFLAGS="-Wl,-z,now -g -Wall -fstack-protector-strong -fPIC" EXTRA_PERFLIBS="-fpie -pie" %{?_smp_mflags} -s V=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_LIBNUMA=1 NO_STRLCPY=1 CORESIGHT=1 prefix=%{_prefix} +%else %global perf_make \ make EXTRA_CFLAGS="-Wl,-z,now -g -Wall -fstack-protector-strong -fPIC" EXTRA_PERFLIBS="-fpie -pie" %{?_smp_mflags} -s V=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_LIBNUMA=1 NO_STRLCPY=1 prefix=%{_prefix} +%endif %if 0%{?with_python2} %global perf_python2 -C tools/perf PYTHON=%{__python2} %global perf_python3 -C tools/python3-perf PYTHON=%{__python3} @@ -943,6 +952,9 @@ fi %endif %changelog +* Thu Mar 14 2024 Bing Xia - 5.10.0-191.0.0.95 +- perf: add CoreSight trace component support on aarch64 platform + * Wed Mar 13 2024 Jialin Zhang - 5.10.0-191.0.0.94 - !5152 arm64/mpam: Remove warning about no msc corresponding to the online cpu - arm64/mpam: Remove warning about no msc corresponding to the online cpu