Change-Id: Ie82c5d3c4af137868cb9679270d3e59d6994c5cb
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4588
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Srivatsa S. Bhat <srivatsab@vmware.com>
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,24 @@ |
0 |
+diff -Naur pcstat-master_orig/syscall_linux_arm64.go pcstat-master/syscall_linux_arm64.go |
|
1 |
+--- pcstat-master_orig/syscall_linux_arm64.go 1970-01-01 00:00:00.000000000 +0000 |
|
2 |
+@@ -0,0 +1,20 @@ |
|
3 |
++package pcstat |
|
4 |
++ |
|
5 |
++/* |
|
6 |
++ * Copyright 2018 Alexey Makhalov <amakhalov@vmware.com> |
|
7 |
++ * |
|
8 |
++ * Licensed under the Apache License, Version 2.0 (the "License"); |
|
9 |
++ * you may not use this file except in compliance with the License. |
|
10 |
++ * You may obtain a copy of the License at |
|
11 |
++ * |
|
12 |
++ * http://www.apache.org/licenses/LICENSE-2.0 |
|
13 |
++ * |
|
14 |
++ * Unless required by applicable law or agreed to in writing, software |
|
15 |
++ * distributed under the License is distributed on an "AS IS" BASIS, |
|
16 |
++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
17 |
++ * See the License for the specific language governing permissions and |
|
18 |
++ * limitations under the License. |
|
19 |
++ */ |
|
20 |
++ |
|
21 |
++ // https://github.com/torvalds/linux/blob/master/arch/arm64/include/asm/unistd32.h |
|
22 |
++const SYS_SETNS = 375 |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: A tool that inspect which pages of a file or files are being cached by the Linux kernel |
2 | 2 |
Name: pcstat |
3 | 3 |
Version: 1 |
4 |
-Release: 5%{?dist} |
|
4 |
+Release: 6%{?dist} |
|
5 | 5 |
License: Apache |
6 | 6 |
URL: https://github.com/tobert/pcstat |
7 | 7 |
Group: Development/Debuggers |
... | ... |
@@ -11,6 +11,7 @@ Source0: https://github.com/tobert/pcstat/archive/pcstat-1.zip |
11 | 11 |
%define sha1 pcstat=cd67c42d291763597dbe3fb19e8e367c54a4a898 |
12 | 12 |
Source1: https://github.com/golang/sys/golang-sys-08-02-2017.zip |
13 | 13 |
%define sha1 golang-sys=7f713451011d127755448c6603c15dc907bc47bc |
14 |
+Patch0: pcstat-aarch64-support.patch |
|
14 | 15 |
BuildRequires: unzip go audit git |
15 | 16 |
Requires: go |
16 | 17 |
%description |
... | ... |
@@ -18,6 +19,8 @@ A tool that inspect which pages of a file or files are being cached by the Linux |
18 | 18 |
|
19 | 19 |
%prep |
20 | 20 |
%setup -qn pcstat-master |
21 |
+%patch0 -p1 |
|
22 |
+ |
|
21 | 23 |
%build |
22 | 24 |
cd .. |
23 | 25 |
unzip %{SOURCE1} |
... | ... |
@@ -49,6 +52,8 @@ rm -rf %{buildroot}/* |
49 | 49 |
%{_bindir}/pcstat |
50 | 50 |
|
51 | 51 |
%changelog |
52 |
+* Wed Jan 03 2018 Alexey Makhalov <amakhalov@vmware.com> 1-6 |
|
53 |
+- Aarch64 support |
|
52 | 54 |
* Wed Aug 02 2017 Dheeraj Shetty <dheerajs@vmware.com> 1-5 |
53 | 55 |
- Remove the build time dependencies and avoid downloading from github |
54 | 56 |
* Tue Mar 07 2017 XIaolin Li <xiaolinl@vmware.com> 1-4 |
... | ... |
@@ -384,8 +384,6 @@ class constants(object): |
384 | 384 |
"kubernetes-dashboard.spec", |
385 | 385 |
# test issue (java null pointer exception) before compilation |
386 | 386 |
"wavefront-proxy.spec", |
387 |
- # pcstat requires patching for aarch64 |
|
388 |
- "pcstat.spec", |
|
389 | 387 |
# sysdig for aarch64 requires luajit, skip it and falco |
390 | 388 |
# https://github.com/draios/sysdig/issues/833 |
391 | 389 |
"sysdig.spec", |