Browse code

Added to tool: perf from linux-tools package.

Change-Id: Ifb55ff4ace8e46ad7814f74c7af2033a479df4f7
Reviewed-on: http://photon-jenkins.eng.vmware.com/226
Reviewed-by: Sharath George
Tested-by: Sharath George

harishspqr authored on 2015/12/08 06:50:16
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,39 @@
0
+Summary:     This package contains the 'perf' performance analysis tools for Linux kernel 
1
+Name:        linux-tools
2
+Version:    4.2.0
3
+Release:    1%{?dist}
4
+License:    GPLv2
5
+URL:        http://www.kernel.org/
6
+Group:        System/Tools
7
+Vendor:        VMware, Inc.
8
+Distribution: Photon
9
+Source0:    http://www.kernel.org/pub/linux/kernel/v4.x/linux-4.2.tar.xz
10
+%define sha1 linux=5e65d0dc94298527726fcd7458b6126e60fb2a8a
11
+Requires:         filesystem kmod coreutils
12
+
13
+%description
14
+This package contains the 'perf' performance analysis tools for Linux kernel. 
15
+
16
+%prep
17
+%setup -q -n linux-4.2
18
+
19
+%build
20
+cd tools/perf
21
+make 
22
+
23
+%install
24
+cd tools
25
+make DESTDIR=%{buildroot} prefix=%{_prefix} perf_install 
26
+mv %{buildroot}/usr/lib64 %{buildroot}%{_libdir}
27
+
28
+%files
29
+%defattr(-,root,root)
30
+/usr/libexec
31
+%{_libdir}
32
+%{_bindir}
33
+/etc
34
+
35
+%changelog
36
+*   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 3.13.3-1
37
+-   Initial build. First version
38
+
... ...
@@ -88,6 +88,7 @@
88 88
         "dstat",
89 89
         "libconfig",
90 90
         "iptraf",
91
+		"linux-tools",
91 92
         "nicstat",
92 93
         "lldpad",
93 94
 	    "mingetty",