[PATCH] Enable perf jvmti plugin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,
attached patch makes the jvmti perf plugin being packaged
under perf package, tested with rpm build:

  $ rpm -qpl /home/jolsa/rpmbuild/RPMS/x86_64/perf-4.10.0-0.rc3.git3.1.fc25.x86_64.rpm | grep jvm
  /usr/lib64/libperf-jvmti.so

Laura,
it needs your patch first to be included in fedora kernel sources:
  cd7f355ac406 perf jvmti: Create libdir directory before installing libperf-jvmti.so

so far it's in Ingo's tree, I guess it'll soon hit the linus tree.

jirka


---
Enabling the build of the jvmti perf plugin and install it under:
  /usr/lib64/libperf-jvmti.so

Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx>
---
 kernel.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kernel.spec b/kernel.spec
index 938b776cde3b..b7c9f8c4486e 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -382,6 +382,7 @@ BuildRequires: sparse
 %if %{with_perf}
 BuildRequires: zlib-devel binutils-devel newt-devel python-devel perl(ExtUtils::Embed) bison flex xz-devel
 BuildRequires: audit-libs-devel
+BuildRequires: java-devel
 %ifnarch s390 s390x %{arm}
 BuildRequires: numactl-devel
 %endif
@@ -1649,7 +1650,7 @@ BuildKernel %make_target %kernel_image
 %endif
 
 %global perf_make \
-  make -s EXTRA_CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="%{__global_ldflags}" %{?cross_opts} -C tools/perf V=1 NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_STRLCPY=1 NO_BIONIC=1 NO_JVMTI=1 prefix=%{_prefix}
+  make -s EXTRA_CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="%{__global_ldflags}" %{?cross_opts} -C tools/perf V=1 NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_STRLCPY=1 NO_BIONIC=1 prefix=%{_prefix}
 %if %{with_perf}
 # perf
 # make sure check-headers.sh is executable
@@ -2014,6 +2015,7 @@ fi
 %files -n perf
 %defattr(-,root,root)
 %{_bindir}/perf
+%{_libdir}/libperf-jvmti.so
 %dir %{_libdir}/traceevent/plugins
 %{_libdir}/traceevent/plugins/*
 %dir %{_libexecdir}/perf-core
-- 
2.9.3
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux