[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/files/, dev-util/perf/

2024-10-04 Thread Guilherme Amadio
commit: 082517b39188d4ac99b349cc7367e1653194b513
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Fri Oct  4 15:05:06 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Fri Oct  4 15:07:31 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=082517b3

dev-util/perf: drop 6.3

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest   |   1 -
 dev-util/perf/files/perf-6.0-c++17.patch |  39 -
 dev-util/perf/files/perf-6.0-clang.patch |  44 -
 dev-util/perf/metadata.xml   |   1 -
 dev-util/perf/perf-6.3.ebuild| 284 ---
 5 files changed, 369 deletions(-)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 13b16a36b71d..e2bc9f93960b 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,5 +1,4 @@
 DIST linux-6.10.tar.xz 145142812 BLAKE2B 
bb243ea7493b9d63aa2df2050a3f1ae2b89ee84a20015239cf157e3f4f51c7ac5efedc8a51132b2d7482f9276ac418de6624831c8a3b806130d9c2d2124c539b
 SHA512 
baa2487954044f991d2ae254d77d14a1f0185dd62c9f0fcaff69f586c9f906823017b8db1c4588f27b076dfa3ebb606929fec859f60ea419e7974330b9289cc2
 DIST linux-6.11.tar.xz 146900704 BLAKE2B 
e7750c0878d71a56a0ce52d4c4c912199dad5bf5e2e8f872585a6494afbb37cbd852e612a6858936d2dc9b7776a3933818f540db408d57e90d18ea5249bba7ab
 SHA512 
329c1f94008742e3f0c2ce7e591a16316d1b2cb9ea4596d4f45604097e07b7aa2f64afa40630a07f321a858455c77aa32ba57b271932ddcf4dc27863f9081cea
-DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
 DIST linux-6.7.tar.xz 141406528 BLAKE2B 
cecdbd19905e43e485ab73b352ced18b37f2a138c97a6956cadcda5d3d271001117dc1cf896b166ff019fc7f405f9539e2ed0d6112b0890efb04d182adf4fd0e
 SHA512 
de06de556191614bd9daf077ae239360352a402bab407748e67f1e5108c92fd933e451707840ab22fe0f9976db3d1e1b60ca9d41cf894f015ca09b3f652b74ad
 DIST patch-6.10.4.xz 303168 BLAKE2B 
d38bbcdd2f730a030add5b38c1ab09c7081c311ed716d3ae976a058dd34b235078700cdff05d79dc93d9badb75c95566a3bdfc39dfa045d54857d82ee2c92e9d
 SHA512 
5f5e8b19d114fed733c8c98a581fe339f8896e05e5da6a37deb1d7d8aa9dd83b3c80a97b1c6f3f51b6f20cca9c435b20c28c2c511da2026980d9fa72624cf420

diff --git a/dev-util/perf/files/perf-6.0-c++17.patch 
b/dev-util/perf/files/perf-6.0-c++17.patch
deleted file mode 100644
index 08c34bc552ca..
--- a/dev-util/perf/files/perf-6.0-c++17.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-https://bugs.gentoo.org/904169
 a/tools/perf/Makefile.config
-+++ b/tools/perf/Makefile.config
-@@ -309,7 +309,7 @@
- CORE_CFLAGS += -Wextra
- CORE_CFLAGS += -std=gnu11
- 
--CXXFLAGS += -std=gnu++14 -fno-exceptions -fno-rtti
-+CXXFLAGS += -std=gnu++17 -fno-exceptions -fno-rtti
- CXXFLAGS += -Wall
- CXXFLAGS += -fno-omit-frame-pointer
- CXXFLAGS += -ggdb3
 a/tools/build/feature/Makefile
-+++ b/tools/build/feature/Makefile
-@@ -339,7 +339,7 @@
-   $(BUILD)
- 
- $(OUTPUT)test-llvm.bin:
--  $(BUILDXX) -std=gnu++14 \
-+  $(BUILDXX) -std=gnu++17 \
-   -I$(shell $(LLVM_CONFIG) --includedir)  \
-   -L$(shell $(LLVM_CONFIG) --libdir)  \
-   $(shell $(LLVM_CONFIG) --libs)  \
-@@ -347,12 +347,12 @@
-   > $(@:.bin=.make.output) 2>&1
- 
- $(OUTPUT)test-llvm-version.bin:
--  $(BUILDXX) -std=gnu++14 \
-+  $(BUILDXX) -std=gnu++17 \
-   -I$(shell $(LLVM_CONFIG) --includedir)  \
-   > $(@:.bin=.make.output) 2>&1
- 
- $(OUTPUT)test-clang.bin:
--  $(BUILDXX) -std=gnu++14 \
-+  $(BUILDXX) -std=gnu++17 \
-   -I$(shell $(LLVM_CONFIG) --includedir)  \
-   -L$(shell $(LLVM_CONFIG) --libdir)  \
-   -lclang-cpp $(shell $(LLVM_CONFIG) --libs)  \
-

diff --git a/dev-util/perf/files/perf-6.0-clang.patch 
b/dev-util/perf/files/perf-6.0-clang.patch
deleted file mode 100644
index 65b38c8d399b..
--- a/dev-util/perf/files/perf-6.0-clang.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-
-Adapt for building against LLVM/Clang with monolithic libraries.
-
 a/tools/build/feature/Makefile
-+++ b/tools/build/feature/Makefile
-@@ -338,7 +338,7 @@ $(OUTPUT)test-llvm.bin:
-   $(BUILDXX) -std=gnu++14 \
-   -I$(shell $(LLVM_CONFIG) --includedir)  \
-   -L$(shell $(LLVM_CONFIG) --libdir)  \
--  $(shell $(LLVM_CONFIG) --libs Core BPF) \
-+  $(shell $(LLVM_CONFIG) --libs)  \
-   $(shell $(LLVM_CONFIG) --system-libs)   

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/, dev-util/perf/files/

2024-10-04 Thread Guilherme Amadio
commit: 60ae445d0c8851c78267adf0a2ef0bed1dbef65e
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Fri Oct  4 15:03:47 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Fri Oct  4 15:07:31 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60ae445d

dev-util/perf: add 6.11

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest   |   1 +
 dev-util/perf/files/perf-6.11-bpf-capstone.patch | 469 +++
 dev-util/perf/perf-6.11.ebuild   | 346 +
 3 files changed, 816 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index dcdacc5c4e18..13b16a36b71d 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,4 +1,5 @@
 DIST linux-6.10.tar.xz 145142812 BLAKE2B 
bb243ea7493b9d63aa2df2050a3f1ae2b89ee84a20015239cf157e3f4f51c7ac5efedc8a51132b2d7482f9276ac418de6624831c8a3b806130d9c2d2124c539b
 SHA512 
baa2487954044f991d2ae254d77d14a1f0185dd62c9f0fcaff69f586c9f906823017b8db1c4588f27b076dfa3ebb606929fec859f60ea419e7974330b9289cc2
+DIST linux-6.11.tar.xz 146900704 BLAKE2B 
e7750c0878d71a56a0ce52d4c4c912199dad5bf5e2e8f872585a6494afbb37cbd852e612a6858936d2dc9b7776a3933818f540db408d57e90d18ea5249bba7ab
 SHA512 
329c1f94008742e3f0c2ce7e591a16316d1b2cb9ea4596d4f45604097e07b7aa2f64afa40630a07f321a858455c77aa32ba57b271932ddcf4dc27863f9081cea
 DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
 DIST linux-6.7.tar.xz 141406528 BLAKE2B 
cecdbd19905e43e485ab73b352ced18b37f2a138c97a6956cadcda5d3d271001117dc1cf896b166ff019fc7f405f9539e2ed0d6112b0890efb04d182adf4fd0e
 SHA512 
de06de556191614bd9daf077ae239360352a402bab407748e67f1e5108c92fd933e451707840ab22fe0f9976db3d1e1b60ca9d41cf894f015ca09b3f652b74ad
 DIST patch-6.10.4.xz 303168 BLAKE2B 
d38bbcdd2f730a030add5b38c1ab09c7081c311ed716d3ae976a058dd34b235078700cdff05d79dc93d9badb75c95566a3bdfc39dfa045d54857d82ee2c92e9d
 SHA512 
5f5e8b19d114fed733c8c98a581fe339f8896e05e5da6a37deb1d7d8aa9dd83b3c80a97b1c6f3f51b6f20cca9c435b20c28c2c511da2026980d9fa72624cf420

diff --git a/dev-util/perf/files/perf-6.11-bpf-capstone.patch 
b/dev-util/perf/files/perf-6.11-bpf-capstone.patch
new file mode 100644
index ..7d8b376869f3
--- /dev/null
+++ b/dev-util/perf/files/perf-6.11-bpf-capstone.patch
@@ -0,0 +1,469 @@
+commit ea59b70a8418a313d6f2ab48a957de015fc33018
+Author: Arnaldo Carvalho de Melo 
+Date:   Wed Jul 31 11:58:56 2024 -0300
+
+perf bpf: Move BPF disassembly routines to separate file to avoid clash 
with capstone bpf headers
+
+There is a clash of the libbpf and capstone libraries, that ends up
+with:
+
+  In file included from /usr/include/capstone/capstone.h:325,
+   from util/disasm.c:1513:
+  /usr/include/capstone/bpf.h:94:14: error: ‘bpf_insn’ defined as wrong 
kind of tag
+ 94 | typedef enum bpf_insn {
+
+So far we're just trying to avoid this by not having both headers
+included in the same .c or .h file, do it one more time by moving the
+BPF diassembly routines from util/disasm.c to util/disasm_bpf.c.
+
+This is only being hit when building with BUILD_NONDISTRO=1, i.e.
+building with binutils-devel, that isn't the in the default build due to
+a licencing clash. We need to reimplement what is now isolated in
+util/disasm_bpf.c using some other library to have BPF annotation
+feature that now only is available with BUILD_NONDISTRO=1.
+
+Fixes: 6d17edc113de1e21 ("perf annotate: Use libcapstone to disassemble")
+Cc: Adrian Hunter 
+Cc: Ian Rogers 
+Cc: Jiri Olsa 
+Cc: Kan Liang 
+Cc: Namhyung Kim 
+Link: https://lore.kernel.org/lkml/ZqpUSKPxMwaQKORr@x1
+Signed-off-by: Arnaldo Carvalho de Melo 
+
+diff --git a/tools/perf/util/Build b/tools/perf/util/Build
+index 0f18fe81ef0b..b24360c04aae 100644
+--- a/tools/perf/util/Build
 b/tools/perf/util/Build
+@@ -13,6 +13,7 @@ perf-util-y += copyfile.o
+ perf-util-y += ctype.o
+ perf-util-y += db-export.o
+ perf-util-y += disasm.o
++perf-util-y += disasm_bpf.o
+ perf-util-y += env.o
+ perf-util-y += event.o
+ perf-util-y += evlist.o
+diff --git a/tools/perf/util/disasm.c b/tools/perf/util/disasm.c
+index 410e52cd9cfd..85fb0cfedf94 100644
+--- a/tools/perf/util/disasm.c
 b/tools/perf/util/disasm.c
+@@ -16,6 +16,7 @@
+ #include "build-id.h"
+ #include "debug.h"
+ #include "disasm.h"
++#include "disasm_bpf.h"
+ #include "dso.h"
+ #include "env.h"
+ #include "evsel.h"
+@@ -1323,192 +1324,6 @@ static int dso__disassemble_filename(struct dso *dso, 
char *filename, size_t fil
+   return 0;
+ }
+ 
+-#if defined(HAVE_LIBBFD_SUPPORT) && defined(HAVE_LIBBPF_SUPPORT)
+-#define PACKAGE "pe

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-08-25 Thread Andreas K. Hüttel
commit: a4c7724f5eac98d2c0d9028772a1d9834815fa8a
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Sun Aug 25 09:21:28 2024 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Sun Aug 25 12:02:57 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4c7724f

dev-util/perf: remove ~mips

Signed-off-by: Andreas K. Hüttel  gentoo.org>

 dev-util/perf/perf-6.10.4.ebuild | 2 +-
 dev-util/perf/perf-6.10.ebuild   | 2 +-
 dev-util/perf/perf-6.3.ebuild| 2 +-
 dev-util/perf/perf-6.7.ebuild| 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-util/perf/perf-6.10.4.ebuild b/dev-util/perf/perf-6.10.4.ebuild
index a8d59bf1b02c..df1101c9dc14 100644
--- a/dev-util/perf/perf-6.10.4.ebuild
+++ b/dev-util/perf/perf-6.10.4.ebuild
@@ -33,7 +33,7 @@ S="${S_K}/tools/perf"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86 
~amd64-linux ~x86-linux"
 IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace capstone 
big-endian bpf caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs 
lzma numa perl python slang systemtap tcmalloc unwind zstd"
 
 REQUIRED_USE="

diff --git a/dev-util/perf/perf-6.10.ebuild b/dev-util/perf/perf-6.10.ebuild
index c26fcdac95df..7668df3a67d1 100644
--- a/dev-util/perf/perf-6.10.ebuild
+++ b/dev-util/perf/perf-6.10.ebuild
@@ -33,7 +33,7 @@ S="${S_K}/tools/perf"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86 
~amd64-linux ~x86-linux"
 IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace capstone 
big-endian bpf caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs 
lzma numa perl python slang systemtap tcmalloc unwind zstd"
 
 REQUIRED_USE="

diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild
index 63546a59a6ca..9d36b0ce8ca7 100644
--- a/dev-util/perf/perf-6.3.ebuild
+++ b/dev-util/perf/perf-6.3.ebuild
@@ -33,7 +33,7 @@ S="${S_K}/tools/perf"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"

diff --git a/dev-util/perf/perf-6.7.ebuild b/dev-util/perf/perf-6.7.ebuild
index f07ddebfbf7d..99074877b2f2 100644
--- a/dev-util/perf/perf-6.7.ebuild
+++ b/dev-util/perf/perf-6.7.ebuild
@@ -33,7 +33,7 @@ S="${S_K}/tools/perf"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv x86 ~amd64-linux 
~x86-linux"
 IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace big-endian bpf 
caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs lzma numa perl 
python slang systemtap tcmalloc unwind zstd"
 
 REQUIRED_USE="



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-08-23 Thread Sam James
commit: 4f778cd76df0591f23a5470d3bea24de1a299eb0
Author: Sam James  gentoo  org>
AuthorDate: Fri Aug 23 14:43:42 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Aug 23 14:43:42 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f778cd7

dev-util/perf: fix assert use, as in bpftool

See a04d607f74f91f7ea103f3f33199adb14aa0a1e1.

Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-6.10.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.10.4.ebuild b/dev-util/perf/perf-6.10.4.ebuild
index 4c50de412173..a8d59bf1b02c 100644
--- a/dev-util/perf/perf-6.10.4.ebuild
+++ b/dev-util/perf/perf-6.10.4.ebuild
@@ -155,9 +155,9 @@ src_unpack() {
eshopts_push -o noglob
ebegin "Filtering partial source patch"
xzcat "${DISTDIR}"/${LINUX_PATCH} | filterdiff -p1 
${paths[@]/#/-i} > ${P}.patch
-   test -s ${P}.patch
assert -n "Unpacking to ${P} from ${DISTDIR}/${LINUX_PATCH} 
failed"
eend $? || die "filterdiff failed"
+   test -s ${P}.patch || die "patch is empty?!"
eshopts_pop
fi
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-08-12 Thread Guilherme Amadio
commit: 97c31a746773d48ec5b1b2cf21a11ff2cf1d661c
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Mon Aug 12 10:05:46 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Mon Aug 12 11:20:12 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97c31a74

dev-util/perf: add 6.10.4, drop 6.10.3

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest   | 2 +-
 dev-util/perf/{perf-6.10.3.ebuild => perf-6.10.4.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 06c6db108c8b..dcdacc5c4e18 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,4 +1,4 @@
 DIST linux-6.10.tar.xz 145142812 BLAKE2B 
bb243ea7493b9d63aa2df2050a3f1ae2b89ee84a20015239cf157e3f4f51c7ac5efedc8a51132b2d7482f9276ac418de6624831c8a3b806130d9c2d2124c539b
 SHA512 
baa2487954044f991d2ae254d77d14a1f0185dd62c9f0fcaff69f586c9f906823017b8db1c4588f27b076dfa3ebb606929fec859f60ea419e7974330b9289cc2
 DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
 DIST linux-6.7.tar.xz 141406528 BLAKE2B 
cecdbd19905e43e485ab73b352ced18b37f2a138c97a6956cadcda5d3d271001117dc1cf896b166ff019fc7f405f9539e2ed0d6112b0890efb04d182adf4fd0e
 SHA512 
de06de556191614bd9daf077ae239360352a402bab407748e67f1e5108c92fd933e451707840ab22fe0f9976db3d1e1b60ca9d41cf894f015ca09b3f652b74ad
-DIST patch-6.10.3.xz 252260 BLAKE2B 
65acf62ff3e326d5ebb9f47067b626a25295fde2057531cf43e537601c42b0110419c0d6eee8c7c24e5d6d88ecf30e9b76d516efb925c91817504c52780b4df1
 SHA512 
28ad0de2086ca4b59637f8a7c69c6f5436b53235bf52c9ee18f428748c773780c54606a5c96d71614cadd49c707a8bb11843a7393da078e15d7f554244bfb9ca
+DIST patch-6.10.4.xz 303168 BLAKE2B 
d38bbcdd2f730a030add5b38c1ab09c7081c311ed716d3ae976a058dd34b235078700cdff05d79dc93d9badb75c95566a3bdfc39dfa045d54857d82ee2c92e9d
 SHA512 
5f5e8b19d114fed733c8c98a581fe339f8896e05e5da6a37deb1d7d8aa9dd83b3c80a97b1c6f3f51b6f20cca9c435b20c28c2c511da2026980d9fa72624cf420

diff --git a/dev-util/perf/perf-6.10.3.ebuild b/dev-util/perf/perf-6.10.4.ebuild
similarity index 100%
rename from dev-util/perf/perf-6.10.3.ebuild
rename to dev-util/perf/perf-6.10.4.ebuild



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-08-06 Thread Guilherme Amadio
commit: b9ac6043978ea1f9820a072d7a169bbe1ffc5cc4
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Tue Aug  6 12:09:00 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Tue Aug  6 12:09:00 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9ac6043

dev-util/perf: drop 6.8, 6.9

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest|   2 -
 dev-util/perf/perf-6.8.ebuild | 339 -
 dev-util/perf/perf-6.9.ebuild | 341 --
 3 files changed, 682 deletions(-)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index f1003cdd10cb..06c6db108c8b 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,6 +1,4 @@
 DIST linux-6.10.tar.xz 145142812 BLAKE2B 
bb243ea7493b9d63aa2df2050a3f1ae2b89ee84a20015239cf157e3f4f51c7ac5efedc8a51132b2d7482f9276ac418de6624831c8a3b806130d9c2d2124c539b
 SHA512 
baa2487954044f991d2ae254d77d14a1f0185dd62c9f0fcaff69f586c9f906823017b8db1c4588f27b076dfa3ebb606929fec859f60ea419e7974330b9289cc2
 DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
 DIST linux-6.7.tar.xz 141406528 BLAKE2B 
cecdbd19905e43e485ab73b352ced18b37f2a138c97a6956cadcda5d3d271001117dc1cf896b166ff019fc7f405f9539e2ed0d6112b0890efb04d182adf4fd0e
 SHA512 
de06de556191614bd9daf077ae239360352a402bab407748e67f1e5108c92fd933e451707840ab22fe0f9976db3d1e1b60ca9d41cf894f015ca09b3f652b74ad
-DIST linux-6.8.tar.xz 142502100 BLAKE2B 
c6f17f816cea16e629f63e9379b9713f57b2c5173306926471f139a9d612a0c74e119341f8075390e55e203d787d9edeb4ad5a064b18870f6f0f7ffaafb2
 SHA512 
5c4eb4aa1d3f7d1ea01c0f7ddeadacdece6e144fd4bdfc16b2b925d3e10dc04de3a6db69320b79a96c3560052616f001d2c09e7a1bb4f7b731e2380a7ecce068
-DIST linux-6.9.tar.xz 144034416 BLAKE2B 
4cf86c3cfe6e6534745d42dfaeca59b17ea1168c4e8b615c80e6d8aac735f11283cd85fa992b440b5d4452917e94b9f08397a64af0be5894e3df23c68892377e
 SHA512 
fed3b4cd1fbfb4d94618587c1934273d2ecc8b6e42a3d586ff8a5f24980be930f2ef803aa2923ca3bfa5e4e619f967f3af315368f24fa76f610b10443624a579
 DIST patch-6.10.3.xz 252260 BLAKE2B 
65acf62ff3e326d5ebb9f47067b626a25295fde2057531cf43e537601c42b0110419c0d6eee8c7c24e5d6d88ecf30e9b76d516efb925c91817504c52780b4df1
 SHA512 
28ad0de2086ca4b59637f8a7c69c6f5436b53235bf52c9ee18f428748c773780c54606a5c96d71614cadd49c707a8bb11843a7393da078e15d7f554244bfb9ca

diff --git a/dev-util/perf/perf-6.8.ebuild b/dev-util/perf/perf-6.8.ebuild
deleted file mode 100644
index 9ebf28d8aa78..
--- a/dev-util/perf/perf-6.8.ebuild
+++ /dev/null
@@ -1,339 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-inherit bash-completion-r1 estack flag-o-matic linux-info llvm toolchain-funcs 
python-r1
-
-DESCRIPTION="Userland tools for Linux Performance Counters"
-HOMEPAGE="https://perf.wiki.kernel.org/";
-
-LINUX_V="${PV:0:1}.x"
-if [[ ${PV} == *_rc* ]] ; then
-   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
-   PATCH_VERSION=$(ver_cut 1-3)
-   LINUX_PATCH=patch-${PV//_/-}.xz
-   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
-   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
-elif [[ ${PV} == *.*.* ]] ; then
-   # stable-release series
-   LINUX_VER=$(ver_cut 1-2)
-   LINUX_PATCH=patch-${PV}.xz
-   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
-else
-   LINUX_VER=${PV}
-fi
-
-LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
-SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
-
-S_K="${WORKDIR}/linux-${LINUX_VER}"
-S="${S_K}/tools/perf"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 
~amd64-linux ~x86-linux"
-IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace big-endian bpf 
caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs lzma numa perl 
python slang systemtap tcmalloc unwind zstd"
-
-REQUIRED_USE="
-   ${PYTHON_REQUIRED_USE}
-"
-
-# setuptools (and Python) are always needed even if not building Python 
bindings
-BDEPEND="
-   ${LINUX_PATCH+dev-util/patchutils}
-   ${PYTHON_DEPS}
-   >=app-arch/tar-1.34-r2
-   dev-python/setuptools[${PYTHON_USEDEP}]
-   app-alternatives/yacc
-   app-alternatives/lex
-   virtual/pkgconfig
-   doc? (
-   app-text/asciidoc
-   app-text/sgml-common
-   app-text/xmlto
-   sys-process/time
-   )
-"
-
-RDEPEND="
-   audit? ( sys-process/audit )
-   babeltrace? ( dev-util/babeltrace:0/1 )

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/, dev-util/perf/files/

2024-08-06 Thread Guilherme Amadio
commit: c9e99b12374290bce0b623136ea017c694ee1b31
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Tue Aug  6 11:56:07 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Tue Aug  6 11:56:07 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9e99b12

dev-util/perf: fix bug #936439

Closes: https://bugs.gentoo.org/936439
Link: https://lore.kernel.org/linux-kernel/ZqpUSKPxMwaQKORr@x1/

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/files/perf-6.10.3-bpf-capstone.patch | 455 +
 dev-util/perf/perf-6.10.3.ebuild   |   1 +
 2 files changed, 456 insertions(+)

diff --git a/dev-util/perf/files/perf-6.10.3-bpf-capstone.patch 
b/dev-util/perf/files/perf-6.10.3-bpf-capstone.patch
new file mode 100644
index ..57b298d8ccd7
--- /dev/null
+++ b/dev-util/perf/files/perf-6.10.3-bpf-capstone.patch
@@ -0,0 +1,455 @@
+From b382a433e0178d3840a8fb4b05ba3dbecba075fa Mon Sep 17 00:00:00 2001
+From: Guilherme Amadio 
+Date: Tue, 6 Aug 2024 11:34:05 +0200
+Subject: [PATCH]  Fix bug #936439. Replay of upstream commit onto v6.10.3.
+
+Signed-off-by: Guilherme Amadio 
+---
+ tools/perf/util/Build|   1 +
+ tools/perf/util/disasm.c | 187 +
+ tools/perf/util/disasm_bpf.c | 196 +++
+ tools/perf/util/disasm_bpf.h |  12 +++
+ 4 files changed, 210 insertions(+), 186 deletions(-)
+ create mode 100644 tools/perf/util/disasm_bpf.c
+ create mode 100644 tools/perf/util/disasm_bpf.h
+
+diff --git a/tools/perf/util/Build b/tools/perf/util/Build
+index da64efd8718f..384c4e06b838 100644
+--- a/tools/perf/util/Build
 b/tools/perf/util/Build
+@@ -13,6 +13,7 @@ perf-y += copyfile.o
+ perf-y += ctype.o
+ perf-y += db-export.o
+ perf-y += disasm.o
++perf-y += disasm_bpf.o
+ perf-y += env.o
+ perf-y += event.o
+ perf-y += evlist.o
+diff --git a/tools/perf/util/disasm.c b/tools/perf/util/disasm.c
+index e10558b79504..766cbd005f32 100644
+--- a/tools/perf/util/disasm.c
 b/tools/perf/util/disasm.c
+@@ -15,6 +15,7 @@
+ #include "build-id.h"
+ #include "debug.h"
+ #include "disasm.h"
++#include "disasm_bpf.h"
+ #include "dso.h"
+ #include "env.h"
+ #include "evsel.h"
+@@ -1164,192 +1165,6 @@ static int dso__disassemble_filename(struct dso *dso, 
char *filename, size_t fil
+   return 0;
+ }
+ 
+-#if defined(HAVE_LIBBFD_SUPPORT) && defined(HAVE_LIBBPF_SUPPORT)
+-#define PACKAGE "perf"
+-#include 
+-#include 
+-#include 
+-#include 
+-#include 
+-#include 
+-#include 
+-
+-#include "bpf-event.h"
+-#include "bpf-utils.h"
+-
+-static int symbol__disassemble_bpf(struct symbol *sym,
+- struct annotate_args *args)
+-{
+-  struct annotation *notes = symbol__annotation(sym);
+-  struct bpf_prog_linfo *prog_linfo = NULL;
+-  struct bpf_prog_info_node *info_node;
+-  int len = sym->end - sym->start;
+-  disassembler_ftype disassemble;
+-  struct map *map = args->ms.map;
+-  struct perf_bpil *info_linear;
+-  struct disassemble_info info;
+-  struct dso *dso = map__dso(map);
+-  int pc = 0, count, sub_id;
+-  struct btf *btf = NULL;
+-  char tpath[PATH_MAX];
+-  size_t buf_size;
+-  int nr_skip = 0;
+-  char *buf;
+-  bfd *bfdf;
+-  int ret;
+-  FILE *s;
+-
+-  if (dso__binary_type(dso) != DSO_BINARY_TYPE__BPF_PROG_INFO)
+-  return SYMBOL_ANNOTATE_ERRNO__BPF_INVALID_FILE;
+-
+-  pr_debug("%s: handling sym %s addr %" PRIx64 " len %" PRIx64 "\n", 
__func__,
+-sym->name, sym->start, sym->end - sym->start);
+-
+-  memset(tpath, 0, sizeof(tpath));
+-  perf_exe(tpath, sizeof(tpath));
+-
+-  bfdf = bfd_openr(tpath, NULL);
+-  if (bfdf == NULL)
+-  abort();
+-
+-  if (!bfd_check_format(bfdf, bfd_object))
+-  abort();
+-
+-  s = open_memstream(&buf, &buf_size);
+-  if (!s) {
+-  ret = errno;
+-  goto out;
+-  }
+-  init_disassemble_info_compat(&info, s,
+-   (fprintf_ftype) fprintf,
+-   fprintf_styled);
+-  info.arch = bfd_get_arch(bfdf);
+-  info.mach = bfd_get_mach(bfdf);
+-
+-  info_node = perf_env__find_bpf_prog_info(dso__bpf_prog(dso)->env,
+-   dso__bpf_prog(dso)->id);
+-  if (!info_node) {
+-  ret = SYMBOL_ANNOTATE_ERRNO__BPF_MISSING_BTF;
+-  goto out;
+-  }
+-  info_linear = info_node->info_linear;
+-  sub_id = dso__bpf_prog(dso)->sub_id;
+-
+-  info.buffer = (void *)(uintptr_t)(info_linear->info.jited_prog_insns);
+-  info.buffer_length = info_linear->info.jited_prog_len;
+-
+-  if (info_linear->info.nr_line_info)
+-  prog_linfo = bpf_prog_linfo__new(&info_linear->info);
+-
+-  if (info_linear->info.btf_id) {
+-  struct btf_node *node;
+-
+-  node = 

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/files/, dev-util/perf/

2024-08-06 Thread Guilherme Amadio
commit: 1955737ff79a1ad896706c45beca7a5572644dcc
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Tue Aug  6 10:12:08 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Tue Aug  6 10:15:44 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1955737f

dev-util/perf-6.10: fix build with USE=capstone

Upstream patch is in perf-tools-next, rebased it on 6.10.

Bug: https://bugs.gentoo.org/936439

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/files/perf-6.10-bpf-capstone.patch | 456 +++
 dev-util/perf/perf-6.10.ebuild   |   1 +
 2 files changed, 457 insertions(+)

diff --git a/dev-util/perf/files/perf-6.10-bpf-capstone.patch 
b/dev-util/perf/files/perf-6.10-bpf-capstone.patch
new file mode 100644
index ..ebae9a3ad080
--- /dev/null
+++ b/dev-util/perf/files/perf-6.10-bpf-capstone.patch
@@ -0,0 +1,456 @@
+From a7728af2f25fe99ee72d211bb4ddec17a8601f5f Mon Sep 17 00:00:00 2001
+From: Guilherme Amadio 
+Date: Tue, 6 Aug 2024 11:34:05 +0200
+Subject: [PATCH]  Fix bug #936439. Replay of upstream commit onto v6.10.
+
+Signed-off-by: Guilherme Amadio 
+---
+ tools/perf/util/Build|   1 +
+ tools/perf/util/disasm.c | 187 +
+ tools/perf/util/disasm_bpf.c | 197 +++
+ tools/perf/util/disasm_bpf.h |  12 +++
+ 4 files changed, 211 insertions(+), 186 deletions(-)
+ create mode 100644 tools/perf/util/disasm_bpf.c
+ create mode 100644 tools/perf/util/disasm_bpf.h
+
+diff --git a/tools/perf/util/Build b/tools/perf/util/Build
+index da64efd8718f..384c4e06b838 100644
+--- a/tools/perf/util/Build
 b/tools/perf/util/Build
+@@ -13,6 +13,7 @@ perf-y += copyfile.o
+ perf-y += ctype.o
+ perf-y += db-export.o
+ perf-y += disasm.o
++perf-y += disasm_bpf.o
+ perf-y += env.o
+ perf-y += event.o
+ perf-y += evlist.o
+diff --git a/tools/perf/util/disasm.c b/tools/perf/util/disasm.c
+index 72aec8f61b94..766cbd005f32 100644
+--- a/tools/perf/util/disasm.c
 b/tools/perf/util/disasm.c
+@@ -15,6 +15,7 @@
+ #include "build-id.h"
+ #include "debug.h"
+ #include "disasm.h"
++#include "disasm_bpf.h"
+ #include "dso.h"
+ #include "env.h"
+ #include "evsel.h"
+@@ -1164,192 +1165,6 @@ static int dso__disassemble_filename(struct dso *dso, 
char *filename, size_t fil
+   return 0;
+ }
+ 
+-#if defined(HAVE_LIBBFD_SUPPORT) && defined(HAVE_LIBBPF_SUPPORT)
+-#define PACKAGE "perf"
+-#include 
+-#include 
+-#include 
+-#include 
+-#include 
+-#include 
+-#include 
+-
+-#include "bpf-event.h"
+-#include "bpf-utils.h"
+-
+-static int symbol__disassemble_bpf(struct symbol *sym,
+- struct annotate_args *args)
+-{
+-  struct annotation *notes = symbol__annotation(sym);
+-  struct bpf_prog_linfo *prog_linfo = NULL;
+-  struct bpf_prog_info_node *info_node;
+-  int len = sym->end - sym->start;
+-  disassembler_ftype disassemble;
+-  struct map *map = args->ms.map;
+-  struct perf_bpil *info_linear;
+-  struct disassemble_info info;
+-  struct dso *dso = map__dso(map);
+-  int pc = 0, count, sub_id;
+-  struct btf *btf = NULL;
+-  char tpath[PATH_MAX];
+-  size_t buf_size;
+-  int nr_skip = 0;
+-  char *buf;
+-  bfd *bfdf;
+-  int ret;
+-  FILE *s;
+-
+-  if (dso->binary_type != DSO_BINARY_TYPE__BPF_PROG_INFO)
+-  return SYMBOL_ANNOTATE_ERRNO__BPF_INVALID_FILE;
+-
+-  pr_debug("%s: handling sym %s addr %" PRIx64 " len %" PRIx64 "\n", 
__func__,
+-sym->name, sym->start, sym->end - sym->start);
+-
+-  memset(tpath, 0, sizeof(tpath));
+-  perf_exe(tpath, sizeof(tpath));
+-
+-  bfdf = bfd_openr(tpath, NULL);
+-  if (bfdf == NULL)
+-  abort();
+-
+-  if (!bfd_check_format(bfdf, bfd_object))
+-  abort();
+-
+-  s = open_memstream(&buf, &buf_size);
+-  if (!s) {
+-  ret = errno;
+-  goto out;
+-  }
+-  init_disassemble_info_compat(&info, s,
+-   (fprintf_ftype) fprintf,
+-   fprintf_styled);
+-  info.arch = bfd_get_arch(bfdf);
+-  info.mach = bfd_get_mach(bfdf);
+-
+-  info_node = perf_env__find_bpf_prog_info(dso->bpf_prog.env,
+-   dso->bpf_prog.id);
+-  if (!info_node) {
+-  ret = SYMBOL_ANNOTATE_ERRNO__BPF_MISSING_BTF;
+-  goto out;
+-  }
+-  info_linear = info_node->info_linear;
+-  sub_id = dso->bpf_prog.sub_id;
+-
+-  info.buffer = (void *)(uintptr_t)(info_linear->info.jited_prog_insns);
+-  info.buffer_length = info_linear->info.jited_prog_len;
+-
+-  if (info_linear->info.nr_line_info)
+-  prog_linfo = bpf_prog_linfo__new(&info_linear->info);
+-
+-  if (info_linear->info.btf_id) {
+-  struct btf_node *node;
+-
+-  node = perf_env__find_btf(dso->

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-08-06 Thread Guilherme Amadio
commit: 691f5d53899938ee921c032ee027e90c1f4a28e6
Author: Holger Hoffstätte  applied-asynchrony  com>
AuthorDate: Mon Aug  5 19:01:57 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Tue Aug  6 10:15:44 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=691f5d53

dev-util/perf: bump to 6.10.3 & correctly apply patch updates

Closes: https://bugs.gentoo.org/937407
Closes: https://github.com/gentoo/gentoo/pull/37984
Signed-off-by: Holger Hoffstätte  applied-asynchrony.com>
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest   |   1 +
 dev-util/perf/perf-6.10.3.ebuild | 344 +++
 2 files changed, 345 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index eaf7134c3fe1..f1003cdd10cb 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -3,3 +3,4 @@ DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf2
 DIST linux-6.7.tar.xz 141406528 BLAKE2B 
cecdbd19905e43e485ab73b352ced18b37f2a138c97a6956cadcda5d3d271001117dc1cf896b166ff019fc7f405f9539e2ed0d6112b0890efb04d182adf4fd0e
 SHA512 
de06de556191614bd9daf077ae239360352a402bab407748e67f1e5108c92fd933e451707840ab22fe0f9976db3d1e1b60ca9d41cf894f015ca09b3f652b74ad
 DIST linux-6.8.tar.xz 142502100 BLAKE2B 
c6f17f816cea16e629f63e9379b9713f57b2c5173306926471f139a9d612a0c74e119341f8075390e55e203d787d9edeb4ad5a064b18870f6f0f7ffaafb2
 SHA512 
5c4eb4aa1d3f7d1ea01c0f7ddeadacdece6e144fd4bdfc16b2b925d3e10dc04de3a6db69320b79a96c3560052616f001d2c09e7a1bb4f7b731e2380a7ecce068
 DIST linux-6.9.tar.xz 144034416 BLAKE2B 
4cf86c3cfe6e6534745d42dfaeca59b17ea1168c4e8b615c80e6d8aac735f11283cd85fa992b440b5d4452917e94b9f08397a64af0be5894e3df23c68892377e
 SHA512 
fed3b4cd1fbfb4d94618587c1934273d2ecc8b6e42a3d586ff8a5f24980be930f2ef803aa2923ca3bfa5e4e619f967f3af315368f24fa76f610b10443624a579
+DIST patch-6.10.3.xz 252260 BLAKE2B 
65acf62ff3e326d5ebb9f47067b626a25295fde2057531cf43e537601c42b0110419c0d6eee8c7c24e5d6d88ecf30e9b76d516efb925c91817504c52780b4df1
 SHA512 
28ad0de2086ca4b59637f8a7c69c6f5436b53235bf52c9ee18f428748c773780c54606a5c96d71614cadd49c707a8bb11843a7393da078e15d7f554244bfb9ca

diff --git a/dev-util/perf/perf-6.10.3.ebuild b/dev-util/perf/perf-6.10.3.ebuild
new file mode 100644
index ..0f0e90117809
--- /dev/null
+++ b/dev-util/perf/perf-6.10.3.ebuild
@@ -0,0 +1,344 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+inherit bash-completion-r1 estack flag-o-matic linux-info llvm toolchain-funcs 
python-r1
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/";
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
+   PATCH_VERSION=$(ver_cut 1-3)
+   LINUX_PATCH=patch-${PV//_/-}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
+elif [[ ${PV} == *.*.* ]] ; then
+   # stable-release series
+   LINUX_VER=$(ver_cut 1-2)
+   LINUX_PATCH=patch-${PV}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
+else
+   LINUX_VER=${PV}
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 
~amd64-linux ~x86-linux"
+IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace capstone 
big-endian bpf caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs 
lzma numa perl python slang systemtap tcmalloc unwind zstd"
+
+REQUIRED_USE="
+   ${PYTHON_REQUIRED_USE}
+"
+
+# setuptools (and Python) are always needed even if not building Python 
bindings
+BDEPEND="
+   ${LINUX_PATCH+dev-util/patchutils}
+   ${PYTHON_DEPS}
+   >=app-arch/tar-1.34-r2
+   dev-python/setuptools[${PYTHON_USEDEP}]
+   app-alternatives/yacc
+   app-alternatives/lex
+   virtual/pkgconfig
+   doc? (
+   app-text/asciidoc
+   app-text/sgml-common
+   app-text/xmlto
+   sys-process/time
+   )
+"
+
+RDEPEND="
+   audit? ( sys-process/audit )
+   babeltrace? ( dev-util/babeltrace:0/1 )
+   bpf? (
+   dev-libs/libbpf
+   dev-util/bpftool
+   dev-util/pahole
+   sys-devel/clang:=
+   sys-devel/llvm:=
+   )
+   caps? ( sys-libs/libcap )
+   capstone? ( dev-libs/capstone )
+   crypt? ( dev-libs/openssl:= )
+   gtk? ( x11-libs/gtk+:2 )
+   java? ( virtual/jre:* )
+   libpfm? ( dev-libs/libpfm:= 

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-08-06 Thread Guilherme Amadio
commit: e0a308d54529e7cf11df4c9839024fe8187f82ee
Author: Andrej Shadura  collabora  co  uk>
AuthorDate: Tue Jul 23 15:21:07 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Tue Aug  6 10:15:43 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0a308d5

dev-util/perf: Use cross CLANG for compiler feature verification

The build system of perf checks the clang version in order to set
correct compilation flags. However, it defaults to the non-prefixed
clang invocation, which fails during cross-compilation.

Set CLANG to point to the fully qualified host clang.
The build system will only use it if it’s actually available.

Closes: https://bugs.gentoo.org/936558
Closes: https://github.com/gentoo/gentoo/pull/37688
Signed-off-by: Andrej Shadura  collabora.co.uk>
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/perf-6.10.ebuild | 1 +
 dev-util/perf/perf-6.3.ebuild  | 1 +
 dev-util/perf/perf-6.7.ebuild  | 1 +
 dev-util/perf/perf-6.8.ebuild  | 1 +
 dev-util/perf/perf-6.9.ebuild  | 1 +
 5 files changed, 5 insertions(+)

diff --git a/dev-util/perf/perf-6.10.ebuild b/dev-util/perf/perf-6.10.ebuild
index 3a49940473e4..bf643c35c209 100644
--- a/dev-util/perf/perf-6.10.ebuild
+++ b/dev-util/perf/perf-6.10.ebuild
@@ -247,6 +247,7 @@ perf_make() {
V=1 VF=1
HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)"
CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" 
LD="${linker}" NM="$(tc-getNM)"
+   CLANG="${CHOST}-clang"
PKG_CONFIG="$(tc-getPKG_CONFIG)"
prefix="${EPREFIX}/usr" bindir_relative="bin"
tipdir="share/doc/${PF}"

diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild
index 80e9fe676047..63546a59a6ca 100644
--- a/dev-util/perf/perf-6.3.ebuild
+++ b/dev-util/perf/perf-6.3.ebuild
@@ -196,6 +196,7 @@ perf_make() {
emake V=1 VF=1 \
HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)" \
CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" 
LD="$(tc-getLD)" NM="$(tc-getNM)" \
+   CLANG="${CHOST}-clang" \
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
prefix="${EPREFIX}/usr" bindir_relative="bin" \
tipdir="share/doc/${PF}" \

diff --git a/dev-util/perf/perf-6.7.ebuild b/dev-util/perf/perf-6.7.ebuild
index 5d0dd06b320d..f07ddebfbf7d 100644
--- a/dev-util/perf/perf-6.7.ebuild
+++ b/dev-util/perf/perf-6.7.ebuild
@@ -247,6 +247,7 @@ perf_make() {
V=1 VF=1
HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)"
CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" 
LD="${linker}" NM="$(tc-getNM)"
+   CLANG="${CHOST}-clang"
PKG_CONFIG="$(tc-getPKG_CONFIG)"
prefix="${EPREFIX}/usr" bindir_relative="bin"
tipdir="share/doc/${PF}"

diff --git a/dev-util/perf/perf-6.8.ebuild b/dev-util/perf/perf-6.8.ebuild
index 71d7382d4545..9ebf28d8aa78 100644
--- a/dev-util/perf/perf-6.8.ebuild
+++ b/dev-util/perf/perf-6.8.ebuild
@@ -248,6 +248,7 @@ perf_make() {
V=1 VF=1
HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)"
CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" 
LD="${linker}" NM="$(tc-getNM)"
+   CLANG="${CHOST}-clang"
PKG_CONFIG="$(tc-getPKG_CONFIG)"
prefix="${EPREFIX}/usr" bindir_relative="bin"
tipdir="share/doc/${PF}"

diff --git a/dev-util/perf/perf-6.9.ebuild b/dev-util/perf/perf-6.9.ebuild
index b371ff4a861a..e5858270dcbc 100644
--- a/dev-util/perf/perf-6.9.ebuild
+++ b/dev-util/perf/perf-6.9.ebuild
@@ -247,6 +247,7 @@ perf_make() {
V=1 VF=1
HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)"
CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" 
LD="${linker}" NM="$(tc-getNM)"
+   CLANG="${CHOST}-clang"
PKG_CONFIG="$(tc-getPKG_CONFIG)"
prefix="${EPREFIX}/usr" bindir_relative="bin"
tipdir="share/doc/${PF}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/, dev-util/perf/files/

2024-07-19 Thread Yixun Lan
commit: f545ea4cbc640111b90385425ef4da826e79d0dc
Author: Yixun Lan  gentoo  org>
AuthorDate: Thu Jul 18 23:46:50 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Fri Jul 19 12:37:21 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f545ea4c

dev-util/perf: add 6.10

Signed-off-by: Yixun Lan  gentoo.org>

 dev-util/perf/Manifest   |   1 +
 dev-util/perf/files/perf-6.10-expr.patch |  22 ++
 dev-util/perf/perf-6.10.ebuild   | 340 +++
 3 files changed, 363 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 38c4e09db5b7..eaf7134c3fe1 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,3 +1,4 @@
+DIST linux-6.10.tar.xz 145142812 BLAKE2B 
bb243ea7493b9d63aa2df2050a3f1ae2b89ee84a20015239cf157e3f4f51c7ac5efedc8a51132b2d7482f9276ac418de6624831c8a3b806130d9c2d2124c539b
 SHA512 
baa2487954044f991d2ae254d77d14a1f0185dd62c9f0fcaff69f586c9f906823017b8db1c4588f27b076dfa3ebb606929fec859f60ea419e7974330b9289cc2
 DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
 DIST linux-6.7.tar.xz 141406528 BLAKE2B 
cecdbd19905e43e485ab73b352ced18b37f2a138c97a6956cadcda5d3d271001117dc1cf896b166ff019fc7f405f9539e2ed0d6112b0890efb04d182adf4fd0e
 SHA512 
de06de556191614bd9daf077ae239360352a402bab407748e67f1e5108c92fd933e451707840ab22fe0f9976db3d1e1b60ca9d41cf894f015ca09b3f652b74ad
 DIST linux-6.8.tar.xz 142502100 BLAKE2B 
c6f17f816cea16e629f63e9379b9713f57b2c5173306926471f139a9d612a0c74e119341f8075390e55e203d787d9edeb4ad5a064b18870f6f0f7ffaafb2
 SHA512 
5c4eb4aa1d3f7d1ea01c0f7ddeadacdece6e144fd4bdfc16b2b925d3e10dc04de3a6db69320b79a96c3560052616f001d2c09e7a1bb4f7b731e2380a7ecce068

diff --git a/dev-util/perf/files/perf-6.10-expr.patch 
b/dev-util/perf/files/perf-6.10-expr.patch
new file mode 100644
index ..b4220a062f61
--- /dev/null
+++ b/dev-util/perf/files/perf-6.10-expr.patch
@@ -0,0 +1,22 @@
+diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
+index bc980fd..a7f1e1e 100644
+--- a/tools/perf/Makefile.config
 b/tools/perf/Makefile.config
+@@ -1184,7 +1184,7 @@ ifneq ($(NO_LIBTRACEEVENT),1)
+ CFLAGS += -DHAVE_LIBTRACEEVENT $(LIBTRACEEVENT_CFLAGS)
+ LDFLAGS += $(LIBTRACEEVENT_LDFLAGS)
+ EXTLIBS += ${TRACEEVENTLIBS}
+-LIBTRACEEVENT_VERSION := $(shell PKG_CONFIG_PATH=$(LIBTRACEEVENT_DIR) 
$(PKG_CONFIG) --modversion libtraceevent)
++LIBTRACEEVENT_VERSION := $(shell PKG_CONFIG_PATH=$(LIBTRACEEVENT_DIR) 
$(PKG_CONFIG) --modversion libtraceevent).0
+ LIBTRACEEVENT_VERSION_1 := $(word 1, $(subst ., 
,$(LIBTRACEEVENT_VERSION)))
+ LIBTRACEEVENT_VERSION_2 := $(word 2, $(subst ., 
,$(LIBTRACEEVENT_VERSION)))
+ LIBTRACEEVENT_VERSION_3 := $(word 3, $(subst ., 
,$(LIBTRACEEVENT_VERSION)))
+@@ -1198,7 +1198,7 @@ ifneq ($(NO_LIBTRACEEVENT),1)
+   $(call feature_check,libtracefs)
+   ifeq ($(feature-libtracefs), 1)
+ EXTLIBS += -ltracefs
+-LIBTRACEFS_VERSION := $(shell $(PKG_CONFIG) --modversion libtracefs)
++LIBTRACEFS_VERSION := $(shell $(PKG_CONFIG) --modversion libtracefs).0
+ LIBTRACEFS_VERSION_1 := $(word 1, $(subst ., ,$(LIBTRACEFS_VERSION)))
+ LIBTRACEFS_VERSION_2 := $(word 2, $(subst ., ,$(LIBTRACEFS_VERSION)))
+ LIBTRACEFS_VERSION_3 := $(word 3, $(subst ., ,$(LIBTRACEFS_VERSION)))

diff --git a/dev-util/perf/perf-6.10.ebuild b/dev-util/perf/perf-6.10.ebuild
new file mode 100644
index ..3a49940473e4
--- /dev/null
+++ b/dev-util/perf/perf-6.10.ebuild
@@ -0,0 +1,340 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+inherit bash-completion-r1 estack flag-o-matic linux-info llvm toolchain-funcs 
python-r1
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/";
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
+   PATCH_VERSION=$(ver_cut 1-3)
+   LINUX_PATCH=patch-${PV//_/-}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
+elif [[ ${PV} == *.*.* ]] ; then
+   # stable-release series
+   LINUX_VER=$(ver_cut 1-2)
+   LINUX_PATCH=patch-${PV}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
+else
+   LINUX_VER=${PV}
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+LICENSE="GPL-

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-06-17 Thread Guilherme Amadio
commit: 9ce554d1fc45f2abf442cff7fb9a06b2a96460a1
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Mon Jun 17 15:31:59 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Mon Jun 17 15:32:36 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ce554d1

dev-util/perf: set make option DEBUG=1 with USE=debug

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/perf-6.9.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-util/perf/perf-6.9.ebuild b/dev-util/perf/perf-6.9.ebuild
index ead4f9c89c18..b371ff4a861a 100644
--- a/dev-util/perf/perf-6.9.ebuild
+++ b/dev-util/perf/perf-6.9.ebuild
@@ -287,6 +287,7 @@ perf_make() {
NO_ZLIB=
TCMALLOC=$(usex tcmalloc 1 "")
WERROR=0
+   DEBUG=$(usex debug 1 "")
LIBDIR="/usr/libexec/perf-core"
libdir="${EPREFIX}/usr/$(get_libdir)"
plugindir="${EPREFIX}/usr/$(get_libdir)/perf/plugins"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-05-31 Thread Guilherme Amadio
commit: dbe2a19e239f70c93128c669697d8acaa45c7ee7
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Fri May 31 08:21:00 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Fri May 31 11:47:10 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbe2a19e

dev-util/perf: add keep arch/*/include when unpacking, bug #933193

Closes: https://bugs.gentoo.org/933193
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/perf-6.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.9.ebuild b/dev-util/perf/perf-6.9.ebuild
index c93e19c6c517..ead4f9c89c18 100644
--- a/dev-util/perf/perf-6.9.ebuild
+++ b/dev-util/perf/perf-6.9.ebuild
@@ -140,7 +140,7 @@ pkg_setup() {
 src_unpack() {
local paths=(
kernel/bpf tools/{arch,bpf,build,include,lib,perf,scripts}
-   scripts include lib "arch/*/lib" "arch/*/tools"
+   scripts include lib "arch/*/include" "arch/*/lib" "arch/*/tools"
)
 
# We expect the tar implementation to support the -j option (both



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-05-30 Thread Guilherme Amadio
commit: b133fee660bada16b5b6e134ec0d1d3df135c388
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Thu May 30 14:49:05 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Thu May 30 14:49:29 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b133fee6

dev-util/perf: update metadata.xml with new capstone USE flag

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/metadata.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-util/perf/metadata.xml b/dev-util/perf/metadata.xml
index b249668f8c69..89fef8ad07ac 100644
--- a/dev-util/perf/metadata.xml
+++ b/dev-util/perf/metadata.xml
@@ -16,6 +16,7 @@
   
 Enable support for eBPF features with 
dev-libs/libbpf
 Enable dev-util/babeltrace 
support
+Use dev-libs/capstone for disassembly 
support
 Enable builtin clang and LLVM support
 
   Build documentation and man pages. With this USE flag disabled,



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-05-24 Thread Guilherme Amadio
commit: 71857968fa0453e89365b637d35c6ba6ea2970e1
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Fri May 24 15:31:32 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Fri May 24 15:38:29 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71857968

dev-util/perf: version bump to 6.9

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest|   1 +
 dev-util/perf/perf-6.9.ebuild | 339 ++
 2 files changed, 340 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index d0961af9f392..38c4e09db5b7 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,3 +1,4 @@
 DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
 DIST linux-6.7.tar.xz 141406528 BLAKE2B 
cecdbd19905e43e485ab73b352ced18b37f2a138c97a6956cadcda5d3d271001117dc1cf896b166ff019fc7f405f9539e2ed0d6112b0890efb04d182adf4fd0e
 SHA512 
de06de556191614bd9daf077ae239360352a402bab407748e67f1e5108c92fd933e451707840ab22fe0f9976db3d1e1b60ca9d41cf894f015ca09b3f652b74ad
 DIST linux-6.8.tar.xz 142502100 BLAKE2B 
c6f17f816cea16e629f63e9379b9713f57b2c5173306926471f139a9d612a0c74e119341f8075390e55e203d787d9edeb4ad5a064b18870f6f0f7ffaafb2
 SHA512 
5c4eb4aa1d3f7d1ea01c0f7ddeadacdece6e144fd4bdfc16b2b925d3e10dc04de3a6db69320b79a96c3560052616f001d2c09e7a1bb4f7b731e2380a7ecce068
+DIST linux-6.9.tar.xz 144034416 BLAKE2B 
4cf86c3cfe6e6534745d42dfaeca59b17ea1168c4e8b615c80e6d8aac735f11283cd85fa992b440b5d4452917e94b9f08397a64af0be5894e3df23c68892377e
 SHA512 
fed3b4cd1fbfb4d94618587c1934273d2ecc8b6e42a3d586ff8a5f24980be930f2ef803aa2923ca3bfa5e4e619f967f3af315368f24fa76f610b10443624a579

diff --git a/dev-util/perf/perf-6.9.ebuild b/dev-util/perf/perf-6.9.ebuild
new file mode 100644
index ..c93e19c6c517
--- /dev/null
+++ b/dev-util/perf/perf-6.9.ebuild
@@ -0,0 +1,339 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit bash-completion-r1 estack flag-o-matic linux-info llvm toolchain-funcs 
python-r1
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/";
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
+   PATCH_VERSION=$(ver_cut 1-3)
+   LINUX_PATCH=patch-${PV//_/-}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
+elif [[ ${PV} == *.*.* ]] ; then
+   # stable-release series
+   LINUX_VER=$(ver_cut 1-2)
+   LINUX_PATCH=patch-${PV}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
+else
+   LINUX_VER=${PV}
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 
~amd64-linux ~x86-linux"
+IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace capstone 
big-endian bpf caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs 
lzma numa perl python slang systemtap tcmalloc unwind zstd"
+
+REQUIRED_USE="
+   ${PYTHON_REQUIRED_USE}
+"
+
+# setuptools (and Python) are always needed even if not building Python 
bindings
+BDEPEND="
+   ${LINUX_PATCH+dev-util/patchutils}
+   ${PYTHON_DEPS}
+   >=app-arch/tar-1.34-r2
+   dev-python/setuptools[${PYTHON_USEDEP}]
+   app-alternatives/yacc
+   app-alternatives/lex
+   virtual/pkgconfig
+   doc? (
+   app-text/asciidoc
+   app-text/sgml-common
+   app-text/xmlto
+   sys-process/time
+   )
+"
+
+RDEPEND="
+   audit? ( sys-process/audit )
+   babeltrace? ( dev-util/babeltrace:0/1 )
+   bpf? (
+   dev-libs/libbpf
+   dev-util/bpftool
+   dev-util/pahole
+   sys-devel/clang:=
+   sys-devel/llvm:=
+   )
+   caps? ( sys-libs/libcap )
+   capstone? ( dev-libs/capstone )
+   crypt? ( dev-libs/openssl:= )
+   gtk? ( x11-libs/gtk+:2 )
+   java? ( virtual/jre:* )
+   libpfm? ( dev-libs/libpfm:= )
+   libtraceevent? ( dev-libs/libtraceevent )
+   libtracefs? ( dev-libs/libtracefs )
+   lzma? ( app-arch/xz-utils )
+   numa? ( sys-process/numactl )
+   perl? ( dev-lang/perl:= )
+   python? ( ${PYTHON_DEPS} )
+   slang? ( sys-libs/slang )
+ 

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/files/

2024-03-18 Thread Conrad Kostecki
commit: 9ae67d65c63c3236ec11a8f94439af32e0637fa3
Author: Michael Mair-Keimberger  levelnine  at>
AuthorDate: Sun Mar 17 12:23:44 2024 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Mon Mar 18 20:00:22 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ae67d65

dev-util/perf: remove unused patch

Signed-off-by: Michael Mair-Keimberger  levelnine.at>
Signed-off-by: Conrad Kostecki  gentoo.org>

 dev-util/perf/files/perf-6.6-ia64.patch | 12 
 1 file changed, 12 deletions(-)

diff --git a/dev-util/perf/files/perf-6.6-ia64.patch 
b/dev-util/perf/files/perf-6.6-ia64.patch
deleted file mode 100644
index 111efe2ff2e7..
--- a/dev-util/perf/files/perf-6.6-ia64.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff --git a/tools/arch/ia64/include/asm/barrier.h 
b/tools/arch/ia64/include/asm/barrier.h
-index 6fffe5682713..9753f11d79ad 100644
 a/tools/arch/ia64/include/asm/barrier.h
-+++ b/tools/arch/ia64/include/asm/barrier.h
-@@ -14,6 +14,7 @@
- #ifndef _TOOLS_LINUX_ASM_IA64_BARRIER_H
- #define _TOOLS_LINUX_ASM_IA64_BARRIER_H
-
-+#include 
- #include 
-
- /*



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-03-12 Thread Sam James
commit: b3bf58668cd0c3f047d653074218c036ced7bd6d
Author: Sam James  gentoo  org>
AuthorDate: Wed Mar 13 04:47:50 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Mar 13 04:47:50 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3bf5866

dev-util/perf: Stabilize 6.7 arm64, #916522

Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-6.7.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.7.ebuild b/dev-util/perf/perf-6.7.ebuild
index d261f3170eca..5d0dd06b320d 100644
--- a/dev-util/perf/perf-6.7.ebuild
+++ b/dev-util/perf/perf-6.7.ebuild
@@ -33,7 +33,7 @@ S="${S_K}/tools/perf"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm ~arm64 ~loong ~mips ppc ppc64 ~riscv x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv x86 
~amd64-linux ~x86-linux"
 IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace big-endian bpf 
caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs lzma numa perl 
python slang systemtap tcmalloc unwind zstd"
 
 REQUIRED_USE="



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-03-10 Thread Jakov Smolić
commit: ab050bca35d13b7b87ce778944791af55fa79c0f
Author: Jakov Smolić  gentoo  org>
AuthorDate: Sun Mar 10 23:21:39 2024 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Sun Mar 10 23:21:39 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab050bca

dev-util/perf: Stabilize 6.7 arm, #916522

Signed-off-by: Jakov Smolić  gentoo.org>

 dev-util/perf/perf-6.7.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.7.ebuild b/dev-util/perf/perf-6.7.ebuild
index 59b57c8f015a..d261f3170eca 100644
--- a/dev-util/perf/perf-6.7.ebuild
+++ b/dev-util/perf/perf-6.7.ebuild
@@ -33,7 +33,7 @@ S="${S_K}/tools/perf"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~mips ppc ppc64 ~riscv x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm ~arm64 ~loong ~mips ppc ppc64 ~riscv x86 
~amd64-linux ~x86-linux"
 IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace big-endian bpf 
caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs lzma numa perl 
python slang systemtap tcmalloc unwind zstd"
 
 REQUIRED_USE="



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-03-10 Thread Guilherme Amadio
commit: 45d6a9ae1e055079276ae61463ae0221a6fdacf0
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Sun Mar 10 22:11:52 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Sun Mar 10 22:54:32 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45d6a9ae

dev-util/perf: add 6.8

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest|   1 +
 dev-util/perf/perf-6.8.ebuild | 338 ++
 2 files changed, 339 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 6d3f98bf72ae..d0961af9f392 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,2 +1,3 @@
 DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
 DIST linux-6.7.tar.xz 141406528 BLAKE2B 
cecdbd19905e43e485ab73b352ced18b37f2a138c97a6956cadcda5d3d271001117dc1cf896b166ff019fc7f405f9539e2ed0d6112b0890efb04d182adf4fd0e
 SHA512 
de06de556191614bd9daf077ae239360352a402bab407748e67f1e5108c92fd933e451707840ab22fe0f9976db3d1e1b60ca9d41cf894f015ca09b3f652b74ad
+DIST linux-6.8.tar.xz 142502100 BLAKE2B 
c6f17f816cea16e629f63e9379b9713f57b2c5173306926471f139a9d612a0c74e119341f8075390e55e203d787d9edeb4ad5a064b18870f6f0f7ffaafb2
 SHA512 
5c4eb4aa1d3f7d1ea01c0f7ddeadacdece6e144fd4bdfc16b2b925d3e10dc04de3a6db69320b79a96c3560052616f001d2c09e7a1bb4f7b731e2380a7ecce068

diff --git a/dev-util/perf/perf-6.8.ebuild b/dev-util/perf/perf-6.8.ebuild
new file mode 100644
index ..71d7382d4545
--- /dev/null
+++ b/dev-util/perf/perf-6.8.ebuild
@@ -0,0 +1,338 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit bash-completion-r1 estack flag-o-matic linux-info llvm toolchain-funcs 
python-r1
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/";
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
+   PATCH_VERSION=$(ver_cut 1-3)
+   LINUX_PATCH=patch-${PV//_/-}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
+elif [[ ${PV} == *.*.* ]] ; then
+   # stable-release series
+   LINUX_VER=$(ver_cut 1-2)
+   LINUX_PATCH=patch-${PV}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
+else
+   LINUX_VER=${PV}
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 
~amd64-linux ~x86-linux"
+IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace big-endian bpf 
caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs lzma numa perl 
python slang systemtap tcmalloc unwind zstd"
+
+REQUIRED_USE="
+   ${PYTHON_REQUIRED_USE}
+"
+
+# setuptools (and Python) are always needed even if not building Python 
bindings
+BDEPEND="
+   ${LINUX_PATCH+dev-util/patchutils}
+   ${PYTHON_DEPS}
+   >=app-arch/tar-1.34-r2
+   dev-python/setuptools[${PYTHON_USEDEP}]
+   app-alternatives/yacc
+   app-alternatives/lex
+   virtual/pkgconfig
+   doc? (
+   app-text/asciidoc
+   app-text/sgml-common
+   app-text/xmlto
+   sys-process/time
+   )
+"
+
+RDEPEND="
+   audit? ( sys-process/audit )
+   babeltrace? ( dev-util/babeltrace:0/1 )
+   bpf? (
+   dev-libs/libbpf
+   dev-util/bpftool
+   dev-util/pahole
+   )
+   caps? ( sys-libs/libcap )
+   bpf? (
+   sys-devel/clang:=
+   sys-devel/llvm:=
+   )
+   crypt? ( dev-libs/openssl:= )
+   gtk? ( x11-libs/gtk+:2 )
+   java? ( virtual/jre:* )
+   libpfm? ( dev-libs/libpfm:= )
+   libtraceevent? ( dev-libs/libtraceevent )
+   libtracefs? ( dev-libs/libtracefs )
+   lzma? ( app-arch/xz-utils )
+   numa? ( sys-process/numactl )
+   perl? ( dev-lang/perl:= )
+   python? ( ${PYTHON_DEPS} )
+   slang? ( sys-libs/slang )
+   systemtap? ( dev-debug/systemtap )
+   tcmalloc? ( dev-util/google-perftools )
+   unwind? ( sys-libs/libunwind:= )
+   zstd? ( app-arch/zstd:= )
+   dev-libs/elfutils
+   sys-libs/binutils-libs:=
+   sys-libs/zlib
+   virtual/libcrypt
+"
+
+DEPEND="${RDEPEND}
+   >=sys-kernel/linux-headers-5.10
+   java? 

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-03-10 Thread Guilherme Amadio
commit: a124aad19ed3bce269f05aef3fc17406c2fcb6c9
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Sun Mar 10 22:11:04 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Sun Mar 10 22:54:32 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a124aad1

dev-util/perf: drop 6.5, 6.6

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest|   2 -
 dev-util/perf/perf-6.5.ebuild | 326 
 dev-util/perf/perf-6.6.ebuild | 337 --
 3 files changed, 665 deletions(-)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 0ceb4c677bbe..6d3f98bf72ae 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,4 +1,2 @@
 DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
-DIST linux-6.5.tar.xz 138898084 BLAKE2B 
2e641b79a080e8f4ce283bcf6b74e2c6f15a374367f1c4c875c663868dbe801317340824fb3adb46b3a51d3b7e1f67cc4e8144d367621ec43ffba5c4eb8abb39
 SHA512 
1b59dc5e65d4922c3217a8c8f19022dfd6595ae89747861d825bfeb51a4ae6c85449d05db69635a712bef7b355b80318195665582d8933b1fed6ba582f6ff257
-DIST linux-6.6.tar.xz 140064536 BLAKE2B 
5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2
 SHA512 
458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35
 DIST linux-6.7.tar.xz 141406528 BLAKE2B 
cecdbd19905e43e485ab73b352ced18b37f2a138c97a6956cadcda5d3d271001117dc1cf896b166ff019fc7f405f9539e2ed0d6112b0890efb04d182adf4fd0e
 SHA512 
de06de556191614bd9daf077ae239360352a402bab407748e67f1e5108c92fd933e451707840ab22fe0f9976db3d1e1b60ca9d41cf894f015ca09b3f652b74ad

diff --git a/dev-util/perf/perf-6.5.ebuild b/dev-util/perf/perf-6.5.ebuild
deleted file mode 100644
index 31d57afa8da7..
--- a/dev-util/perf/perf-6.5.ebuild
+++ /dev/null
@@ -1,326 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-inherit bash-completion-r1 estack flag-o-matic linux-info llvm toolchain-funcs 
python-r1
-
-DESCRIPTION="Userland tools for Linux Performance Counters"
-HOMEPAGE="https://perf.wiki.kernel.org/";
-
-LINUX_V="${PV:0:1}.x"
-if [[ ${PV} == *_rc* ]] ; then
-   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
-   PATCH_VERSION=$(ver_cut 1-3)
-   LINUX_PATCH=patch-${PV//_/-}.xz
-   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
-   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
-elif [[ ${PV} == *.*.* ]] ; then
-   # stable-release series
-   LINUX_VER=$(ver_cut 1-2)
-   LINUX_PATCH=patch-${PV}.xz
-   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
-else
-   LINUX_VER=${PV}
-fi
-
-LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
-SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
-IUSE="audit babeltrace bpf caps clang crypt debug +doc gtk java libpfm 
libtraceevent libtracefs lzma numa perl python slang systemtap tcmalloc unwind 
zstd"
-
-REQUIRED_USE="
-   bpf? ( clang )
-   ${PYTHON_REQUIRED_USE}
-"
-
-# setuptools (and Python) are always needed even if not building Python 
bindings
-BDEPEND="
-   ${LINUX_PATCH+dev-util/patchutils}
-   ${PYTHON_DEPS}
-   >=app-arch/tar-1.34-r2
-   dev-python/setuptools[${PYTHON_USEDEP}]
-   app-alternatives/yacc
-   app-alternatives/lex
-   virtual/pkgconfig
-   doc? (
-   app-text/asciidoc
-   app-text/sgml-common
-   app-text/xmlto
-   sys-process/time
-   )
-"
-
-RDEPEND="
-   audit? ( sys-process/audit )
-   babeltrace? ( dev-util/babeltrace )
-   bpf? (
-   dev-libs/libbpf
-   dev-util/bpftool
-   dev-util/pahole
-   )
-   caps? ( sys-libs/libcap )
-   clang? (
-   sys-devel/clang:=
-   sys-devel/llvm:=
-   )
-   crypt? ( dev-libs/openssl:= )
-   gtk? ( x11-libs/gtk+:2 )
-   java? ( virtual/jre:* )
-   libpfm? ( dev-libs/libpfm:= )
-   libtraceevent? ( dev-libs/libtraceevent )
-   libtracefs? ( dev-libs/libtracefs )
-   lzma? ( app-arch/xz-utils )
-   numa? ( sys-process/numactl )
-   perl? ( dev-lang/perl:= )
-   python? ( ${PYTHON_DEPS} )
-   slang? ( sys-libs/slang )
-   systemtap? ( dev-debug/systemtap )
- 

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-03-10 Thread Guilherme Amadio
commit: dc3e8b2f29b50bef2b793452cdc5cbef6b8f83a2
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Sun Mar 10 22:08:36 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Sun Mar 10 22:54:32 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc3e8b2f

dev-util/perf: move ${S} to the right place

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/perf-6.3.ebuild | 6 +++---
 dev-util/perf/perf-6.7.ebuild | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild
index a441b1091d01..80e9fe676047 100644
--- a/dev-util/perf/perf-6.3.ebuild
+++ b/dev-util/perf/perf-6.3.ebuild
@@ -28,6 +28,9 @@ fi
 LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
 SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
@@ -79,9 +82,6 @@ DEPEND="${RDEPEND}
java? ( virtual/jdk )
 "
 
-S_K="${WORKDIR}/linux-${LINUX_VER}"
-S="${S_K}/tools/perf"
-
 CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
 
 QA_FLAGS_IGNORED=(

diff --git a/dev-util/perf/perf-6.7.ebuild b/dev-util/perf/perf-6.7.ebuild
index 1c017c7af180..59b57c8f015a 100644
--- a/dev-util/perf/perf-6.7.ebuild
+++ b/dev-util/perf/perf-6.7.ebuild
@@ -28,6 +28,9 @@ fi
 LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
 SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~mips ppc ppc64 ~riscv x86 
~amd64-linux ~x86-linux"
@@ -92,9 +95,6 @@ DEPEND="${RDEPEND}
java? ( virtual/jdk )
 "
 
-S_K="${WORKDIR}/linux-${LINUX_VER}"
-S="${S_K}/tools/perf"
-
 QA_FLAGS_IGNORED=(
'usr/bin/perf-read-vdso32' # not linked with anything except for libc
'usr/libexec/perf-core/dlfilters/.*' # plugins



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-03-10 Thread Arthur Zamarin
commit: 7a5b2f32b6e03b711ad1f3f63343328999129f85
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Mar 10 20:00:32 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Mar 10 20:00:32 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a5b2f32

dev-util/perf: Stabilize 6.7 ppc, #916522

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-util/perf/perf-6.7.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.7.ebuild b/dev-util/perf/perf-6.7.ebuild
index 531470248dbd..1c017c7af180 100644
--- a/dev-util/perf/perf-6.7.ebuild
+++ b/dev-util/perf/perf-6.7.ebuild
@@ -30,7 +30,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~mips ~ppc ppc64 ~riscv x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~mips ppc ppc64 ~riscv x86 
~amd64-linux ~x86-linux"
 IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace big-endian bpf 
caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs lzma numa perl 
python slang systemtap tcmalloc unwind zstd"
 
 REQUIRED_USE="



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-03-10 Thread Arthur Zamarin
commit: 025ac59853fd605d98b0d1db90a3344344072c87
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Mar 10 20:00:30 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Mar 10 20:00:30 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=025ac598

dev-util/perf: Stabilize 6.7 ppc64, #916522

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-util/perf/perf-6.7.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.7.ebuild b/dev-util/perf/perf-6.7.ebuild
index d16e08bca563..531470248dbd 100644
--- a/dev-util/perf/perf-6.7.ebuild
+++ b/dev-util/perf/perf-6.7.ebuild
@@ -30,7 +30,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~mips ~ppc ppc64 ~riscv x86 
~amd64-linux ~x86-linux"
 IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace big-endian bpf 
caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs lzma numa perl 
python slang systemtap tcmalloc unwind zstd"
 
 REQUIRED_USE="



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-03-10 Thread Arthur Zamarin
commit: 1ae19f23dd875c5f5d000bb851843d07f8c58b17
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Mar 10 19:52:08 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Mar 10 19:52:08 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ae19f23

dev-util/perf: Stabilize 6.7 x86, #916522

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-util/perf/perf-6.7.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.7.ebuild b/dev-util/perf/perf-6.7.ebuild
index 1abedb23fbcf..d16e08bca563 100644
--- a/dev-util/perf/perf-6.7.ebuild
+++ b/dev-util/perf/perf-6.7.ebuild
@@ -30,7 +30,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv x86 
~amd64-linux ~x86-linux"
 IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace big-endian bpf 
caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs lzma numa perl 
python slang systemtap tcmalloc unwind zstd"
 
 REQUIRED_USE="



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-03-10 Thread Arthur Zamarin
commit: 3c80f1b06f2f87c71a42f48c64cb1bf1ece6b069
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Mar 10 19:52:06 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Mar 10 19:52:06 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c80f1b0

dev-util/perf: Stabilize 6.7 amd64, #916522

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-util/perf/perf-6.7.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.7.ebuild b/dev-util/perf/perf-6.7.ebuild
index cc5b677f7e20..1abedb23fbcf 100644
--- a/dev-util/perf/perf-6.7.ebuild
+++ b/dev-util/perf/perf-6.7.ebuild
@@ -30,7 +30,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 
~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 
~amd64-linux ~x86-linux"
 IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace big-endian bpf 
caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs lzma numa perl 
python slang systemtap tcmalloc unwind zstd"
 
 REQUIRED_USE="



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/, dev-util/perf/files/

2024-02-21 Thread Yixun Lan
commit: 5986c3f9e460646d703ea15d6d51ba99f6cda59e
Author: Matoro Mahri  matoro  tk>
AuthorDate: Tue Feb 20 18:04:31 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Thu Feb 22 00:35:52 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5986c3f9

dev-util/perf: fix build on ia64

Upstream no longer taking patches for ia64.

Closes: https://github.com/gentoo/gentoo/pull/35445
Signed-off-by: Matoro Mahri  matoro.tk>
Signed-off-by: Yixun Lan  gentoo.org>

 dev-util/perf/files/perf-6.6-ia64.patch | 12 
 dev-util/perf/perf-6.6.ebuild   |  1 +
 2 files changed, 13 insertions(+)

diff --git a/dev-util/perf/files/perf-6.6-ia64.patch 
b/dev-util/perf/files/perf-6.6-ia64.patch
new file mode 100644
index ..111efe2ff2e7
--- /dev/null
+++ b/dev-util/perf/files/perf-6.6-ia64.patch
@@ -0,0 +1,12 @@
+diff --git a/tools/arch/ia64/include/asm/barrier.h 
b/tools/arch/ia64/include/asm/barrier.h
+index 6fffe5682713..9753f11d79ad 100644
+--- a/tools/arch/ia64/include/asm/barrier.h
 b/tools/arch/ia64/include/asm/barrier.h
+@@ -14,6 +14,7 @@
+ #ifndef _TOOLS_LINUX_ASM_IA64_BARRIER_H
+ #define _TOOLS_LINUX_ASM_IA64_BARRIER_H
+
++#include 
+ #include 
+
+ /*

diff --git a/dev-util/perf/perf-6.6.ebuild b/dev-util/perf/perf-6.6.ebuild
index d7386a01aedb..6436d68b9705 100644
--- a/dev-util/perf/perf-6.6.ebuild
+++ b/dev-util/perf/perf-6.6.ebuild
@@ -176,6 +176,7 @@ src_prepare() {
 
pushd "${S_K}" >/dev/null || die
eapply "${FILESDIR}"/perf-6.4-libtracefs.patch
+   eapply "${FILESDIR}"/perf-6.6-ia64.patch
popd || die
 
# Drop some upstream too-developer-oriented flags and fix the



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/, dev-util/perf/files/

2024-01-30 Thread Guilherme Amadio
commit: 70d3e0e2fd20857968ba3ea7ddbf9292144b22ed
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Tue Jan 30 15:04:56 2024 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Tue Jan 30 15:25:34 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70d3e0e2

dev-util/perf: fix bugs #917559 and #921197

Closes: https://bugs.gentoo.org/917559
Closes: https://bugs.gentoo.org/921197

Co-authored-by: Peter Volkov  gmail.com>

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/files/perf-6.7-expr.patch | 24 
 dev-util/perf/perf-6.7.ebuild   | 33 +
 2 files changed, 41 insertions(+), 16 deletions(-)

diff --git a/dev-util/perf/files/perf-6.7-expr.patch 
b/dev-util/perf/files/perf-6.7-expr.patch
new file mode 100644
index ..84f90c9b9008
--- /dev/null
+++ b/dev-util/perf/files/perf-6.7-expr.patch
@@ -0,0 +1,24 @@
+Ensure versions of libtraceevent and libtracefs have 3 components.
+
+Fixes: https://bugs.gentoo.org/917559
+
+--- a/tools/perf/Makefile.config
 b/tools/perf/Makefile.config
+@@ -1163,7 +1163,7 @@ ifneq ($(NO_LIBTRACEEVENT),1)
+   ifeq ($(feature-libtraceevent), 1)
+ CFLAGS += -DHAVE_LIBTRACEEVENT
+ EXTLIBS += -ltraceevent
+-LIBTRACEEVENT_VERSION := $(shell $(PKG_CONFIG) --modversion libtraceevent)
++LIBTRACEEVENT_VERSION := $(shell $(PKG_CONFIG) --modversion 
libtraceevent).0
+ LIBTRACEEVENT_VERSION_1 := $(word 1, $(subst ., 
,$(LIBTRACEEVENT_VERSION)))
+ LIBTRACEEVENT_VERSION_2 := $(word 2, $(subst ., 
,$(LIBTRACEEVENT_VERSION)))
+ LIBTRACEEVENT_VERSION_3 := $(word 3, $(subst ., 
,$(LIBTRACEEVENT_VERSION)))
+@@ -1177,7 +1177,7 @@ ifneq ($(NO_LIBTRACEEVENT),1)
+   $(call feature_check,libtracefs)
+   ifeq ($(feature-libtracefs), 1)
+ EXTLIBS += -ltracefs
+-LIBTRACEFS_VERSION := $(shell $(PKG_CONFIG) --modversion libtracefs)
++LIBTRACEFS_VERSION := $(shell $(PKG_CONFIG) --modversion libtracefs).0
+ LIBTRACEFS_VERSION_1 := $(word 1, $(subst ., ,$(LIBTRACEFS_VERSION)))
+ LIBTRACEFS_VERSION_2 := $(word 2, $(subst ., ,$(LIBTRACEFS_VERSION)))
+ LIBTRACEFS_VERSION_3 := $(word 3, $(subst ., ,$(LIBTRACEFS_VERSION)))

diff --git a/dev-util/perf/perf-6.7.ebuild b/dev-util/perf/perf-6.7.ebuild
index 45ad2f3ededd..cc5b677f7e20 100644
--- a/dev-util/perf/perf-6.7.ebuild
+++ b/dev-util/perf/perf-6.7.ebuild
@@ -56,7 +56,7 @@ BDEPEND="
 
 RDEPEND="
audit? ( sys-process/audit )
-   babeltrace? ( dev-util/babeltrace )
+   babeltrace? ( dev-util/babeltrace:0/1 )
bpf? (
dev-libs/libbpf
dev-util/bpftool
@@ -95,20 +95,6 @@ DEPEND="${RDEPEND}
 S_K="${WORKDIR}/linux-${LINUX_VER}"
 S="${S_K}/tools/perf"
 
-CONFIG_CHECK="
-   ~DEBUG_INFO
-   ~FTRACE
-   ~FTRACE_SYSCALLS
-   ~FUNCTION_TRACER
-   ~KALLSYMS
-   ~KALLSYMS_ALL
-   ~KPROBES
-   ~KPROBE_EVENTS
-   ~PERF_EVENTS
-   ~UPROBES
-   ~UPROBE_EVENTS
-"
-
 QA_FLAGS_IGNORED=(
'usr/bin/perf-read-vdso32' # not linked with anything except for libc
'usr/libexec/perf-core/dlfilters/.*' # plugins
@@ -123,6 +109,20 @@ pkg_pretend() {
 }
 
 pkg_setup() {
+   local CONFIG_CHECK="
+   ~DEBUG_INFO
+   ~FTRACE
+   ~FTRACE_SYSCALLS
+   ~FUNCTION_TRACER
+   ~KALLSYMS
+   ~KALLSYMS_ALL
+   ~KPROBES
+   ~KPROBE_EVENTS
+   ~PERF_EVENTS
+   ~UPROBES
+   ~UPROBE_EVENTS
+   "
+
use bpf && llvm_pkg_setup
# We enable python unconditionally as libbpf always generates
# API headers using python script
@@ -140,7 +140,7 @@ pkg_setup() {
 src_unpack() {
local paths=(
kernel/bpf tools/{arch,bpf,build,include,lib,perf,scripts}
-   scripts include lib "arch/*/lib" arch/arm64/tools
+   scripts include lib "arch/*/lib" "arch/*/tools"
)
 
# We expect the tar implementation to support the -j option (both
@@ -176,6 +176,7 @@ src_prepare() {
 
pushd "${S_K}" >/dev/null || die
eapply "${FILESDIR}"/perf-6.4-libtracefs.patch
+   eapply "${FILESDIR}"/perf-6.7-expr.patch
popd || die
 
# Drop some upstream too-developer-oriented flags and fix the



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-01-30 Thread Yixun Lan
commit: 85fa5d9f2326a0aa8579a076a16ff46b5becb570
Author: Yixun Lan  gentoo  org>
AuthorDate: Tue Jan 30 14:32:57 2024 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Tue Jan 30 14:33:18 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85fa5d9f

dev-util/perf: add 6.7

Signed-off-by: Yixun Lan  gentoo.org>

 dev-util/perf/Manifest|   1 +
 dev-util/perf/perf-6.7.ebuild | 336 ++
 2 files changed, 337 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 375121b21e33..0ceb4c677bbe 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,3 +1,4 @@
 DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
 DIST linux-6.5.tar.xz 138898084 BLAKE2B 
2e641b79a080e8f4ce283bcf6b74e2c6f15a374367f1c4c875c663868dbe801317340824fb3adb46b3a51d3b7e1f67cc4e8144d367621ec43ffba5c4eb8abb39
 SHA512 
1b59dc5e65d4922c3217a8c8f19022dfd6595ae89747861d825bfeb51a4ae6c85449d05db69635a712bef7b355b80318195665582d8933b1fed6ba582f6ff257
 DIST linux-6.6.tar.xz 140064536 BLAKE2B 
5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2
 SHA512 
458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35
+DIST linux-6.7.tar.xz 141406528 BLAKE2B 
cecdbd19905e43e485ab73b352ced18b37f2a138c97a6956cadcda5d3d271001117dc1cf896b166ff019fc7f405f9539e2ed0d6112b0890efb04d182adf4fd0e
 SHA512 
de06de556191614bd9daf077ae239360352a402bab407748e67f1e5108c92fd933e451707840ab22fe0f9976db3d1e1b60ca9d41cf894f015ca09b3f652b74ad

diff --git a/dev-util/perf/perf-6.7.ebuild b/dev-util/perf/perf-6.7.ebuild
new file mode 100644
index ..45ad2f3ededd
--- /dev/null
+++ b/dev-util/perf/perf-6.7.ebuild
@@ -0,0 +1,336 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit bash-completion-r1 estack flag-o-matic linux-info llvm toolchain-funcs 
python-r1
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/";
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
+   PATCH_VERSION=$(ver_cut 1-3)
+   LINUX_PATCH=patch-${PV//_/-}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
+elif [[ ${PV} == *.*.* ]] ; then
+   # stable-release series
+   LINUX_VER=$(ver_cut 1-2)
+   LINUX_PATCH=patch-${PV}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
+else
+   LINUX_VER=${PV}
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 
~amd64-linux ~x86-linux"
+IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace big-endian bpf 
caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs lzma numa perl 
python slang systemtap tcmalloc unwind zstd"
+
+REQUIRED_USE="
+   ${PYTHON_REQUIRED_USE}
+"
+
+# setuptools (and Python) are always needed even if not building Python 
bindings
+BDEPEND="
+   ${LINUX_PATCH+dev-util/patchutils}
+   ${PYTHON_DEPS}
+   >=app-arch/tar-1.34-r2
+   dev-python/setuptools[${PYTHON_USEDEP}]
+   app-alternatives/yacc
+   app-alternatives/lex
+   virtual/pkgconfig
+   doc? (
+   app-text/asciidoc
+   app-text/sgml-common
+   app-text/xmlto
+   sys-process/time
+   )
+"
+
+RDEPEND="
+   audit? ( sys-process/audit )
+   babeltrace? ( dev-util/babeltrace )
+   bpf? (
+   dev-libs/libbpf
+   dev-util/bpftool
+   dev-util/pahole
+   )
+   caps? ( sys-libs/libcap )
+   bpf? (
+   sys-devel/clang:=
+   sys-devel/llvm:=
+   )
+   crypt? ( dev-libs/openssl:= )
+   gtk? ( x11-libs/gtk+:2 )
+   java? ( virtual/jre:* )
+   libpfm? ( dev-libs/libpfm:= )
+   libtraceevent? ( dev-libs/libtraceevent )
+   libtracefs? ( dev-libs/libtracefs )
+   lzma? ( app-arch/xz-utils )
+   numa? ( sys-process/numactl )
+   perl? ( dev-lang/perl:= )
+   python? ( ${PYTHON_DEPS} )
+   slang? ( sys-libs/slang )
+   systemtap? ( dev-debug/systemtap )
+   tcmalloc? ( dev-util/google-perftools )
+   unwind? ( sys-libs/libunwind:=

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2024-01-04 Thread Sam James
commit: 4cdc03559b16a0a303ebf5634487d93bf91d0298
Author: Matoro Mahri  matoro  tk>
AuthorDate: Fri Jan  5 03:46:54 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jan  5 05:29:57 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cdc0355

dev-util/perf: explicitly specify linker emulation for mips

perf directly invokes LD for linking rather than going through CC, which
on mips requires explicitly specifying the emulation.  This is a port of
the below buildroot patch.

See: 
https://patchwork.ozlabs.org/project/buildroot/patch/20170217105905.32151-1-Vincent.Riera
  imgtec.com/
Signed-off-by: Matoro Mahri  matoro.tk>
Closes: https://github.com/gentoo/gentoo/pull/34648
Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-6.6.ebuild | 24 +---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/dev-util/perf/perf-6.6.ebuild b/dev-util/perf/perf-6.6.ebuild
index 5f93ba5de347..206b06714a2f 100644
--- a/dev-util/perf/perf-6.6.ebuild
+++ b/dev-util/perf/perf-6.6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 
~amd64-linux ~x86-linux"
-IUSE="audit babeltrace bpf caps crypt debug +doc gtk java libpfm 
+libtraceevent +libtracefs lzma numa perl python slang systemtap tcmalloc 
unwind zstd"
+IUSE="abi_mips_o32 abi_mips_n32 abi_mips_n64 audit babeltrace big-endian bpf 
caps crypt debug +doc gtk java libpfm +libtraceevent +libtracefs lzma numa perl 
python slang systemtap tcmalloc unwind zstd"
 
 REQUIRED_USE="
${PYTHON_REQUIRED_USE}
@@ -223,11 +223,29 @@ perf_make() {
disable_libdw=1
fi
 
+   # perf directly invokes LD for linking without going through CC, on mips
+   # it is required to specify the emulation.  port of below buildroot 
patch
+   # 
https://patchwork.ozlabs.org/project/buildroot/patch/20170217105905.32151-1-vincent.ri...@imgtec.com/
+   local linker="$(tc-getLD)"
+   if use mips
+   then
+   if use big-endian
+   then
+   use abi_mips_n64 && linker+=" -m elf64btsmip"
+   use abi_mips_n32 && linker+=" -m elf32btsmipn32"
+   use abi_mips_o32 && linker+=" -m elf32btsmip"
+   else
+   use abi_mips_n64 && linker+=" -m elf64ltsmip"
+   use abi_mips_n32 && linker+=" -m elf32ltsmipn32"
+   use abi_mips_o32 && linker+=" -m elf32ltsmip"
+   fi
+   fi
+
# FIXME: NO_CORESIGHT
local emakeargs=(
V=1 VF=1
HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)"
-   CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" 
LD="$(tc-getLD)" NM="$(tc-getNM)"
+   CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" 
LD="${linker}" NM="$(tc-getNM)"
PKG_CONFIG="$(tc-getPKG_CONFIG)"
prefix="${EPREFIX}/usr" bindir_relative="bin"
tipdir="share/doc/${PF}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-10-30 Thread Guilherme Amadio
commit: dcbae2889c4cc9dbee05965954910280ee231c5a
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Mon Oct 30 08:10:08 2023 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Mon Oct 30 09:25:21 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcbae288

dev-util/perf: remove empty assignment to SRC_URI

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/perf-6.3.ebuild | 1 -
 dev-util/perf/perf-6.5.ebuild | 1 -
 2 files changed, 2 deletions(-)

diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild
index 8f0ac9a76ce4..7969607f7994 100644
--- a/dev-util/perf/perf-6.3.ebuild
+++ b/dev-util/perf/perf-6.3.ebuild
@@ -23,7 +23,6 @@ elif [[ ${PV} == *.*.* ]] ; then

SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
 else
LINUX_VER=${PV}
-   SRC_URI=""
 fi
 
 LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"

diff --git a/dev-util/perf/perf-6.5.ebuild b/dev-util/perf/perf-6.5.ebuild
index a1a140af0ed7..63a36103e1f1 100644
--- a/dev-util/perf/perf-6.5.ebuild
+++ b/dev-util/perf/perf-6.5.ebuild
@@ -23,7 +23,6 @@ elif [[ ${PV} == *.*.* ]] ; then

SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
 else
LINUX_VER=${PV}
-   SRC_URI=""
 fi
 
 LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-10-30 Thread Guilherme Amadio
commit: e13c85b079360f3eec022026813de66aa249d5ac
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Mon Oct 30 08:09:11 2023 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Mon Oct 30 09:25:21 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e13c85b0

dev-util/perf: drop 6.3-r1, 6.4-r1

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest   |   1 -
 dev-util/perf/perf-6.3-r1.ebuild | 278 --
 dev-util/perf/perf-6.4-r1.ebuild | 313 ---
 3 files changed, 592 deletions(-)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index f24a9347ce54..c4f16a986c7e 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,3 +1,2 @@
 DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
-DIST linux-6.4.tar.xz 137794856 BLAKE2B 
b59eb04a8715af9f686978812e6d4a466172bb859f80657076de14cd0828b4fac15b688ff8959f5c65485f7f6bef26590412c66821e720de843cb8666f226c90
 SHA512 
11a48b25e0b513782d3b89101c2ec8dd9cefd6ce08dc63a91137903b66392aa72ca1fe32816710673af84dd47de3ab8738056a6af93dc0d5e60ef4b869b49928
 DIST linux-6.5.tar.xz 138898084 BLAKE2B 
2e641b79a080e8f4ce283bcf6b74e2c6f15a374367f1c4c875c663868dbe801317340824fb3adb46b3a51d3b7e1f67cc4e8144d367621ec43ffba5c4eb8abb39
 SHA512 
1b59dc5e65d4922c3217a8c8f19022dfd6595ae89747861d825bfeb51a4ae6c85449d05db69635a712bef7b355b80318195665582d8933b1fed6ba582f6ff257

diff --git a/dev-util/perf/perf-6.3-r1.ebuild b/dev-util/perf/perf-6.3-r1.ebuild
deleted file mode 100644
index d519238f14e1..
--- a/dev-util/perf/perf-6.3-r1.ebuild
+++ /dev/null
@@ -1,278 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-inherit bash-completion-r1 estack flag-o-matic llvm toolchain-funcs python-r1 
linux-info
-
-DESCRIPTION="Userland tools for Linux Performance Counters"
-HOMEPAGE="https://perf.wiki.kernel.org/";
-
-LINUX_V="${PV:0:1}.x"
-if [[ ${PV} == *_rc* ]] ; then
-   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
-   PATCH_VERSION=$(ver_cut 1-3)
-   LINUX_PATCH=patch-${PV//_/-}.xz
-   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
-   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
-elif [[ ${PV} == *.*.* ]] ; then
-   # stable-release series
-   LINUX_VER=$(ver_cut 1-2)
-   LINUX_PATCH=patch-${PV}.xz
-   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
-else
-   LINUX_VER=${PV}
-   SRC_URI=""
-fi
-
-LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
-SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
-IUSE="audit babeltrace caps clang crypt debug +doc gtk java libpfm lzma numa 
perl python slang systemtap unwind zstd"
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-# setuptools (and Python) are always needed even if not building Python 
bindings
-BDEPEND="
-   ${LINUX_PATCH+dev-util/patchutils}
-   ${PYTHON_DEPS}
-   >=app-arch/tar-1.34-r2
-   dev-python/setuptools[${PYTHON_USEDEP}]
-   sys-devel/bison
-   sys-devel/flex
-   virtual/pkgconfig
-   doc? (
-   app-text/asciidoc
-   app-text/sgml-common
-   app-text/xmlto
-   sys-process/time
-   )
-"
-
-RDEPEND="
-   audit? ( sys-process/audit )
-   babeltrace? ( dev-util/babeltrace )
-   caps? ( sys-libs/libcap )
-   clang? (
-   sys-devel/clang:=
-   sys-devel/llvm:=
-   )
-   crypt? ( dev-libs/openssl:= )
-   gtk? ( x11-libs/gtk+:2 )
-   java? ( virtual/jre:* )
-   libpfm? ( dev-libs/libpfm:= )
-   lzma? ( app-arch/xz-utils )
-   numa? ( sys-process/numactl )
-   perl? ( dev-lang/perl:= )
-   python? ( ${PYTHON_DEPS} )
-   slang? ( sys-libs/slang )
-   systemtap? ( dev-util/systemtap )
-   unwind? ( sys-libs/libunwind:= )
-   zstd? ( app-arch/zstd:= )
-   dev-libs/elfutils
-   sys-libs/binutils-libs:=
-   sys-libs/zlib
-"
-
-DEPEND="${RDEPEND}
-   >=sys-kernel/linux-headers-5.10
-   java? ( virtual/jdk )
-"
-
-S_K="${WORKDIR}/linux-${LINUX_VER}"
-S="${S_K}/tools/perf"
-
-CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
-
-QA_FLAGS_IGNORED=(
-   'usr/bin/perf-read-vdso32' # not linked with anything except for libc
-   'usr/libexec/perf-core/dlfilters/.*' # plugins
-)
-
-pkg_pretend() {
-   if ! use doc ; then
-   ewarn "Witho

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-10-30 Thread Guilherme Amadio
commit: 5b3cdf80b16a0c286c96adc0fdee17564a36a298
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Mon Oct 30 09:20:52 2023 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Mon Oct 30 09:25:21 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b3cdf80

dev-util/perf: add 6.6

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest|   1 +
 dev-util/perf/perf-6.6.ebuild | 304 ++
 2 files changed, 305 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index c4f16a986c7e..375121b21e33 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,2 +1,3 @@
 DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
 DIST linux-6.5.tar.xz 138898084 BLAKE2B 
2e641b79a080e8f4ce283bcf6b74e2c6f15a374367f1c4c875c663868dbe801317340824fb3adb46b3a51d3b7e1f67cc4e8144d367621ec43ffba5c4eb8abb39
 SHA512 
1b59dc5e65d4922c3217a8c8f19022dfd6595ae89747861d825bfeb51a4ae6c85449d05db69635a712bef7b355b80318195665582d8933b1fed6ba582f6ff257
+DIST linux-6.6.tar.xz 140064536 BLAKE2B 
5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2
 SHA512 
458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35

diff --git a/dev-util/perf/perf-6.6.ebuild b/dev-util/perf/perf-6.6.ebuild
new file mode 100644
index ..b86fbd604b85
--- /dev/null
+++ b/dev-util/perf/perf-6.6.ebuild
@@ -0,0 +1,304 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit bash-completion-r1 estack flag-o-matic linux-info llvm toolchain-funcs 
python-r1
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/";
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
+   PATCH_VERSION=$(ver_cut 1-3)
+   LINUX_PATCH=patch-${PV//_/-}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
+elif [[ ${PV} == *.*.* ]] ; then
+   # stable-release series
+   LINUX_VER=$(ver_cut 1-2)
+   LINUX_PATCH=patch-${PV}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
+else
+   LINUX_VER=${PV}
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+IUSE="audit babeltrace bpf caps crypt debug +doc gtk java libpfm 
+libtraceevent +libtracefs lzma numa perl python slang systemtap tcmalloc 
unwind zstd"
+
+REQUIRED_USE="
+   ${PYTHON_REQUIRED_USE}
+"
+
+# setuptools (and Python) are always needed even if not building Python 
bindings
+BDEPEND="
+   ${LINUX_PATCH+dev-util/patchutils}
+   ${PYTHON_DEPS}
+   >=app-arch/tar-1.34-r2
+   dev-python/setuptools[${PYTHON_USEDEP}]
+   sys-devel/bison
+   sys-devel/flex
+   virtual/pkgconfig
+   doc? (
+   app-text/asciidoc
+   app-text/sgml-common
+   app-text/xmlto
+   sys-process/time
+   )
+"
+
+RDEPEND="
+   audit? ( sys-process/audit )
+   babeltrace? ( dev-util/babeltrace )
+   bpf? (
+   dev-libs/libbpf
+   dev-util/bpftool
+   dev-util/pahole
+   )
+   caps? ( sys-libs/libcap )
+   bpf? (
+   sys-devel/clang:=
+   sys-devel/llvm:=
+   )
+   crypt? ( dev-libs/openssl:= )
+   gtk? ( x11-libs/gtk+:2 )
+   java? ( virtual/jre:* )
+   libpfm? ( dev-libs/libpfm:= )
+   libtraceevent? ( dev-libs/libtraceevent )
+   libtracefs? ( dev-libs/libtracefs )
+   lzma? ( app-arch/xz-utils )
+   numa? ( sys-process/numactl )
+   perl? ( dev-lang/perl:= )
+   python? ( ${PYTHON_DEPS} )
+   slang? ( sys-libs/slang )
+   systemtap? ( dev-util/systemtap )
+   tcmalloc? ( dev-util/google-perftools )
+   unwind? ( sys-libs/libunwind:= )
+   zstd? ( app-arch/zstd:= )
+   dev-libs/elfutils
+   sys-libs/binutils-libs:=
+   sys-libs/zlib
+"
+
+DEPEND="${RDEPEND}
+   >=sys-kernel/linux-headers-5.10
+   java? ( virtual/jdk )
+"
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+CONFIG_CHECK="
+   ~DEBUG_INFO
+   ~FTRACE
+   ~FTRACE_SYSCALLS
+

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-09-12 Thread Guilherme Amadio
commit: 090f74fc7bb334a602d39db5e2fccd5937e3194b
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Tue Sep 12 19:21:30 2023 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Tue Sep 12 19:22:16 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=090f74fc

dev-util/perf: version bump to 6.5

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest|   1 +
 dev-util/perf/perf-6.5.ebuild | 313 ++
 2 files changed, 314 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index a8c77095f0ca..f24a9347ce54 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,2 +1,3 @@
 DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
 DIST linux-6.4.tar.xz 137794856 BLAKE2B 
b59eb04a8715af9f686978812e6d4a466172bb859f80657076de14cd0828b4fac15b688ff8959f5c65485f7f6bef26590412c66821e720de843cb8666f226c90
 SHA512 
11a48b25e0b513782d3b89101c2ec8dd9cefd6ce08dc63a91137903b66392aa72ca1fe32816710673af84dd47de3ab8738056a6af93dc0d5e60ef4b869b49928
+DIST linux-6.5.tar.xz 138898084 BLAKE2B 
2e641b79a080e8f4ce283bcf6b74e2c6f15a374367f1c4c875c663868dbe801317340824fb3adb46b3a51d3b7e1f67cc4e8144d367621ec43ffba5c4eb8abb39
 SHA512 
1b59dc5e65d4922c3217a8c8f19022dfd6595ae89747861d825bfeb51a4ae6c85449d05db69635a712bef7b355b80318195665582d8933b1fed6ba582f6ff257

diff --git a/dev-util/perf/perf-6.5.ebuild b/dev-util/perf/perf-6.5.ebuild
new file mode 100644
index ..a1a140af0ed7
--- /dev/null
+++ b/dev-util/perf/perf-6.5.ebuild
@@ -0,0 +1,313 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit bash-completion-r1 estack flag-o-matic linux-info llvm toolchain-funcs 
python-r1
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/";
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
+   PATCH_VERSION=$(ver_cut 1-3)
+   LINUX_PATCH=patch-${PV//_/-}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
+elif [[ ${PV} == *.*.* ]] ; then
+   # stable-release series
+   LINUX_VER=$(ver_cut 1-2)
+   LINUX_PATCH=patch-${PV}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
+else
+   LINUX_VER=${PV}
+   SRC_URI=""
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+IUSE="audit babeltrace bpf caps clang crypt debug +doc gtk java libpfm 
libtraceevent libtracefs lzma numa perl python slang systemtap tcmalloc unwind 
zstd"
+
+REQUIRED_USE="
+   bpf? ( clang )
+   ${PYTHON_REQUIRED_USE}
+"
+
+# setuptools (and Python) are always needed even if not building Python 
bindings
+BDEPEND="
+   ${LINUX_PATCH+dev-util/patchutils}
+   ${PYTHON_DEPS}
+   >=app-arch/tar-1.34-r2
+   dev-python/setuptools[${PYTHON_USEDEP}]
+   sys-devel/bison
+   sys-devel/flex
+   virtual/pkgconfig
+   doc? (
+   app-text/asciidoc
+   app-text/sgml-common
+   app-text/xmlto
+   sys-process/time
+   )
+"
+
+RDEPEND="
+   audit? ( sys-process/audit )
+   babeltrace? ( dev-util/babeltrace )
+   bpf? (
+   dev-libs/libbpf
+   dev-util/bpftool
+   dev-util/pahole
+   )
+   caps? ( sys-libs/libcap )
+   clang? (
+   sys-devel/clang:=
+   sys-devel/llvm:=
+   )
+   crypt? ( dev-libs/openssl:= )
+   gtk? ( x11-libs/gtk+:2 )
+   java? ( virtual/jre:* )
+   libpfm? ( dev-libs/libpfm:= )
+   libtraceevent? ( dev-libs/libtraceevent )
+   libtracefs? ( dev-libs/libtracefs )
+   lzma? ( app-arch/xz-utils )
+   numa? ( sys-process/numactl )
+   perl? ( dev-lang/perl:= )
+   python? ( ${PYTHON_DEPS} )
+   slang? ( sys-libs/slang )
+   systemtap? ( dev-util/systemtap )
+   tcmalloc? ( dev-util/google-perftools )
+   unwind? ( sys-libs/libunwind:= )
+   zstd? ( app-arch/zstd:= )
+   dev-libs/elfutils
+   sys-libs/binutils-libs:=
+   sys-libs/zlib
+"
+
+DEPEND="${RDEPEND}
+   >=sys-kernel/linux-headers-5.10
+   java? ( virtual/jdk )
+"
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+CONFIG_CHECK="
+ 

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-07-11 Thread WANG Xuerui
commit: 98b40b79e6b84457b9b747e289a1a7dad2a00e9e
Author: WANG Xuerui  gentoo  org>
AuthorDate: Tue Jul 11 10:02:46 2023 +
Commit: WANG Xuerui  gentoo  org>
CommitDate: Tue Jul 11 11:02:02 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98b40b79

dev-util/perf: keyword 6.4-r1 for ~loong

Signed-off-by: WANG Xuerui  gentoo.org>

 dev-util/perf/perf-6.4-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.4-r1.ebuild b/dev-util/perf/perf-6.4-r1.ebuild
index c341b8367f60..a1a140af0ed7 100644
--- a/dev-util/perf/perf-6.4-r1.ebuild
+++ b/dev-util/perf/perf-6.4-r1.ebuild
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
 IUSE="audit babeltrace bpf caps clang crypt debug +doc gtk java libpfm 
libtraceevent libtracefs lzma numa perl python slang systemtap tcmalloc unwind 
zstd"
 
 REQUIRED_USE="



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-07-10 Thread Matt Turner
commit: 6020fc656e53f467c2d548a6550f835e07780b1f
Author: Matt Turner  gentoo  org>
AuthorDate: Mon Jul 10 15:33:40 2023 +
Commit: Matt Turner  gentoo  org>
CommitDate: Mon Jul 10 15:34:03 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6020fc65

dev-util/perf: Filter LTO flags

Bug: https://bugs.gentoo.org/858449
Signed-off-by: Matt Turner  gentoo.org>

 dev-util/perf/perf-6.3-r1.ebuild | 4 +++-
 dev-util/perf/perf-6.3.ebuild| 4 +++-
 dev-util/perf/perf-6.4-r1.ebuild | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/dev-util/perf/perf-6.3-r1.ebuild b/dev-util/perf/perf-6.3-r1.ebuild
index eb28c4419c9b..d519238f14e1 100644
--- a/dev-util/perf/perf-6.3-r1.ebuild
+++ b/dev-util/perf/perf-6.3-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{10..12} )
-inherit bash-completion-r1 estack llvm toolchain-funcs python-r1 linux-info
+inherit bash-completion-r1 estack flag-o-matic llvm toolchain-funcs python-r1 
linux-info
 
 DESCRIPTION="Userland tools for Linux Performance Counters"
 HOMEPAGE="https://perf.wiki.kernel.org/";
@@ -231,6 +231,8 @@ perf_make() {
 }
 
 src_compile() {
+   filter-lto
+
# test-clang.bin not build with g++
if use clang; then
make -C "${S_K}/tools/build/feature" V=1 CXX=${CHOST}-clang++ 
test-clang.bin || die

diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild
index 31bad3f7e7fe..8f0ac9a76ce4 100644
--- a/dev-util/perf/perf-6.3.ebuild
+++ b/dev-util/perf/perf-6.3.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 PYTHON_COMPAT=( python3_{9..11} )
-inherit bash-completion-r1 estack llvm toolchain-funcs python-r1 linux-info
+inherit bash-completion-r1 estack flag-o-matic llvm toolchain-funcs python-r1 
linux-info
 
 DESCRIPTION="Userland tools for Linux Performance Counters"
 HOMEPAGE="https://perf.wiki.kernel.org/";
@@ -224,6 +224,8 @@ perf_make() {
 }
 
 src_compile() {
+   filter-lto
+
# test-clang.bin not build with g++
if use clang; then
make -C "${S_K}/tools/build/feature" V=1 CXX=${CHOST}-clang++ 
test-clang.bin || die

diff --git a/dev-util/perf/perf-6.4-r1.ebuild b/dev-util/perf/perf-6.4-r1.ebuild
index 83118f390754..c341b8367f60 100644
--- a/dev-util/perf/perf-6.4-r1.ebuild
+++ b/dev-util/perf/perf-6.4-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{10..12} )
-inherit bash-completion-r1 estack linux-info llvm toolchain-funcs python-r1
+inherit bash-completion-r1 estack flag-o-matic linux-info llvm toolchain-funcs 
python-r1
 
 DESCRIPTION="Userland tools for Linux Performance Counters"
 HOMEPAGE="https://perf.wiki.kernel.org/";
@@ -266,6 +266,8 @@ perf_make() {
 }
 
 src_compile() {
+   filter-lto
+
# test-clang.bin not build with g++
if use clang; then
make -C "${S_K}/tools/build/feature" V=1 CXX=${CHOST}-clang++ 
test-clang.bin || die



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/files/, dev-util/perf/

2023-07-06 Thread Guilherme Amadio
commit: 443b60a7c73a5637dad6a47a50b5351163572818
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Thu Jul  6 15:51:37 2023 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Thu Jul  6 16:11:40 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=443b60a7

dev-util/perf: drop 5.19-r1, 6.0-r1, 6.2-r1

Closes: https://bugs.gentoo.org/832704
Closes: https://bugs.gentoo.org/855539

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest|   4 -
 dev-util/perf/files/perf-5.18-clang.patch |  45 -
 dev-util/perf/perf-5.19-r1.ebuild | 274 --
 dev-util/perf/perf-6.0-r1.ebuild  | 269 -
 dev-util/perf/perf-6.2-r1.ebuild  | 269 -
 5 files changed, 861 deletions(-)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 32507222d0a3..a8c77095f0ca 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,6 +1,2 @@
-DIST linux-5.19.tar.xz 131581464 BLAKE2B 
4db03a6830a3b3bbf0837e1912182a443d9a4aa8af20a12e6ec814ed708038452d3c0ccee1258cca671c464d76461536363a8adc56e9d098c9a44ae3484a297a
 SHA512 
00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623
-DIST linux-6.0.tar.xz 133886176 BLAKE2B 
c09a9c877ac0fac83dc31d2d04d96f0a3331d4ed78e3ad4edfd4dc077e1c11d0c49f419fdac4008b5c93d1b09c2b724e12ef0b38371ad0962908abf85dfa95fa
 SHA512 
bac41a7aeb6e809616cee2f13dcd1c45e829dfd1ccf60aee1dc4c46b1e28532f4485c7d819a32940de84fdfbf89db80a4e919bce8a74b2948c5a01551771b714
-DIST linux-6.2.tar.xz 136430892 BLAKE2B 
05b63254734ea685db437cb1c00a6da63eee74d7e99f4ed2d074aaa01ac4487813ab297d337a6855cdbcbb33346b631c4256ee3b06191adfb1be3615a56bdd6d
 SHA512 
a01bee0b968b95183934fe3504516be7ef5811944a061f5aed05ecebaa27b5eb64e33232fd0a8dd622b3c8743bfe462ef7e464d381734d111a0ad6a6d9f66ddd
 DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
 DIST linux-6.4.tar.xz 137794856 BLAKE2B 
b59eb04a8715af9f686978812e6d4a466172bb859f80657076de14cd0828b4fac15b688ff8959f5c65485f7f6bef26590412c66821e720de843cb8666f226c90
 SHA512 
11a48b25e0b513782d3b89101c2ec8dd9cefd6ce08dc63a91137903b66392aa72ca1fe32816710673af84dd47de3ab8738056a6af93dc0d5e60ef4b869b49928
-DIST perf-5.19-binutils-2.39-patches.tar.xz 5612 BLAKE2B 
ec3aeadc3e2508f33dddbb419f434885b39b8220d294f3845f0bc96282923ff46dca126a04c732b8286752e56087ba5b2c5ad9526884f6d0b8b6df5665121e5e
 SHA512 
af676e5a600e227d85f89a5ee0cfacfe1845aa56c27ef9da3ebaf578362d7e741375d30565759123b33b86d36bc9981c8c4cda113af32745cc59cf4a9275e73b

diff --git a/dev-util/perf/files/perf-5.18-clang.patch 
b/dev-util/perf/files/perf-5.18-clang.patch
deleted file mode 100644
index d1c9a48e6848..
--- a/dev-util/perf/files/perf-5.18-clang.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-
-Fix building against LLVM/Clang with monolithic libraries.
-
 a/tools/build/feature/Makefile
-+++ b/tools/build/feature/Makefile
-@@ -299,7 +299,7 @@ $(OUTPUT)test-llvm.bin:
-   $(BUILDXX) -std=gnu++14 \
-   -I$(shell $(LLVM_CONFIG) --includedir)  \
-   -L$(shell $(LLVM_CONFIG) --libdir)  \
--  $(shell $(LLVM_CONFIG) --libs Core BPF) \
-+  $(shell $(LLVM_CONFIG) --libs)  \
-   $(shell $(LLVM_CONFIG) --system-libs)   \
-   > $(@:.bin=.make.output) 2>&1
- 
-@@ -312,10 +312,7 @@ $(OUTPUT)test-clang.bin:
-   $(BUILDXX) -std=gnu++14 \
-   -I$(shell $(LLVM_CONFIG) --includedir)  \
-   -L$(shell $(LLVM_CONFIG) --libdir)  \
--  -Wl,--start-group -lclangBasic -lclangDriver\
---lclangFrontend -lclangEdit -lclangLex\
---lclangAST -Wl,--end-group\
--  $(shell $(LLVM_CONFIG) --libs Core option)  \
-+  -lclang-cpp $(shell $(LLVM_CONFIG) --libs)  \
-   $(shell $(LLVM_CONFIG) --system-libs)   \
-   > $(@:.bin=.make.output) 2>&1
- 
 a/tools/perf/Makefile.perf
-+++ b/tools/perf/Makefile.perf
-@@ -417,14 +417,11 @@ EXTLIBS := $(call 
filter-out,$(EXCLUDE_EXTLIBS),$(EXTLIBS))
- LIBS = -Wl,--whole-archive $(PERFLIBS) $(EXTRA_PERFLIBS) 
-Wl,--no-whole-archive -Wl,--start-group $(EXTLIBS) -Wl,--end-group
- 
- ifeq ($(USE_CLANG), 1)
--  CLANGLIBS_LIST = AST Basic CodeGen Driver Frontend Lex Tooling Edit Sema 
Analysis Parse Serialization
--  CLANGLIBS_NOEXT_LIST = $(foreach l,$(CLANGLIBS_LIST),$(shell $(LLVM_CONFIG) 
--libdir)/libclang$(l))
--  LIBCLANG = $(foreach l,$(CLA

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-07-06 Thread Guilherme Amadio
commit: 2d4cde40f1a526197f843cd522cc80ae992bacd1
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Thu Jul  6 15:58:25 2023 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Thu Jul  6 16:11:59 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d4cde40

dev-util/perf: move myself up in maintainers to get assigned perf bugs

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/metadata.xml | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-util/perf/metadata.xml b/dev-util/perf/metadata.xml
index 44f52d4869a8..b249668f8c69 100644
--- a/dev-util/perf/metadata.xml
+++ b/dev-util/perf/metadata.xml
@@ -1,6 +1,10 @@
 
 https://www.gentoo.org/dtd/metadata.dtd";>
 
+  
+ama...@gentoo.org
+Guilherme Amadio
+  
   
 na...@gentoo.org
 Naohiro Aota
@@ -9,10 +13,6 @@
 d...@gentoo.org
 Yixun Lan
   
-  
-ama...@gentoo.org
-Guilherme Amadio
-  
   
 Enable support for eBPF features with 
dev-libs/libbpf
 Enable dev-util/babeltrace 
support



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-07-06 Thread Guilherme Amadio
commit: e9665af1138d666e33b2be0ddb73d1e460016d3b
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Thu Jul  6 15:42:50 2023 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Thu Jul  6 15:49:20 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9665af1

dev-util/perf: build fixes for USE=-libtraceevent and USE=-tcmalloc

Most NO_FOO tests use "ifndef NO_FOO", but NO_LIBTRACEEVENT in particular
uses "ifneq ($(NO_LIBTRACEEVENT),1)", so puse didn't work for it. Same
for TCMALLOC, the test is ifneq "($(TCMALLOC),)" so a plain usex fails
to disable it as it sets TCMALLOC=no.

Closes: https://bugs.gentoo.org/909770
Closes: https://bugs.gentoo.org/909763
Closes: https://bugs.gentoo.org/909764
Closes: https://bugs.gentoo.org/909756

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/{perf-6.4.ebuild => perf-6.4-r1.ebuild} | 19 +++
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/dev-util/perf/perf-6.4.ebuild b/dev-util/perf/perf-6.4-r1.ebuild
similarity index 97%
rename from dev-util/perf/perf-6.4.ebuild
rename to dev-util/perf/perf-6.4-r1.ebuild
index 2ef01e9f9d7b..83118f390754 100644
--- a/dev-util/perf/perf-6.4.ebuild
+++ b/dev-util/perf/perf-6.4-r1.ebuild
@@ -34,7 +34,10 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
 IUSE="audit babeltrace bpf caps clang crypt debug +doc gtk java libpfm 
libtraceevent libtracefs lzma numa perl python slang systemtap tcmalloc unwind 
zstd"
 
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+REQUIRED_USE="
+   bpf? ( clang )
+   ${PYTHON_REQUIRED_USE}
+"
 
 # setuptools (and Python) are always needed even if not building Python 
bindings
 BDEPEND="
@@ -197,7 +200,7 @@ src_prepare() {
find -name '*.S' -exec sed -i '$a.section .note.GNU-stack,"",%progbits' 
{} +
 }
 
-puse() { usex $1 "" no; }
+puse() { usex $1 "" 1; }
 perf_make() {
# The arch parsing is a bit funky.  The perf tools package is integrated
# into the kernel, so it wants an ARCH that looks like the kernel arch,
@@ -224,14 +227,13 @@ perf_make() {
BUILD_BPF_SKEL=$(usex bpf 1 "") \
BUILD_NONDISTRO=1
JDIR="${java_dir}"
-   LIBCLANGLLVM=$(usex clang 1 "")
-   LIBPFM4=$(usex libpfm 1 "")
-   NO_AUXTRACE=""
-   NO_BACKTRACE=""
CORESIGHT=
-   NO_DEMANGLE=
GTK2=$(usex gtk 1 "")
+   LIBCLANGLLVM=$(usex clang 1 "")
feature-gtk2-infobar=$(usex gtk 1 "")
+   NO_AUXTRACE=
+   NO_BACKTRACE=
+   NO_DEMANGLE=
NO_JEVENTS=$(puse python)
NO_JVMTI=$(puse java)
NO_LIBAUDIT=$(puse audit)
@@ -244,6 +246,7 @@ perf_make() {
NO_LIBELF=
NO_LIBNUMA=$(puse numa)
NO_LIBPERL=$(puse perl)
+   NO_LIBPFM4=$(puse libpfm)
NO_LIBPYTHON=$(puse python)
NO_LIBTRACEEVENT=$(puse libtraceevent)
NO_LIBUNWIND=$(puse unwind)
@@ -252,7 +255,7 @@ perf_make() {
NO_SLANG=$(puse slang)
NO_LZMA=$(puse lzma)
NO_ZLIB=
-   TCMALLOC=$(usex tcmalloc)
+   TCMALLOC=$(usex tcmalloc 1 "")
WERROR=0
LIBDIR="/usr/libexec/perf-core"
libdir="${EPREFIX}/usr/$(get_libdir)"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/files/, dev-util/perf/

2023-07-06 Thread Guilherme Amadio
commit: 529bc1649627b30bad63527bedb0cf272db67b81
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Wed Jul  5 13:07:20 2023 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Thu Jul  6 07:38:55 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=529bc164

dev-util/perf: version bump to 6.4

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest|   1 +
 dev-util/perf/files/perf-6.4-libtracefs.patch |  23 ++
 dev-util/perf/metadata.xml|   3 +
 dev-util/perf/perf-6.4.ebuild | 308 ++
 4 files changed, 335 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 46a7ae78c623..32507222d0a3 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -2,4 +2,5 @@ DIST linux-5.19.tar.xz 131581464 BLAKE2B 
4db03a6830a3b3bbf0837e1912182a443d9a4aa
 DIST linux-6.0.tar.xz 133886176 BLAKE2B 
c09a9c877ac0fac83dc31d2d04d96f0a3331d4ed78e3ad4edfd4dc077e1c11d0c49f419fdac4008b5c93d1b09c2b724e12ef0b38371ad0962908abf85dfa95fa
 SHA512 
bac41a7aeb6e809616cee2f13dcd1c45e829dfd1ccf60aee1dc4c46b1e28532f4485c7d819a32940de84fdfbf89db80a4e919bce8a74b2948c5a01551771b714
 DIST linux-6.2.tar.xz 136430892 BLAKE2B 
05b63254734ea685db437cb1c00a6da63eee74d7e99f4ed2d074aaa01ac4487813ab297d337a6855cdbcbb33346b631c4256ee3b06191adfb1be3615a56bdd6d
 SHA512 
a01bee0b968b95183934fe3504516be7ef5811944a061f5aed05ecebaa27b5eb64e33232fd0a8dd622b3c8743bfe462ef7e464d381734d111a0ad6a6d9f66ddd
 DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
+DIST linux-6.4.tar.xz 137794856 BLAKE2B 
b59eb04a8715af9f686978812e6d4a466172bb859f80657076de14cd0828b4fac15b688ff8959f5c65485f7f6bef26590412c66821e720de843cb8666f226c90
 SHA512 
11a48b25e0b513782d3b89101c2ec8dd9cefd6ce08dc63a91137903b66392aa72ca1fe32816710673af84dd47de3ab8738056a6af93dc0d5e60ef4b869b49928
 DIST perf-5.19-binutils-2.39-patches.tar.xz 5612 BLAKE2B 
ec3aeadc3e2508f33dddbb419f434885b39b8220d294f3845f0bc96282923ff46dca126a04c732b8286752e56087ba5b2c5ad9526884f6d0b8b6df5665121e5e
 SHA512 
af676e5a600e227d85f89a5ee0cfacfe1845aa56c27ef9da3ebaf578362d7e741375d30565759123b33b86d36bc9981c8c4cda113af32745cc59cf4a9275e73b

diff --git a/dev-util/perf/files/perf-6.4-libtracefs.patch 
b/dev-util/perf/files/perf-6.4-libtracefs.patch
new file mode 100644
index ..e02e2db96677
--- /dev/null
+++ b/dev-util/perf/files/perf-6.4-libtracefs.patch
@@ -0,0 +1,23 @@
+Let perf find libtraceevent headers when detecting libtracefs
+
+--- a/tools/build/feature/test-libtracefs.c
 b/tools/build/feature/test-libtracefs.c
+@@ -1,5 +1,5 @@
+ // SPDX-License-Identifier: GPL-2.0
+-#include 
++#include 
+ 
+ int main(void)
+ {
+--- a/tools/perf/Makefile.config
 b/tools/perf/Makefile.config
+@@ -185,6 +185,9 @@ endif
+ FEATURE_CHECK_CFLAGS-libbabeltrace := $(LIBBABELTRACE_CFLAGS)
+ FEATURE_CHECK_LDFLAGS-libbabeltrace := $(LIBBABELTRACE_LDFLAGS) 
-lbabeltrace-ctf
+ 
++FEATURE_CHECK_CFLAGS-libtracefs := $(shell $(PKG_CONFIG) --cflags libtracefs)
++FEATURE_CHECK_LDFLAGS-libtracefs := $(shell $(PKG_CONFIG) --libs libtracefs)
++
+ ifdef LIBZSTD_DIR
+   LIBZSTD_CFLAGS  := -I$(LIBZSTD_DIR)/lib
+   LIBZSTD_LDFLAGS := -L$(LIBZSTD_DIR)/lib

diff --git a/dev-util/perf/metadata.xml b/dev-util/perf/metadata.xml
index a363827ff153..44f52d4869a8 100644
--- a/dev-util/perf/metadata.xml
+++ b/dev-util/perf/metadata.xml
@@ -14,6 +14,7 @@
 Guilherme Amadio
   
   
+Enable support for eBPF features with 
dev-libs/libbpf
 Enable dev-util/babeltrace 
support
 Enable builtin clang and LLVM support
 
@@ -24,6 +25,8 @@
   systems.
 
 Enable dev-libs/libpfm support
+Enable dev-libs/libtraceevent 
support
+Enable dev-libs/libtracefs 
support
 Enable NUMA support
 
   Add support for Perl as a scripting language for perf tools.

diff --git a/dev-util/perf/perf-6.4.ebuild b/dev-util/perf/perf-6.4.ebuild
new file mode 100644
index ..2ef01e9f9d7b
--- /dev/null
+++ b/dev-util/perf/perf-6.4.ebuild
@@ -0,0 +1,308 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit bash-completion-r1 estack linux-info llvm toolchain-funcs python-r1
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/";
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
+   PATCH_VERSION=$(ver_cut 1-3)
+   LINUX_PATCH=patch-${PV//_/-}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+   
https://www.kernel.org/pub/li

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-28 Thread Matt Turner
commit: e56508f3b5ca997875ab81ace43b72f8d2983958
Author: Matt Turner  gentoo  org>
AuthorDate: Wed Jun 28 02:52:04 2023 +
Commit: Matt Turner  gentoo  org>
CommitDate: Wed Jun 28 17:33:09 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e56508f3

dev-util/perf: Fix dependency for USE=crypt

perf links with libcrypto.so (from dev-libs/openssl), not libcrypt.so
(from virtual/libcrypt).

Closes: https://bugs.gentoo.org/909167
Signed-off-by: Matt Turner  gentoo.org>

 dev-util/perf/perf-6.3-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.3-r1.ebuild b/dev-util/perf/perf-6.3-r1.ebuild
index 5f4f5f9688c7..2aac8aa2ed75 100644
--- a/dev-util/perf/perf-6.3-r1.ebuild
+++ b/dev-util/perf/perf-6.3-r1.ebuild
@@ -61,7 +61,7 @@ RDEPEND="
sys-devel/clang:=
sys-devel/llvm:=
)
-   crypt? ( virtual/libcrypt:= )
+   crypt? ( dev-libs/openssl:= )
gtk? ( x11-libs/gtk+:2 )
java? ( virtual/jre:* )
libpfm? ( dev-libs/libpfm:= )



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-28 Thread Matt Turner
commit: 62d87035fc81ae784f0bee1b71dc584167c5f55a
Author: Matt Turner  gentoo  org>
AuthorDate: Wed Jun 28 02:43:29 2023 +
Commit: Matt Turner  gentoo  org>
CommitDate: Wed Jun 28 17:33:08 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62d87035

dev-util/perf: Bump to EAPI=8, update PYTHON_COMPAT

Signed-off-by: Matt Turner  gentoo.org>

 dev-util/perf/perf-6.3-r1.ebuild | 269 +++
 1 file changed, 269 insertions(+)

diff --git a/dev-util/perf/perf-6.3-r1.ebuild b/dev-util/perf/perf-6.3-r1.ebuild
new file mode 100644
index ..b18a69130d91
--- /dev/null
+++ b/dev-util/perf/perf-6.3-r1.ebuild
@@ -0,0 +1,269 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit bash-completion-r1 estack llvm toolchain-funcs python-r1 linux-info
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/";
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
+   PATCH_VERSION=$(ver_cut 1-3)
+   LINUX_PATCH=patch-${PV//_/-}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
+elif [[ ${PV} == *.*.* ]] ; then
+   # stable-release series
+   LINUX_VER=$(ver_cut 1-2)
+   LINUX_PATCH=patch-${PV}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
+else
+   LINUX_VER=${PV}
+   SRC_URI=""
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# setuptools (and Python) are always needed even if not building Python 
bindings
+BDEPEND="
+   ${LINUX_PATCH+dev-util/patchutils}
+   ${PYTHON_DEPS}
+   >=app-arch/tar-1.34-r2
+   dev-python/setuptools[${PYTHON_USEDEP}]
+   sys-devel/bison
+   sys-devel/flex
+   virtual/pkgconfig
+   doc? (
+   app-text/asciidoc
+   app-text/sgml-common
+   app-text/xmlto
+   sys-process/time
+   )
+"
+
+RDEPEND="audit? ( sys-process/audit )
+   babeltrace? ( dev-util/babeltrace )
+   crypt? ( virtual/libcrypt:= )
+   clang? (
+   sys-devel/clang:=
+   sys-devel/llvm:=
+   )
+   gtk? ( x11-libs/gtk+:2 )
+   java? ( virtual/jre:* )
+   libpfm? ( dev-libs/libpfm )
+   lzma? ( app-arch/xz-utils )
+   numa? ( sys-process/numactl )
+   perl? ( dev-lang/perl:= )
+   python? ( ${PYTHON_DEPS} )
+   slang? ( sys-libs/slang )
+   systemtap? ( dev-util/systemtap )
+   unwind? ( sys-libs/libunwind )
+   zlib? ( sys-libs/zlib )
+   zstd? ( app-arch/zstd )
+   dev-libs/elfutils
+   sys-libs/binutils-libs:="
+
+DEPEND="${RDEPEND}
+   >=sys-kernel/linux-headers-5.10
+   java? ( virtual/jdk )
+"
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
+
+QA_FLAGS_IGNORED=(
+   'usr/bin/perf-read-vdso32' # not linked with anything except for libc
+   'usr/libexec/perf-core/dlfilters/.*' # plugins
+)
+
+pkg_pretend() {
+   if ! use doc ; then
+   ewarn "Without the doc USE flag you won't get any documentation 
nor man pages."
+   ewarn "And without man pages, you won't get any --help output 
for perf and its"
+   ewarn "sub-tools."
+   fi
+}
+
+pkg_setup() {
+   use clang && llvm_pkg_setup
+   # We enable python unconditionally as libbpf always generates
+   # API headers using python script
+   python_setup
+}
+
+# src_unpack and src_prepare are copied to dev-util/bpftool since
+# it's building from the same tarball, please keep it in sync with bpftool
+src_unpack() {
+   local paths=(
+   tools/arch tools/build tools/include tools/lib tools/perf 
tools/scripts
+   scripts include lib "arch/*/lib"
+   )
+
+   # We expect the tar implementation to support the -j option (both
+   # GNU tar and libarchive's tar support that).
+   echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
+   gtar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
+   "${paths[@]/#/linux-${LINUX_VER}/}" || die
+
+   if [[ -n ${LINUX_PATCH} ]] ; then
+   eshopts_push -o noglob
+   ebegin "Filtering partial source patch"
+   filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} 
\

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-28 Thread Matt Turner
commit: a9ab53f6998addb211fb7140f76078e6343d43f8
Author: Matt Turner  gentoo  org>
AuthorDate: Wed Jun 28 02:52:38 2023 +
Commit: Matt Turner  gentoo  org>
CommitDate: Wed Jun 28 17:33:09 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9ab53f6

dev-util/perf: Subscribe to subslot of app-arch/zstd

Bug: https://bugs.gentoo.org/909167
Signed-off-by: Matt Turner  gentoo.org>

 dev-util/perf/perf-6.3-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.3-r1.ebuild b/dev-util/perf/perf-6.3-r1.ebuild
index f0bb18a0173b..2e0460ebb4e8 100644
--- a/dev-util/perf/perf-6.3-r1.ebuild
+++ b/dev-util/perf/perf-6.3-r1.ebuild
@@ -72,7 +72,7 @@ RDEPEND="
systemtap? ( dev-util/systemtap )
unwind? ( sys-libs/libunwind )
zlib? ( sys-libs/zlib )
-   zstd? ( app-arch/zstd )
+   zstd? ( app-arch/zstd:= )
dev-libs/elfutils
sys-libs/binutils-libs:=
 "



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-28 Thread Matt Turner
commit: bc44f71acb305cd72377cc0fda48498a6abde848
Author: Matt Turner  gentoo  org>
AuthorDate: Wed Jun 28 03:01:00 2023 +
Commit: Matt Turner  gentoo  org>
CommitDate: Wed Jun 28 17:33:10 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc44f71a

dev-util/perf: Remove IUSE=zlib and always enable support

libbpf support is built unconditionally, and it requires zlib. zlib is
on every system anyway, so remove the USE flag.

Closes: https://bugs.gentoo.org/839003
Signed-off-by: Matt Turner  gentoo.org>

 dev-util/perf/perf-6.3-r1.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-util/perf/perf-6.3-r1.ebuild b/dev-util/perf/perf-6.3-r1.ebuild
index 2aac8aa2ed75..eb28c4419c9b 100644
--- a/dev-util/perf/perf-6.3-r1.ebuild
+++ b/dev-util/perf/perf-6.3-r1.ebuild
@@ -32,7 +32,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
-IUSE="audit babeltrace caps clang crypt debug +doc gtk java libpfm lzma numa 
perl python slang systemtap unwind zlib zstd"
+IUSE="audit babeltrace caps clang crypt debug +doc gtk java libpfm lzma numa 
perl python slang systemtap unwind zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
@@ -72,10 +72,10 @@ RDEPEND="
slang? ( sys-libs/slang )
systemtap? ( dev-util/systemtap )
unwind? ( sys-libs/libunwind:= )
-   zlib? ( sys-libs/zlib )
zstd? ( app-arch/zstd:= )
dev-libs/elfutils
sys-libs/binutils-libs:=
+   sys-libs/zlib
 "
 
 DEPEND="${RDEPEND}
@@ -220,7 +220,7 @@ perf_make() {
NO_SDT=$(puse systemtap)
NO_SLANG=$(puse slang)
NO_LZMA=$(puse lzma)
-   NO_ZLIB=$(puse zlib)
+   NO_ZLIB=
WERROR=0
LIBDIR="/usr/libexec/perf-core"
libdir="${EPREFIX}/usr/$(get_libdir)"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-28 Thread Matt Turner
commit: 343324ce00bb07df8ce4e1a567e47bea6a7ffd2c
Author: Matt Turner  gentoo  org>
AuthorDate: Wed Jun 28 02:48:25 2023 +
Commit: Matt Turner  gentoo  org>
CommitDate: Wed Jun 28 17:33:09 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=343324ce

dev-util/perf: Add IUSE=caps

Fixes an automatic dependency on sys-libs/libcap.

Bug: https://bugs.gentoo.org/909167
Signed-off-by: Matt Turner  gentoo.org>

 dev-util/perf/perf-6.3-r1.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.3-r1.ebuild b/dev-util/perf/perf-6.3-r1.ebuild
index b40e0ec1fdcc..5f4f5f9688c7 100644
--- a/dev-util/perf/perf-6.3-r1.ebuild
+++ b/dev-util/perf/perf-6.3-r1.ebuild
@@ -32,7 +32,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
-IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
+IUSE="audit babeltrace caps clang crypt debug +doc gtk java libpfm lzma numa 
perl python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
@@ -56,6 +56,7 @@ BDEPEND="
 RDEPEND="
audit? ( sys-process/audit )
babeltrace? ( dev-util/babeltrace )
+   caps? ( sys-libs/libcap )
clang? (
sys-devel/clang:=
sys-devel/llvm:=
@@ -207,6 +208,7 @@ perf_make() {
NO_LIBBABELTRACE=$(puse babeltrace)
NO_LIBBIONIC=1
NO_LIBBPF=
+   NO_LIBCAP=$(puse caps)
NO_LIBCRYPTO=$(puse crypt)
NO_LIBDW_DWARF_UNWIND=
NO_LIBELF=



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-28 Thread Matt Turner
commit: 6ddce39ddcc806fc9f16c146c66ac84aeb9f07cf
Author: Matt Turner  gentoo  org>
AuthorDate: Wed Jun 28 03:35:36 2023 +
Commit: Matt Turner  gentoo  org>
CommitDate: Wed Jun 28 17:33:09 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ddce39d

dev-util/perf: Subscribe to subslot of sys-libs/libunwind

Signed-off-by: Matt Turner  gentoo.org>

 dev-util/perf/perf-6.3-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.3-r1.ebuild b/dev-util/perf/perf-6.3-r1.ebuild
index 76a11d855ebd..b40e0ec1fdcc 100644
--- a/dev-util/perf/perf-6.3-r1.ebuild
+++ b/dev-util/perf/perf-6.3-r1.ebuild
@@ -70,7 +70,7 @@ RDEPEND="
python? ( ${PYTHON_DEPS} )
slang? ( sys-libs/slang )
systemtap? ( dev-util/systemtap )
-   unwind? ( sys-libs/libunwind )
+   unwind? ( sys-libs/libunwind:= )
zlib? ( sys-libs/zlib )
zstd? ( app-arch/zstd:= )
dev-libs/elfutils



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-28 Thread Matt Turner
commit: 142923c48d4660bae5515ae9eeed727426d454ae
Author: Matt Turner  gentoo  org>
AuthorDate: Wed Jun 28 02:40:16 2023 +
Commit: Matt Turner  gentoo  org>
CommitDate: Wed Jun 28 17:33:09 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=142923c4

dev-util/perf: Use bash array for emake arguments

Signed-off-by: Matt Turner  gentoo.org>

 dev-util/perf/perf-6.3-r1.ebuild | 81 +---
 1 file changed, 42 insertions(+), 39 deletions(-)

diff --git a/dev-util/perf/perf-6.3-r1.ebuild b/dev-util/perf/perf-6.3-r1.ebuild
index b18a69130d91..86872cee5e40 100644
--- a/dev-util/perf/perf-6.3-r1.ebuild
+++ b/dev-util/perf/perf-6.3-r1.ebuild
@@ -181,46 +181,49 @@ perf_make() {
local java_dir
use java && java_dir="${EPREFIX}/etc/java-config-2/current-system-vm"
# FIXME: NO_CORESIGHT
-   emake V=1 VF=1 \
-   HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)" \
-   CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" 
LD="$(tc-getLD)" NM="$(tc-getNM)" \
-   PKG_CONFIG="$(tc-getPKG_CONFIG)" \
-   prefix="${EPREFIX}/usr" bindir_relative="bin" \
-   tipdir="share/doc/${PF}" \
-   EXTRA_CFLAGS="${CFLAGS}" \
-   EXTRA_LDFLAGS="${LDFLAGS}" \
-   ARCH="${arch}" \
-   JDIR="${java_dir}" \
-   LIBCLANGLLVM=$(usex clang 1 "") \
-   LIBPFM4=$(usex libpfm 1 "") \
-   NO_AUXTRACE="" \
-   NO_BACKTRACE="" \
-   NO_CORESIGHT=1 \
-   NO_DEMANGLE= \
-   GTK2=$(usex gtk 1 "") \
-   feature-gtk2-infobar=$(usex gtk 1 "") \
-   NO_JVMTI=$(puse java) \
-   NO_LIBAUDIT=$(puse audit) \
-   NO_LIBBABELTRACE=$(puse babeltrace) \
-   NO_LIBBIONIC=1 \
-   NO_LIBBPF= \
-   NO_LIBCRYPTO=$(puse crypt) \
-   NO_LIBDW_DWARF_UNWIND= \
-   NO_LIBELF= \
-   NO_LIBNUMA=$(puse numa) \
-   NO_LIBPERL=$(puse perl) \
-   NO_LIBPYTHON=$(puse python) \
-   NO_LIBUNWIND=$(puse unwind) \
-   NO_LIBZSTD=$(puse zstd) \
-   NO_SDT=$(puse systemtap) \
-   NO_SLANG=$(puse slang) \
-   NO_LZMA=$(puse lzma) \
-   NO_ZLIB=$(puse zlib) \
-   WERROR=0 \
-   LIBDIR="/usr/libexec/perf-core" \
-   libdir="${EPREFIX}/usr/$(get_libdir)" \
-   plugindir="${EPREFIX}/usr/$(get_libdir)/perf/plugins" \
+   local emakeargs=(
+   V=1 VF=1
+   HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)"
+   CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" 
LD="$(tc-getLD)" NM="$(tc-getNM)"
+   PKG_CONFIG="$(tc-getPKG_CONFIG)"
+   prefix="${EPREFIX}/usr" bindir_relative="bin"
+   tipdir="share/doc/${PF}"
+   EXTRA_CFLAGS="${CFLAGS}"
+   EXTRA_LDFLAGS="${LDFLAGS}"
+   ARCH="${arch}"
+   JDIR="${java_dir}"
+   LIBCLANGLLVM=$(usex clang 1 "")
+   LIBPFM4=$(usex libpfm 1 "")
+   NO_AUXTRACE=""
+   NO_BACKTRACE=""
+   NO_CORESIGHT=1
+   NO_DEMANGLE=
+   GTK2=$(usex gtk 1 "")
+   feature-gtk2-infobar=$(usex gtk 1 "")
+   NO_JVMTI=$(puse java)
+   NO_LIBAUDIT=$(puse audit)
+   NO_LIBBABELTRACE=$(puse babeltrace)
+   NO_LIBBIONIC=1
+   NO_LIBBPF=
+   NO_LIBCRYPTO=$(puse crypt)
+   NO_LIBDW_DWARF_UNWIND=
+   NO_LIBELF=
+   NO_LIBNUMA=$(puse numa)
+   NO_LIBPERL=$(puse perl)
+   NO_LIBPYTHON=$(puse python)
+   NO_LIBUNWIND=$(puse unwind)
+   NO_LIBZSTD=$(puse zstd)
+   NO_SDT=$(puse systemtap)
+   NO_SLANG=$(puse slang)
+   NO_LZMA=$(puse lzma)
+   NO_ZLIB=$(puse zlib)
+   WERROR=0
+   LIBDIR="/usr/libexec/perf-core"
+   libdir="${EPREFIX}/usr/$(get_libdir)"
+   plugindir="${EPREFIX}/usr/$(get_libdir)/perf/plugins"
"$@"
+   )
+   emake "${emakeargs[@]}"
 }
 
 src_compile() {



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-28 Thread Matt Turner
commit: 19ea10be450eac1c3c5af732b275b286e111cb7d
Author: Matt Turner  gentoo  org>
AuthorDate: Wed Jun 28 02:46:00 2023 +
Commit: Matt Turner  gentoo  org>
CommitDate: Wed Jun 28 17:33:09 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19ea10be

dev-util/perf: Reformat RDEPEND

Signed-off-by: Matt Turner  gentoo.org>

 dev-util/perf/perf-6.3-r1.ebuild | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/dev-util/perf/perf-6.3-r1.ebuild b/dev-util/perf/perf-6.3-r1.ebuild
index 86872cee5e40..f0bb18a0173b 100644
--- a/dev-util/perf/perf-6.3-r1.ebuild
+++ b/dev-util/perf/perf-6.3-r1.ebuild
@@ -53,13 +53,14 @@ BDEPEND="
)
 "
 
-RDEPEND="audit? ( sys-process/audit )
+RDEPEND="
+   audit? ( sys-process/audit )
babeltrace? ( dev-util/babeltrace )
-   crypt? ( virtual/libcrypt:= )
clang? (
sys-devel/clang:=
sys-devel/llvm:=
)
+   crypt? ( virtual/libcrypt:= )
gtk? ( x11-libs/gtk+:2 )
java? ( virtual/jre:* )
libpfm? ( dev-libs/libpfm )
@@ -73,7 +74,8 @@ RDEPEND="audit? ( sys-process/audit )
zlib? ( sys-libs/zlib )
zstd? ( app-arch/zstd )
dev-libs/elfutils
-   sys-libs/binutils-libs:="
+   sys-libs/binutils-libs:=
+"
 
 DEPEND="${RDEPEND}
>=sys-kernel/linux-headers-5.10



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-28 Thread Matt Turner
commit: b66e90e21930128e314e975fe42e39d570224480
Author: Matt Turner  gentoo  org>
AuthorDate: Wed Jun 28 03:34:44 2023 +
Commit: Matt Turner  gentoo  org>
CommitDate: Wed Jun 28 17:33:09 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b66e90e2

dev-util/perf: Subscribe to subslot of dev-libs/libpfm

Signed-off-by: Matt Turner  gentoo.org>

 dev-util/perf/perf-6.3-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.3-r1.ebuild b/dev-util/perf/perf-6.3-r1.ebuild
index 2e0460ebb4e8..76a11d855ebd 100644
--- a/dev-util/perf/perf-6.3-r1.ebuild
+++ b/dev-util/perf/perf-6.3-r1.ebuild
@@ -63,7 +63,7 @@ RDEPEND="
crypt? ( virtual/libcrypt:= )
gtk? ( x11-libs/gtk+:2 )
java? ( virtual/jre:* )
-   libpfm? ( dev-libs/libpfm )
+   libpfm? ( dev-libs/libpfm:= )
lzma? ( app-arch/xz-utils )
numa? ( sys-process/numactl )
perl? ( dev-lang/perl:= )



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-23 Thread Sam James
commit: eccec34d834c595bfd123be95c4685d56394ff91
Author: Sam James  gentoo  org>
AuthorDate: Sat Jun 24 03:22:08 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jun 24 03:22:08 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eccec34d

dev-util/perf: Stabilize 6.3 ppc, #909049

Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-6.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild
index 58c17d81ea03..31bad3f7e7fe 100644
--- a/dev-util/perf/perf-6.3.ebuild
+++ b/dev-util/perf/perf-6.3.ebuild
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 arm arm64 ~mips ~ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-23 Thread Sam James
commit: cbd32a6151f20f228041407b45438ea706fd9287
Author: Sam James  gentoo  org>
AuthorDate: Sat Jun 24 03:22:06 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jun 24 03:22:06 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbd32a61

dev-util/perf: Stabilize 6.3 arm64, #909049

Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-6.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild
index e2a99143a13c..58c17d81ea03 100644
--- a/dev-util/perf/perf-6.3.ebuild
+++ b/dev-util/perf/perf-6.3.ebuild
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 arm ~arm64 ~mips ~ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 arm arm64 ~mips ~ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-23 Thread Sam James
commit: ebd850e9a7275d091ab45d12ba92b2e3200f73f2
Author: Sam James  gentoo  org>
AuthorDate: Sat Jun 24 03:22:03 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jun 24 03:22:03 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebd850e9

dev-util/perf: Stabilize 6.3 ppc64, #909049

Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-6.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild
index 2f9cc2fb8a28..1106da74fe18 100644
--- a/dev-util/perf/perf-6.3.ebuild
+++ b/dev-util/perf/perf-6.3.ebuild
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ppc64 ~riscv x86 ~amd64-linux 
~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-23 Thread Sam James
commit: 4a471ad5a1d2542d2e6ee7f31725030cc451bd15
Author: Sam James  gentoo  org>
AuthorDate: Sat Jun 24 03:22:04 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jun 24 03:22:04 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a471ad5

dev-util/perf: Stabilize 6.3 amd64, #909049

Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-6.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild
index 1106da74fe18..934134aceb49 100644
--- a/dev-util/perf/perf-6.3.ebuild
+++ b/dev-util/perf/perf-6.3.ebuild
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ppc64 ~riscv x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="amd64 ~arm ~arm64 ~mips ~ppc ppc64 ~riscv x86 ~amd64-linux 
~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-23 Thread Sam James
commit: a4fb2b60b7ae72cd1193c6d88fbe8b0e8c36ee9d
Author: Sam James  gentoo  org>
AuthorDate: Sat Jun 24 03:22:01 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jun 24 03:22:01 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4fb2b60

dev-util/perf: Stabilize 6.3 x86, #909049

Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-6.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild
index 8c07d2f59dcb..2f9cc2fb8a28 100644
--- a/dev-util/perf/perf-6.3.ebuild
+++ b/dev-util/perf/perf-6.3.ebuild
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv x86 ~amd64-linux 
~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-23 Thread Sam James
commit: d40685c2a3b7538d636900cecf7d48d925b35f96
Author: Sam James  gentoo  org>
AuthorDate: Sat Jun 24 03:22:05 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jun 24 03:22:05 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d40685c2

dev-util/perf: Stabilize 6.3 arm, #909049

Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-6.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild
index 934134aceb49..e2a99143a13c 100644
--- a/dev-util/perf/perf-6.3.ebuild
+++ b/dev-util/perf/perf-6.3.ebuild
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~mips ~ppc ppc64 ~riscv x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="amd64 arm ~arm64 ~mips ~ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-06-13 Thread Sam James
commit: 48cca6c4e03a095cc99c744a689b0633baab1ce3
Author: Sam James  gentoo  org>
AuthorDate: Tue Jun 13 11:40:17 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jun 13 11:40:17 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48cca6c4

dev-util/perf: depend on newer tar for 'gtar' symlink

Thanks to jkroon, flow, and ceamac.

Bug: https://bugs.gentoo.org/887761
Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-5.19-r1.ebuild | 1 +
 dev-util/perf/perf-6.0-r1.ebuild  | 1 +
 dev-util/perf/perf-6.2-r1.ebuild  | 1 +
 dev-util/perf/perf-6.3.ebuild | 1 +
 4 files changed, 4 insertions(+)

diff --git a/dev-util/perf/perf-5.19-r1.ebuild 
b/dev-util/perf/perf-5.19-r1.ebuild
index ea6fd7e11d61..da0f5c7509fe 100644
--- a/dev-util/perf/perf-5.19-r1.ebuild
+++ b/dev-util/perf/perf-5.19-r1.ebuild
@@ -41,6 +41,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 BDEPEND="
${LINUX_PATCH+dev-util/patchutils}
${PYTHON_DEPS}
+   >=app-arch/tar-1.34-r2
dev-python/setuptools[${PYTHON_USEDEP}]
sys-devel/bison
sys-devel/flex

diff --git a/dev-util/perf/perf-6.0-r1.ebuild b/dev-util/perf/perf-6.0-r1.ebuild
index 04184b462006..c1abe01f17eb 100644
--- a/dev-util/perf/perf-6.0-r1.ebuild
+++ b/dev-util/perf/perf-6.0-r1.ebuild
@@ -40,6 +40,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 BDEPEND="
${LINUX_PATCH+dev-util/patchutils}
${PYTHON_DEPS}
+   >=app-arch/tar-1.34-r2
dev-python/setuptools[${PYTHON_USEDEP}]
sys-devel/bison
sys-devel/flex

diff --git a/dev-util/perf/perf-6.2-r1.ebuild b/dev-util/perf/perf-6.2-r1.ebuild
index 8a46cf67337d..8c07d2f59dcb 100644
--- a/dev-util/perf/perf-6.2-r1.ebuild
+++ b/dev-util/perf/perf-6.2-r1.ebuild
@@ -40,6 +40,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 BDEPEND="
${LINUX_PATCH+dev-util/patchutils}
${PYTHON_DEPS}
+   >=app-arch/tar-1.34-r2
dev-python/setuptools[${PYTHON_USEDEP}]
sys-devel/bison
sys-devel/flex

diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild
index 8a46cf67337d..8c07d2f59dcb 100644
--- a/dev-util/perf/perf-6.3.ebuild
+++ b/dev-util/perf/perf-6.3.ebuild
@@ -40,6 +40,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 BDEPEND="
${LINUX_PATCH+dev-util/patchutils}
${PYTHON_DEPS}
+   >=app-arch/tar-1.34-r2
dev-python/setuptools[${PYTHON_USEDEP}]
sys-devel/bison
sys-devel/flex



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-05-17 Thread Yixun Lan
commit: bfbcad6bcfd6751b343f124013d63a3167838d42
Author: Yixun Lan  gentoo  org>
AuthorDate: Wed May 17 12:40:58 2023 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Wed May 17 12:41:40 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfbcad6b

dev-util/perf: add 6.3

Signed-off-by: Yixun Lan  gentoo.org>

 dev-util/perf/Manifest|   1 +
 dev-util/perf/perf-6.3.ebuild | 268 ++
 2 files changed, 269 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index c3a52f5a7406..46a7ae78c623 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,4 +1,5 @@
 DIST linux-5.19.tar.xz 131581464 BLAKE2B 
4db03a6830a3b3bbf0837e1912182a443d9a4aa8af20a12e6ec814ed708038452d3c0ccee1258cca671c464d76461536363a8adc56e9d098c9a44ae3484a297a
 SHA512 
00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623
 DIST linux-6.0.tar.xz 133886176 BLAKE2B 
c09a9c877ac0fac83dc31d2d04d96f0a3331d4ed78e3ad4edfd4dc077e1c11d0c49f419fdac4008b5c93d1b09c2b724e12ef0b38371ad0962908abf85dfa95fa
 SHA512 
bac41a7aeb6e809616cee2f13dcd1c45e829dfd1ccf60aee1dc4c46b1e28532f4485c7d819a32940de84fdfbf89db80a4e919bce8a74b2948c5a01551771b714
 DIST linux-6.2.tar.xz 136430892 BLAKE2B 
05b63254734ea685db437cb1c00a6da63eee74d7e99f4ed2d074aaa01ac4487813ab297d337a6855cdbcbb33346b631c4256ee3b06191adfb1be3615a56bdd6d
 SHA512 
a01bee0b968b95183934fe3504516be7ef5811944a061f5aed05ecebaa27b5eb64e33232fd0a8dd622b3c8743bfe462ef7e464d381734d111a0ad6a6d9f66ddd
+DIST linux-6.3.tar.xz 136891752 BLAKE2B 
f1887c8924efa8d0cb14c4e604affd0b0168bcf20f56a37c027405c7bc11aba822a43fcb38ccb55a81a26f747d00e1ab5a6554818affbf1e1c7ef5220150fc69
 SHA512 
768979440f4907ba64d4481b383d6101faf208f27a0b897156123aa278c5743fe3c4f61945b2541429c532d45382aaee8899ea9d44a1d2895bfbb79bfd937f65
 DIST perf-5.19-binutils-2.39-patches.tar.xz 5612 BLAKE2B 
ec3aeadc3e2508f33dddbb419f434885b39b8220d294f3845f0bc96282923ff46dca126a04c732b8286752e56087ba5b2c5ad9526884f6d0b8b6df5665121e5e
 SHA512 
af676e5a600e227d85f89a5ee0cfacfe1845aa56c27ef9da3ebaf578362d7e741375d30565759123b33b86d36bc9981c8c4cda113af32745cc59cf4a9275e73b

diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild
new file mode 100644
index ..8a46cf67337d
--- /dev/null
+++ b/dev-util/perf/perf-6.3.ebuild
@@ -0,0 +1,268 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{9..11} )
+inherit bash-completion-r1 estack llvm toolchain-funcs python-r1 linux-info
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/";
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
+   PATCH_VERSION=$(ver_cut 1-3)
+   LINUX_PATCH=patch-${PV//_/-}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
+elif [[ ${PV} == *.*.* ]] ; then
+   # stable-release series
+   LINUX_VER=$(ver_cut 1-2)
+   LINUX_PATCH=patch-${PV}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
+else
+   LINUX_VER=${PV}
+   SRC_URI=""
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# setuptools (and Python) are always needed even if not building Python 
bindings
+BDEPEND="
+   ${LINUX_PATCH+dev-util/patchutils}
+   ${PYTHON_DEPS}
+   dev-python/setuptools[${PYTHON_USEDEP}]
+   sys-devel/bison
+   sys-devel/flex
+   virtual/pkgconfig
+   doc? (
+   app-text/asciidoc
+   app-text/sgml-common
+   app-text/xmlto
+   sys-process/time
+   )
+"
+
+RDEPEND="audit? ( sys-process/audit )
+   babeltrace? ( dev-util/babeltrace )
+   crypt? ( virtual/libcrypt:= )
+   clang? (
+   sys-devel/clang:=
+   sys-devel/llvm:=
+   )
+   gtk? ( x11-libs/gtk+:2 )
+   java? ( virtual/jre:* )
+   libpfm? ( dev-libs/libpfm )
+   lzma? ( app-arch/xz-utils )
+   numa? ( sys-process/numactl )
+   perl? ( dev-lang/perl:= )
+   python? ( ${PYTHON_DEPS} )
+   slang? ( sys-libs/slang )
+   systemtap? ( dev-util/systemtap )
+   unwind? ( sys-libs/libunwind )
+   zlib? ( sys-libs/zlib )
+   zstd? ( app-arch/zstd )
+   dev-libs/elfutils
+   sys-libs/binutils-libs:="
+
+DE

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/files/, dev-util/perf/

2023-04-14 Thread Sam James
commit: d1a3661d06ab2036402024ea792bad26b7eb2cda
Author: Sam James  gentoo  org>
AuthorDate: Sat Apr 15 05:11:21 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Apr 15 05:11:21 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1a3661d

dev-util/perf: fix build w/ clang 16

Closes: https://bugs.gentoo.org/904169
Thanks-to: Maciej S. Szmigiero  maciej.szmigiero.name>
Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/files/perf-6.0-c++17.patch | 39 
 dev-util/perf/perf-6.0-r1.ebuild |  1 +
 dev-util/perf/perf-6.2-r1.ebuild |  1 +
 3 files changed, 41 insertions(+)

diff --git a/dev-util/perf/files/perf-6.0-c++17.patch 
b/dev-util/perf/files/perf-6.0-c++17.patch
new file mode 100644
index ..08c34bc552ca
--- /dev/null
+++ b/dev-util/perf/files/perf-6.0-c++17.patch
@@ -0,0 +1,39 @@
+https://bugs.gentoo.org/904169
+--- a/tools/perf/Makefile.config
 b/tools/perf/Makefile.config
+@@ -309,7 +309,7 @@
+ CORE_CFLAGS += -Wextra
+ CORE_CFLAGS += -std=gnu11
+ 
+-CXXFLAGS += -std=gnu++14 -fno-exceptions -fno-rtti
++CXXFLAGS += -std=gnu++17 -fno-exceptions -fno-rtti
+ CXXFLAGS += -Wall
+ CXXFLAGS += -fno-omit-frame-pointer
+ CXXFLAGS += -ggdb3
+--- a/tools/build/feature/Makefile
 b/tools/build/feature/Makefile
+@@ -339,7 +339,7 @@
+   $(BUILD)
+ 
+ $(OUTPUT)test-llvm.bin:
+-  $(BUILDXX) -std=gnu++14 \
++  $(BUILDXX) -std=gnu++17 \
+   -I$(shell $(LLVM_CONFIG) --includedir)  \
+   -L$(shell $(LLVM_CONFIG) --libdir)  \
+   $(shell $(LLVM_CONFIG) --libs)  \
+@@ -347,12 +347,12 @@
+   > $(@:.bin=.make.output) 2>&1
+ 
+ $(OUTPUT)test-llvm-version.bin:
+-  $(BUILDXX) -std=gnu++14 \
++  $(BUILDXX) -std=gnu++17 \
+   -I$(shell $(LLVM_CONFIG) --includedir)  \
+   > $(@:.bin=.make.output) 2>&1
+ 
+ $(OUTPUT)test-clang.bin:
+-  $(BUILDXX) -std=gnu++14 \
++  $(BUILDXX) -std=gnu++17 \
+   -I$(shell $(LLVM_CONFIG) --includedir)  \
+   -L$(shell $(LLVM_CONFIG) --libdir)  \
+   -lclang-cpp $(shell $(LLVM_CONFIG) --libs)  \
+

diff --git a/dev-util/perf/perf-6.0-r1.ebuild b/dev-util/perf/perf-6.0-r1.ebuild
index be9dbc82a5f9..04184b462006 100644
--- a/dev-util/perf/perf-6.0-r1.ebuild
+++ b/dev-util/perf/perf-6.0-r1.ebuild
@@ -145,6 +145,7 @@ src_prepare() {
 
pushd "${S_K}" >/dev/null || die
eapply "${FILESDIR}"/${P}-clang.patch
+   eapply "${FILESDIR}"/perf-6.0-c++17.patch
popd || die
 
# Drop some upstream too-developer-oriented flags and fix the

diff --git a/dev-util/perf/perf-6.2-r1.ebuild b/dev-util/perf/perf-6.2-r1.ebuild
index 8dc6385d598e..8a46cf67337d 100644
--- a/dev-util/perf/perf-6.2-r1.ebuild
+++ b/dev-util/perf/perf-6.2-r1.ebuild
@@ -145,6 +145,7 @@ src_prepare() {
 
pushd "${S_K}" >/dev/null || die
eapply "${FILESDIR}"/perf-6.0-clang.patch
+   eapply "${FILESDIR}"/perf-6.0-c++17.patch
popd || die
 
# Drop some upstream too-developer-oriented flags and fix the



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-04-10 Thread Sam James
commit: da3b75e6e0ebc97ff9bc926756aee926fa44d328
Author: Sam James  gentoo  org>
AuthorDate: Tue Apr 11 02:44:02 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Apr 11 02:44:42 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da3b75e6

dev-util/perf: BDEPEND on setuptools

It's always needed in util/*, even for USE=-python.

Closes: https://bugs.gentoo.org/879161
Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/{perf-5.19.ebuild => perf-5.19-r1.ebuild} | 4 +++-
 dev-util/perf/{perf-6.0.ebuild => perf-6.0-r1.ebuild}   | 4 +++-
 dev-util/perf/{perf-6.2.ebuild => perf-6.2-r1.ebuild}   | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/dev-util/perf/perf-5.19.ebuild b/dev-util/perf/perf-5.19-r1.ebuild
similarity index 98%
rename from dev-util/perf/perf-5.19.ebuild
rename to dev-util/perf/perf-5.19-r1.ebuild
index 129012be23f9..ea6fd7e11d61 100644
--- a/dev-util/perf/perf-5.19.ebuild
+++ b/dev-util/perf/perf-5.19-r1.ebuild
@@ -37,8 +37,11 @@ IUSE="audit babeltrace clang crypt debug +doc gtk java 
libpfm lzma numa perl pyt
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
+# setuptools (and Python) are always needed even if not building Python 
bindings
 BDEPEND="
${LINUX_PATCH+dev-util/patchutils}
+   ${PYTHON_DEPS}
+   dev-python/setuptools[${PYTHON_USEDEP}]
sys-devel/bison
sys-devel/flex
virtual/pkgconfig
@@ -48,7 +51,6 @@ BDEPEND="
app-text/xmlto
sys-process/time
)
-   ${PYTHON_DEPS}
 "
 
 RDEPEND="audit? ( sys-process/audit )

diff --git a/dev-util/perf/perf-6.0.ebuild b/dev-util/perf/perf-6.0-r1.ebuild
similarity index 98%
rename from dev-util/perf/perf-6.0.ebuild
rename to dev-util/perf/perf-6.0-r1.ebuild
index 611ca8224448..be9dbc82a5f9 100644
--- a/dev-util/perf/perf-6.0.ebuild
+++ b/dev-util/perf/perf-6.0-r1.ebuild
@@ -36,8 +36,11 @@ IUSE="audit babeltrace clang crypt debug +doc gtk java 
libpfm lzma numa perl pyt
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
+# setuptools (and Python) are always needed even if not building Python 
bindings
 BDEPEND="
${LINUX_PATCH+dev-util/patchutils}
+   ${PYTHON_DEPS}
+   dev-python/setuptools[${PYTHON_USEDEP}]
sys-devel/bison
sys-devel/flex
virtual/pkgconfig
@@ -47,7 +50,6 @@ BDEPEND="
app-text/xmlto
sys-process/time
)
-   ${PYTHON_DEPS}
 "
 
 RDEPEND="audit? ( sys-process/audit )

diff --git a/dev-util/perf/perf-6.2.ebuild b/dev-util/perf/perf-6.2-r1.ebuild
similarity index 98%
rename from dev-util/perf/perf-6.2.ebuild
rename to dev-util/perf/perf-6.2-r1.ebuild
index c9df3f9793cf..8dc6385d598e 100644
--- a/dev-util/perf/perf-6.2.ebuild
+++ b/dev-util/perf/perf-6.2-r1.ebuild
@@ -36,8 +36,11 @@ IUSE="audit babeltrace clang crypt debug +doc gtk java 
libpfm lzma numa perl pyt
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
+# setuptools (and Python) are always needed even if not building Python 
bindings
 BDEPEND="
${LINUX_PATCH+dev-util/patchutils}
+   ${PYTHON_DEPS}
+   dev-python/setuptools[${PYTHON_USEDEP}]
sys-devel/bison
sys-devel/flex
virtual/pkgconfig
@@ -47,7 +50,6 @@ BDEPEND="
app-text/xmlto
sys-process/time
)
-   ${PYTHON_DEPS}
 "
 
 RDEPEND="audit? ( sys-process/audit )



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-03-02 Thread Guilherme Amadio
commit: bbc9ffb719acf9ae93282de6088e21a671340f72
Author: Denis Pronin  yandex  ru>
AuthorDate: Sun Feb 26 20:50:32 2023 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Thu Mar  2 09:39:37 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbc9ffb7

dev-util/perf-5.19: add python3_11 to PYTHON_COMPAT

Closes: https://github.com/gentoo/gentoo/pull/29879

Signed-off-by: Denis Pronin  yandex.ru>
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/perf-5.19.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.19.ebuild b/dev-util/perf/perf-5.19.ebuild
index 2489e3b3c6d3..129012be23f9 100644
--- a/dev-util/perf/perf-5.19.ebuild
+++ b/dev-util/perf/perf-5.19.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{9..10} )
+PYTHON_COMPAT=( python3_{9..11} )
 inherit bash-completion-r1 estack llvm toolchain-funcs python-r1 linux-info
 
 DESCRIPTION="Userland tools for Linux Performance Counters"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-02-28 Thread Guilherme Amadio
commit: 131be2476bcbf2aaf0dd6ad16cefe15800da01d3
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Tue Feb 28 08:09:39 2023 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Tue Feb 28 08:10:35 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=131be247

dev-util/perf: add 6.2, drop 6.1.11

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest| 3 +--
 dev-util/perf/{perf-6.1.11.ebuild => perf-6.2.ebuild} | 0
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 3f7683f95648..c3a52f5a7406 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,5 +1,4 @@
 DIST linux-5.19.tar.xz 131581464 BLAKE2B 
4db03a6830a3b3bbf0837e1912182a443d9a4aa8af20a12e6ec814ed708038452d3c0ccee1258cca671c464d76461536363a8adc56e9d098c9a44ae3484a297a
 SHA512 
00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623
 DIST linux-6.0.tar.xz 133886176 BLAKE2B 
c09a9c877ac0fac83dc31d2d04d96f0a3331d4ed78e3ad4edfd4dc077e1c11d0c49f419fdac4008b5c93d1b09c2b724e12ef0b38371ad0962908abf85dfa95fa
 SHA512 
bac41a7aeb6e809616cee2f13dcd1c45e829dfd1ccf60aee1dc4c46b1e28532f4485c7d819a32940de84fdfbf89db80a4e919bce8a74b2948c5a01551771b714
-DIST linux-6.1.tar.xz 134728520 BLAKE2B 
ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e
 SHA512 
6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68
-DIST patch-6.1.11.xz 717696 BLAKE2B 
57033764612efc0a173f501036ccd6cc4fb1ddb452f40d3d81cfea7c3d918174a6b242490fbb8b0c66eb91c4e6503b820b0e77ba12c3beeea95b492b662f3466
 SHA512 
3ea57aa49805a2ed9521b11237e70e2df68cff5c3215e5e047ec292daaa1caace6747219fbec6cdef84b099d607bc59ac7f9a7e72189fc269945586ee16ab899
+DIST linux-6.2.tar.xz 136430892 BLAKE2B 
05b63254734ea685db437cb1c00a6da63eee74d7e99f4ed2d074aaa01ac4487813ab297d337a6855cdbcbb33346b631c4256ee3b06191adfb1be3615a56bdd6d
 SHA512 
a01bee0b968b95183934fe3504516be7ef5811944a061f5aed05ecebaa27b5eb64e33232fd0a8dd622b3c8743bfe462ef7e464d381734d111a0ad6a6d9f66ddd
 DIST perf-5.19-binutils-2.39-patches.tar.xz 5612 BLAKE2B 
ec3aeadc3e2508f33dddbb419f434885b39b8220d294f3845f0bc96282923ff46dca126a04c732b8286752e56087ba5b2c5ad9526884f6d0b8b6df5665121e5e
 SHA512 
af676e5a600e227d85f89a5ee0cfacfe1845aa56c27ef9da3ebaf578362d7e741375d30565759123b33b86d36bc9981c8c4cda113af32745cc59cf4a9275e73b

diff --git a/dev-util/perf/perf-6.1.11.ebuild b/dev-util/perf/perf-6.2.ebuild
similarity index 100%
rename from dev-util/perf/perf-6.1.11.ebuild
rename to dev-util/perf/perf-6.2.ebuild



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-02-23 Thread Sam James
commit: f1441f011624a20d2cafb3055e9630e949c47247
Author: Sam James  gentoo  org>
AuthorDate: Thu Feb 23 17:42:50 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Feb 23 20:29:09 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1441f01

dev-util/perf: use gtar for --wildcards

Closes: https://bugs.gentoo.org/887761
Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-5.19.ebuild   | 2 +-
 dev-util/perf/perf-6.0.ebuild| 2 +-
 dev-util/perf/perf-6.1.11.ebuild | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-util/perf/perf-5.19.ebuild b/dev-util/perf/perf-5.19.ebuild
index 69d09a7dfbac..2489e3b3c6d3 100644
--- a/dev-util/perf/perf-5.19.ebuild
+++ b/dev-util/perf/perf-5.19.ebuild
@@ -114,7 +114,7 @@ src_unpack() {
# We expect the tar implementation to support the -j option (both
# GNU tar and libarchive's tar support that).
echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
-   tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
+   gtar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
"${paths[@]/#/linux-${LINUX_VER}/}" || die
 
if [[ -n ${LINUX_PATCH} ]] ; then

diff --git a/dev-util/perf/perf-6.0.ebuild b/dev-util/perf/perf-6.0.ebuild
index 8835f1febde4..611ca8224448 100644
--- a/dev-util/perf/perf-6.0.ebuild
+++ b/dev-util/perf/perf-6.0.ebuild
@@ -113,7 +113,7 @@ src_unpack() {
# We expect the tar implementation to support the -j option (both
# GNU tar and libarchive's tar support that).
echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
-   tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
+   gtar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
"${paths[@]/#/linux-${LINUX_VER}/}" || die
 
if [[ -n ${LINUX_PATCH} ]] ; then

diff --git a/dev-util/perf/perf-6.1.11.ebuild b/dev-util/perf/perf-6.1.11.ebuild
index bff4ba7118b7..c9df3f9793cf 100644
--- a/dev-util/perf/perf-6.1.11.ebuild
+++ b/dev-util/perf/perf-6.1.11.ebuild
@@ -113,7 +113,7 @@ src_unpack() {
# We expect the tar implementation to support the -j option (both
# GNU tar and libarchive's tar support that).
echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
-   tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
+   gtar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
"${paths[@]/#/linux-${LINUX_VER}/}" || die
 
if [[ -n ${LINUX_PATCH} ]] ; then



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-02-13 Thread Guilherme Amadio
commit: c417271f441f6dbeba99aeaf37c190e6ec22c7bb
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Mon Feb 13 20:09:28 2023 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Mon Feb 13 20:09:34 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c417271f

dev-util/perf: add 6.1.11

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest   |   2 +
 dev-util/perf/perf-6.1.11.ebuild | 265 +++
 2 files changed, 267 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 076d2671e177..3f7683f95648 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,3 +1,5 @@
 DIST linux-5.19.tar.xz 131581464 BLAKE2B 
4db03a6830a3b3bbf0837e1912182a443d9a4aa8af20a12e6ec814ed708038452d3c0ccee1258cca671c464d76461536363a8adc56e9d098c9a44ae3484a297a
 SHA512 
00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623
 DIST linux-6.0.tar.xz 133886176 BLAKE2B 
c09a9c877ac0fac83dc31d2d04d96f0a3331d4ed78e3ad4edfd4dc077e1c11d0c49f419fdac4008b5c93d1b09c2b724e12ef0b38371ad0962908abf85dfa95fa
 SHA512 
bac41a7aeb6e809616cee2f13dcd1c45e829dfd1ccf60aee1dc4c46b1e28532f4485c7d819a32940de84fdfbf89db80a4e919bce8a74b2948c5a01551771b714
+DIST linux-6.1.tar.xz 134728520 BLAKE2B 
ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e
 SHA512 
6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68
+DIST patch-6.1.11.xz 717696 BLAKE2B 
57033764612efc0a173f501036ccd6cc4fb1ddb452f40d3d81cfea7c3d918174a6b242490fbb8b0c66eb91c4e6503b820b0e77ba12c3beeea95b492b662f3466
 SHA512 
3ea57aa49805a2ed9521b11237e70e2df68cff5c3215e5e047ec292daaa1caace6747219fbec6cdef84b099d607bc59ac7f9a7e72189fc269945586ee16ab899
 DIST perf-5.19-binutils-2.39-patches.tar.xz 5612 BLAKE2B 
ec3aeadc3e2508f33dddbb419f434885b39b8220d294f3845f0bc96282923ff46dca126a04c732b8286752e56087ba5b2c5ad9526884f6d0b8b6df5665121e5e
 SHA512 
af676e5a600e227d85f89a5ee0cfacfe1845aa56c27ef9da3ebaf578362d7e741375d30565759123b33b86d36bc9981c8c4cda113af32745cc59cf4a9275e73b

diff --git a/dev-util/perf/perf-6.1.11.ebuild b/dev-util/perf/perf-6.1.11.ebuild
new file mode 100644
index ..bff4ba7118b7
--- /dev/null
+++ b/dev-util/perf/perf-6.1.11.ebuild
@@ -0,0 +1,265 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{9..11} )
+inherit bash-completion-r1 estack llvm toolchain-funcs python-r1 linux-info
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/";
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
+   PATCH_VERSION=$(ver_cut 1-3)
+   LINUX_PATCH=patch-${PV//_/-}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
+elif [[ ${PV} == *.*.* ]] ; then
+   # stable-release series
+   LINUX_VER=$(ver_cut 1-2)
+   LINUX_PATCH=patch-${PV}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
+else
+   LINUX_VER=${PV}
+   SRC_URI=""
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+BDEPEND="
+   ${LINUX_PATCH+dev-util/patchutils}
+   sys-devel/bison
+   sys-devel/flex
+   virtual/pkgconfig
+   doc? (
+   app-text/asciidoc
+   app-text/sgml-common
+   app-text/xmlto
+   sys-process/time
+   )
+   ${PYTHON_DEPS}
+"
+
+RDEPEND="audit? ( sys-process/audit )
+   babeltrace? ( dev-util/babeltrace )
+   crypt? ( virtual/libcrypt:= )
+   clang? (
+   sys-devel/clang:=
+   sys-devel/llvm:=
+   )
+   gtk? ( x11-libs/gtk+:2 )
+   java? ( virtual/jre:* )
+   libpfm? ( dev-libs/libpfm )
+   lzma? ( app-arch/xz-utils )
+   numa? ( sys-process/numactl )
+   perl? ( dev-lang/perl:= )
+   python? ( ${PYTHON_DEPS} )
+   slang? ( sys-libs/slang )
+   systemtap? ( dev-util/systemtap )
+   unwind? ( sys-libs/libunwind )
+   zlib? ( sys-libs/zlib )
+   zstd? ( app-arch/zstd )
+   dev-libs/elfutils
+   sys-libs/binutils-libs:="
+
+DEPEND="${RDEPEND}
+   >=sys-kernel/linux-headers-5.10
+   java? ( virtual/jdk )
+"
+
+S_K="$

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2023-01-13 Thread Naohiro Aota
commit: 89389a9fc60661d2bb0b9590e012cf75cbe1960b
Author: Naohiro Aota  gentoo  org>
AuthorDate: Fri Jan 13 15:25:47 2023 +
Commit: Naohiro Aota  gentoo  org>
CommitDate: Fri Jan 13 15:26:58 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89389a9f

dev-util/perf: drop -Werror from Makefile

Closes: https://bugs.gentoo.org/37
Signed-off-by: Naohiro Aota  gentoo.org>

 dev-util/perf/perf-6.0.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-util/perf/perf-6.0.ebuild b/dev-util/perf/perf-6.0.ebuild
index 7436087635dc..0f780281f20f 100644
--- a/dev-util/perf/perf-6.0.ebuild
+++ b/dev-util/perf/perf-6.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -152,7 +152,8 @@ src_prepare() {
"${S}"/Makefile.perf || die
# A few places still use -Werror w/out $(WERROR) protection.
sed -i -e 's@-Werror@@' \
-   "${S}"/Makefile.perf "${S_K}"/tools/lib/bpf/Makefile || die
+   "${S}"/Makefile.perf "${S_K}"/tools/lib/bpf/Makefile \
+   "${S_K}"/tools/lib/perf/Makefile || die
 
# Avoid the call to make kernelversion
sed -i -e '/PERF-VERSION-GEN/d' Makefile.perf || die



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/files/, dev-util/perf/

2022-11-16 Thread Michał Górny
commit: 41355d5ee50bb0cb7af9058f0af753a7cf73d602
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Nov 17 04:59:08 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Nov 17 04:59:08 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41355d5e

dev-util/perf: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-util/perf/Manifest  |   4 -
 dev-util/perf/files/perf-5.15-clang.patch   | 231 
 dev-util/perf/files/perf-5.17.1-clang.patch |  61 ---
 dev-util/perf/perf-5.15-r1.ebuild   | 266 
 dev-util/perf/perf-5.17.1.ebuild| 264 ---
 dev-util/perf/perf-5.18.ebuild  | 264 ---
 6 files changed, 1090 deletions(-)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index e5f10036beaf..076d2671e177 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,7 +1,3 @@
-DIST linux-5.15.tar.xz 121913744 BLAKE2B 
3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b83a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83
 SHA512 
d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
-DIST linux-5.17.tar.xz 128399340 BLAKE2B 
82dc4a45cc25c781ac67aa6ed1e4c369544154960f41c4634d47621f381159687a227054976d078524cda28884d395a15f7542fe44ca74ce98ca6ff54a81d6d0
 SHA512 
89f0a7ca69d20a539d4b612a7028a30a5e98b402e4b6b88516f14237e5da4b626d7929eab8b40fccc90766e8f3bae87e9858a19077ffad20d8204acf18794f5b
-DIST linux-5.18.tar.xz 129790264 BLAKE2B 
e2745a69eb70169e90505a9318a3993046eab3020496eecde7d8352ecda0eb71a25b21becf7ce93fc593507dce7d1cd61b94ddcdf82b3094d79c0d3d48508eeb
 SHA512 
dbbc9d1395898a498fa4947fceda1781344fa5d360240f753810daa4fa88e519833e2186c4e582a8f1836e6413e9e85f6563c7770523b704e8702d67622f98b5
 DIST linux-5.19.tar.xz 131581464 BLAKE2B 
4db03a6830a3b3bbf0837e1912182a443d9a4aa8af20a12e6ec814ed708038452d3c0ccee1258cca671c464d76461536363a8adc56e9d098c9a44ae3484a297a
 SHA512 
00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623
 DIST linux-6.0.tar.xz 133886176 BLAKE2B 
c09a9c877ac0fac83dc31d2d04d96f0a3331d4ed78e3ad4edfd4dc077e1c11d0c49f419fdac4008b5c93d1b09c2b724e12ef0b38371ad0962908abf85dfa95fa
 SHA512 
bac41a7aeb6e809616cee2f13dcd1c45e829dfd1ccf60aee1dc4c46b1e28532f4485c7d819a32940de84fdfbf89db80a4e919bce8a74b2948c5a01551771b714
-DIST patch-5.17.1.xz 15244 BLAKE2B 
f340b8a103754122153dd381fe210b18ba37b7262dae4fc7a1f99c5a62868c9bdb178e83865b35f00b82bd2d67ae127c440515d1740093825f7ec7fa4c4a490d
 SHA512 
fb9a28ce7c68daeca82586e7631dc0be00a1a8393b4cef4c659fc1f9dac6e1f941bd60671c0350d1dea9cb035f56d627f64a394a9acb00b2b5dea8a1d44c065f
 DIST perf-5.19-binutils-2.39-patches.tar.xz 5612 BLAKE2B 
ec3aeadc3e2508f33dddbb419f434885b39b8220d294f3845f0bc96282923ff46dca126a04c732b8286752e56087ba5b2c5ad9526884f6d0b8b6df5665121e5e
 SHA512 
af676e5a600e227d85f89a5ee0cfacfe1845aa56c27ef9da3ebaf578362d7e741375d30565759123b33b86d36bc9981c8c4cda113af32745cc59cf4a9275e73b

diff --git a/dev-util/perf/files/perf-5.15-clang.patch 
b/dev-util/perf/files/perf-5.15-clang.patch
deleted file mode 100644
index 5ea0c75f27f1..
--- a/dev-util/perf/files/perf-5.15-clang.patch
+++ /dev/null
@@ -1,231 +0,0 @@
-From e1f1cbfe812e4a019034105ab5e81fd9f0742353 Mon Sep 17 00:00:00 2001
-From: Ian Rogers 
-Date: Mon, 11 Oct 2021 19:13:20 -0700
-Subject: [PATCH 1/3] tools: Bump minimum LLVM C++ std to GNU++14
-
-LLVM 9 (current release is LLVM 13) moved the minimum C++ version to
-GNU++14. Bump the version numbers in the feature test and perf build.
-
-Reviewed-by: Fangrui Song 
-Signed-off-by: Ian Rogers 
-Cc: Alexander Shishkin 
-Cc: Daniel Borkmann 
-Cc: Ingo Molnar 
-Cc: Jiri Olsa 
-Cc: Leo Yan 
-Cc: Mark Rutland 
-Cc: Michael Petlan 
-Cc: Namhyung Kim 
-Cc: Nathan Chancellor 
-Cc: Nick Desaulniers 
-Cc: Peter Zijlstra 
-Cc: Sedat Dilek 
-Cc: l...@lists.linux.dev
-Link: https://lore.kernel.org/r/20211012021321.291635-1-irog...@google.com
-Signed-off-by: Arnaldo Carvalho de Melo 

- tools/build/feature/Makefile | 6 +++---
- tools/perf/Makefile.config   | 2 +-
- 2 files changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile
-index eff55d287db1..9756e589e4ae 100644
 a/tools/build/feature/Makefile
-+++ b/tools/build/feature/Makefile
-@@ -296,7 +296,7 @@ $(OUTPUT)test-jvmti-cmlr.bin:
-   $(BUILD)
- 
- $(OUTPUT)test-llvm.bin:
--  $(BUILDXX) -std=gnu++11 \
-+  $(BUILDXX) -std=gnu++14 \
-   -I$(shell $(LLVM_CONFIG) --includedir)  \
-   -L$(shell $(LLVM_CONFIG) --libdir)  \
-   $(shell $(LLVM_CONFIG) --libs Core BPF) \
-@@ -304,12 +304,12 @@ $(OUTPUT)test-llvm.bin:
- 

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-11-16 Thread Sam James
commit: c3a289eb916dfb55e420a1d7f269d8fd2e904c42
Author: Sam James  gentoo  org>
AuthorDate: Thu Nov 17 01:05:42 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Nov 17 01:05:42 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3a289eb

dev-util/perf: Stabilize 5.19 arm64, #876166

Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-5.19.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.19.ebuild b/dev-util/perf/perf-5.19.ebuild
index dae347e98cf6..a1b75fd9e59e 100644
--- a/dev-util/perf/perf-5.19.ebuild
+++ b/dev-util/perf/perf-5.19.ebuild
@@ -32,7 +32,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 arm ~arm64 ~mips ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-11-16 Thread Sam James
commit: fbd4c3ea5d25674ac232c3b8c3f919b999b18b7e
Author: Sam James  gentoo  org>
AuthorDate: Wed Nov 16 12:40:53 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Nov 16 12:40:53 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbd4c3ea

dev-util/perf: Stabilize 5.19 x86, #876166

Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-5.19.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.19.ebuild b/dev-util/perf/perf-5.19.ebuild
index 81b624d2a5d4..8bcbce310ab9 100644
--- a/dev-util/perf/perf-5.19.ebuild
+++ b/dev-util/perf/perf-5.19.ebuild
@@ -32,7 +32,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 arm ~arm64 ~mips ppc ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="~amd64 arm ~arm64 ~mips ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-11-16 Thread Sam James
commit: 650d34da67b231d1b24e2792572a323fea05ae02
Author: Sam James  gentoo  org>
AuthorDate: Wed Nov 16 12:40:55 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Nov 16 12:40:55 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=650d34da

dev-util/perf: Stabilize 5.19 amd64, #876166

Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-5.19.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.19.ebuild b/dev-util/perf/perf-5.19.ebuild
index 8bcbce310ab9..dae347e98cf6 100644
--- a/dev-util/perf/perf-5.19.ebuild
+++ b/dev-util/perf/perf-5.19.ebuild
@@ -32,7 +32,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 arm ~arm64 ~mips ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 arm ~arm64 ~mips ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-11-16 Thread Arthur Zamarin
commit: 202b5b184a45233ff9e63e15d69427e4c145c0d4
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Wed Nov 16 08:56:52 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Wed Nov 16 08:56:52 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=202b5b18

dev-util/perf: Stabilize 5.19 ppc, #876166

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-util/perf/perf-5.19.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.19.ebuild b/dev-util/perf/perf-5.19.ebuild
index a64b5e9ba186..81b624d2a5d4 100644
--- a/dev-util/perf/perf-5.19.ebuild
+++ b/dev-util/perf/perf-5.19.ebuild
@@ -32,7 +32,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 arm ~arm64 ~mips ~ppc ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="~amd64 arm ~arm64 ~mips ppc ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-11-16 Thread Arthur Zamarin
commit: 226aa377f02331314d9c753fb18e1faa27fd0e95
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Wed Nov 16 08:52:33 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Wed Nov 16 08:52:33 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=226aa377

dev-util/perf: Stabilize 5.19 arm, #876166

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-util/perf/perf-5.19.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.19.ebuild b/dev-util/perf/perf-5.19.ebuild
index 9800fe542ce6..a64b5e9ba186 100644
--- a/dev-util/perf/perf-5.19.ebuild
+++ b/dev-util/perf/perf-5.19.ebuild
@@ -32,7 +32,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="~amd64 arm ~arm64 ~mips ~ppc ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-11-16 Thread Arthur Zamarin
commit: 8a3900732159b9d74b07d4c034fd3c8ddef5c635
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Wed Nov 16 08:52:32 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Wed Nov 16 08:52:32 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a390073

dev-util/perf: Stabilize 5.19 ppc64, #876166

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-util/perf/perf-5.19.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.19.ebuild b/dev-util/perf/perf-5.19.ebuild
index c0b17711b75c..9800fe542ce6 100644
--- a/dev-util/perf/perf-5.19.ebuild
+++ b/dev-util/perf/perf-5.19.ebuild
@@ -32,7 +32,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/, dev-util/perf/files/

2022-10-20 Thread Guilherme Amadio
commit: 43dc41c72037c3923e949b2a810732bf4082c8aa
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Thu Oct 20 07:45:59 2022 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Thu Oct 20 08:44:48 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43dc41c7

dev-util/perf: version bump to 6.0

Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest   |   1 +
 dev-util/perf/files/perf-6.0-clang.patch |  44 ++
 dev-util/perf/perf-6.0.ebuild| 264 +++
 3 files changed, 309 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 574328166e9b..e5f10036beaf 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -2,5 +2,6 @@ DIST linux-5.15.tar.xz 121913744 BLAKE2B 
3921274b23f7938abdf3ed9334534b4581e13d7
 DIST linux-5.17.tar.xz 128399340 BLAKE2B 
82dc4a45cc25c781ac67aa6ed1e4c369544154960f41c4634d47621f381159687a227054976d078524cda28884d395a15f7542fe44ca74ce98ca6ff54a81d6d0
 SHA512 
89f0a7ca69d20a539d4b612a7028a30a5e98b402e4b6b88516f14237e5da4b626d7929eab8b40fccc90766e8f3bae87e9858a19077ffad20d8204acf18794f5b
 DIST linux-5.18.tar.xz 129790264 BLAKE2B 
e2745a69eb70169e90505a9318a3993046eab3020496eecde7d8352ecda0eb71a25b21becf7ce93fc593507dce7d1cd61b94ddcdf82b3094d79c0d3d48508eeb
 SHA512 
dbbc9d1395898a498fa4947fceda1781344fa5d360240f753810daa4fa88e519833e2186c4e582a8f1836e6413e9e85f6563c7770523b704e8702d67622f98b5
 DIST linux-5.19.tar.xz 131581464 BLAKE2B 
4db03a6830a3b3bbf0837e1912182a443d9a4aa8af20a12e6ec814ed708038452d3c0ccee1258cca671c464d76461536363a8adc56e9d098c9a44ae3484a297a
 SHA512 
00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623
+DIST linux-6.0.tar.xz 133886176 BLAKE2B 
c09a9c877ac0fac83dc31d2d04d96f0a3331d4ed78e3ad4edfd4dc077e1c11d0c49f419fdac4008b5c93d1b09c2b724e12ef0b38371ad0962908abf85dfa95fa
 SHA512 
bac41a7aeb6e809616cee2f13dcd1c45e829dfd1ccf60aee1dc4c46b1e28532f4485c7d819a32940de84fdfbf89db80a4e919bce8a74b2948c5a01551771b714
 DIST patch-5.17.1.xz 15244 BLAKE2B 
f340b8a103754122153dd381fe210b18ba37b7262dae4fc7a1f99c5a62868c9bdb178e83865b35f00b82bd2d67ae127c440515d1740093825f7ec7fa4c4a490d
 SHA512 
fb9a28ce7c68daeca82586e7631dc0be00a1a8393b4cef4c659fc1f9dac6e1f941bd60671c0350d1dea9cb035f56d627f64a394a9acb00b2b5dea8a1d44c065f
 DIST perf-5.19-binutils-2.39-patches.tar.xz 5612 BLAKE2B 
ec3aeadc3e2508f33dddbb419f434885b39b8220d294f3845f0bc96282923ff46dca126a04c732b8286752e56087ba5b2c5ad9526884f6d0b8b6df5665121e5e
 SHA512 
af676e5a600e227d85f89a5ee0cfacfe1845aa56c27ef9da3ebaf578362d7e741375d30565759123b33b86d36bc9981c8c4cda113af32745cc59cf4a9275e73b

diff --git a/dev-util/perf/files/perf-6.0-clang.patch 
b/dev-util/perf/files/perf-6.0-clang.patch
new file mode 100644
index ..65b38c8d399b
--- /dev/null
+++ b/dev-util/perf/files/perf-6.0-clang.patch
@@ -0,0 +1,44 @@
+
+Adapt for building against LLVM/Clang with monolithic libraries.
+
+--- a/tools/build/feature/Makefile
 b/tools/build/feature/Makefile
+@@ -338,7 +338,7 @@ $(OUTPUT)test-llvm.bin:
+   $(BUILDXX) -std=gnu++14 \
+   -I$(shell $(LLVM_CONFIG) --includedir)  \
+   -L$(shell $(LLVM_CONFIG) --libdir)  \
+-  $(shell $(LLVM_CONFIG) --libs Core BPF) \
++  $(shell $(LLVM_CONFIG) --libs)  \
+   $(shell $(LLVM_CONFIG) --system-libs)   \
+   > $(@:.bin=.make.output) 2>&1
+ 
+@@ -351,10 +351,7 @@ $(OUTPUT)test-clang.bin:
+   $(BUILDXX) -std=gnu++14 \
+   -I$(shell $(LLVM_CONFIG) --includedir)  \
+   -L$(shell $(LLVM_CONFIG) --libdir)  \
+-  -Wl,--start-group -lclangBasic -lclangDriver\
+--lclangFrontend -lclangEdit -lclangLex\
+--lclangAST -Wl,--end-group\
+-  $(shell $(LLVM_CONFIG) --libs Core option)  \
++  -lclang-cpp $(shell $(LLVM_CONFIG) --libs)  \
+   $(shell $(LLVM_CONFIG) --system-libs)   \
+   > $(@:.bin=.make.output) 2>&1
+ 
+--- a/tools/perf/Makefile.perf
 b/tools/perf/Makefile.perf
+@@ -416,14 +416,11 @@ EXTLIBS := $(call 
filter-out,$(EXCLUDE_EXTLIBS),$(EXTLIBS))
+ LIBS = -Wl,--whole-archive $(PERFLIBS) $(EXTRA_PERFLIBS) 
-Wl,--no-whole-archive -Wl,--start-group $(EXTLIBS) -Wl,--end-group
+ 
+ ifeq ($(USE_CLANG), 1)
+-  CLANGLIBS_LIST = AST Basic CodeGen Driver Frontend Lex Tooling Edit Sema 
Analysis Parse Serialization
+-  CLANGLIBS_NOEXT_LIST = $(foreach l,$(CLANGLIBS_LIST),$(shell $(LLVM_CONFIG) 
--libdir)/libclang$(l))
+-  LIBCLANG = $(foreach l,$(CLANGLIBS_NOEXT_LIST),$(wildcard $(l).a $(l).so))
+-  LIBS += -Wl,--start-group $(LIBCLANG) -Wl,--end-group
++  LIBS += -lclang-cpp
+ endif
+ 
+ ifeq ($(USE_LLVM), 1)
+-  

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-09-04 Thread Sam James
commit: 6707360d2ee62f70b0320073a80e46dc92ef83fe
Author: Sam James  gentoo  org>
AuthorDate: Mon Sep  5 01:13:42 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Sep  5 01:13:42 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6707360d

dev-util/perf: add comment re binutils-2.39 patches

Bug: https://bugs.gentoo.org/868129
Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-5.19.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev-util/perf/perf-5.19.ebuild b/dev-util/perf/perf-5.19.ebuild
index 48881f1dc0f8..c0b17711b75c 100644
--- a/dev-util/perf/perf-5.19.ebuild
+++ b/dev-util/perf/perf-5.19.ebuild
@@ -144,6 +144,8 @@ src_prepare() {
 
pushd "${S_K}" >/dev/null || die
eapply "${FILESDIR}"/${PN}-5.18-clang.patch
+   # Used `git format-patch 
00b32625982e0c796f0abb8effcac9c05ef55bd3...600b7b26c07a070d0153daa76b3806c1e52c9e00`
+   # bug #868129
rm 
"${WORKDIR}"/${P}-binutils-2.39-patches/0005-tools-bpf_jit_disasm-Fix-compilation-error-with-new-.patch
 || die
rm 
"${WORKDIR}"/${P}-binutils-2.39-patches/0006-tools-bpf_jit_disasm-Don-t-display-disassembler-four.patch
 || die
rm 
"${WORKDIR}"/${P}-binutils-2.39-patches/0007-tools-bpftool-Fix-compilation-error-with-new-binutil.patch
 || die



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-09-04 Thread Sam James
commit: 3d1fd30a252e122a5c5b1a7cb8aaae8597f7fdbb
Author: Sam James  gentoo  org>
AuthorDate: Mon Sep  5 00:40:56 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Sep  5 00:40:56 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d1fd30a

dev-util/perf: add 5.19

Closes: https://bugs.gentoo.org/868129
Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/Manifest |   2 +
 dev-util/perf/perf-5.19.ebuild | 269 +
 2 files changed, 271 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 708e858709e9..574328166e9b 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,4 +1,6 @@
 DIST linux-5.15.tar.xz 121913744 BLAKE2B 
3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b83a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83
 SHA512 
d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
 DIST linux-5.17.tar.xz 128399340 BLAKE2B 
82dc4a45cc25c781ac67aa6ed1e4c369544154960f41c4634d47621f381159687a227054976d078524cda28884d395a15f7542fe44ca74ce98ca6ff54a81d6d0
 SHA512 
89f0a7ca69d20a539d4b612a7028a30a5e98b402e4b6b88516f14237e5da4b626d7929eab8b40fccc90766e8f3bae87e9858a19077ffad20d8204acf18794f5b
 DIST linux-5.18.tar.xz 129790264 BLAKE2B 
e2745a69eb70169e90505a9318a3993046eab3020496eecde7d8352ecda0eb71a25b21becf7ce93fc593507dce7d1cd61b94ddcdf82b3094d79c0d3d48508eeb
 SHA512 
dbbc9d1395898a498fa4947fceda1781344fa5d360240f753810daa4fa88e519833e2186c4e582a8f1836e6413e9e85f6563c7770523b704e8702d67622f98b5
+DIST linux-5.19.tar.xz 131581464 BLAKE2B 
4db03a6830a3b3bbf0837e1912182a443d9a4aa8af20a12e6ec814ed708038452d3c0ccee1258cca671c464d76461536363a8adc56e9d098c9a44ae3484a297a
 SHA512 
00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623
 DIST patch-5.17.1.xz 15244 BLAKE2B 
f340b8a103754122153dd381fe210b18ba37b7262dae4fc7a1f99c5a62868c9bdb178e83865b35f00b82bd2d67ae127c440515d1740093825f7ec7fa4c4a490d
 SHA512 
fb9a28ce7c68daeca82586e7631dc0be00a1a8393b4cef4c659fc1f9dac6e1f941bd60671c0350d1dea9cb035f56d627f64a394a9acb00b2b5dea8a1d44c065f
+DIST perf-5.19-binutils-2.39-patches.tar.xz 5612 BLAKE2B 
ec3aeadc3e2508f33dddbb419f434885b39b8220d294f3845f0bc96282923ff46dca126a04c732b8286752e56087ba5b2c5ad9526884f6d0b8b6df5665121e5e
 SHA512 
af676e5a600e227d85f89a5ee0cfacfe1845aa56c27ef9da3ebaf578362d7e741375d30565759123b33b86d36bc9981c8c4cda113af32745cc59cf4a9275e73b

diff --git a/dev-util/perf/perf-5.19.ebuild b/dev-util/perf/perf-5.19.ebuild
new file mode 100644
index ..48881f1dc0f8
--- /dev/null
+++ b/dev-util/perf/perf-5.19.ebuild
@@ -0,0 +1,269 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit bash-completion-r1 estack llvm toolchain-funcs python-r1 linux-info
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/";
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
+   PATCH_VERSION=$(ver_cut 1-3)
+   LINUX_PATCH=patch-${PV//_/-}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
+elif [[ ${PV} == *.*.* ]] ; then
+   # stable-release series
+   LINUX_VER=$(ver_cut 1-2)
+   LINUX_PATCH=patch-${PV}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
+else
+   LINUX_VER=${PV}
+   SRC_URI=""
+   SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-binutils-2.39-patches.tar.xz";
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+BDEPEND="
+   ${LINUX_PATCH+dev-util/patchutils}
+   sys-devel/bison
+   sys-devel/flex
+   virtual/pkgconfig
+   doc? (
+   app-text/asciidoc
+   app-text/sgml-common
+   app-text/xmlto
+   sys-process/time
+   )
+   ${PYTHON_DEPS}
+"
+
+RDEPEND="audit? ( sys-process/audit )
+   babeltrace? ( dev-util/babeltrace )
+   crypt? ( virtual/libcrypt:= )
+   clang? (
+   sys-devel/clang:=
+   sys-devel/llvm:=
+   )
+   gtk? ( x11-libs/gtk+:2 )
+   java? ( virtual/jre:* )
+   libpfm? ( dev-libs/libpfm )
+   lzma? ( app-arch/xz-utils )
+   numa? ( sys

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-06-16 Thread Guilherme Amadio
commit: 12fd68f5ccf1ae5ab9d364ca2800fd86c1c4b6d9
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Thu Jun 16 09:09:18 2022 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Thu Jun 16 09:34:08 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12fd68f5

dev-util/perf: use at sign as delimiter in sed commands

Closes: https://bugs.gentoo.org/832165
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/perf-5.15-r1.ebuild | 4 ++--
 dev-util/perf/perf-5.17.1.ebuild  | 4 ++--
 dev-util/perf/perf-5.18.ebuild| 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dev-util/perf/perf-5.15-r1.ebuild 
b/dev-util/perf/perf-5.15-r1.ebuild
index 21985387f161..9f1e52387618 100644
--- a/dev-util/perf/perf-5.15-r1.ebuild
+++ b/dev-util/perf/perf-5.15-r1.ebuild
@@ -150,10 +150,10 @@ src_prepare() {
# Drop some upstream too-developer-oriented flags and fix the
# Makefile in general
sed -i \
-   -e "s:\$(sysconfdir_SQ)/bash_completion.d:$(get_bashcompdir):" \
+   -e "s@\$(sysconfdir_SQ)/bash_completion.d@$(get_bashcompdir)@" \
"${S}"/Makefile.perf || die
# A few places still use -Werror w/out $(WERROR) protection.
-   sed -i -e 's:-Werror::' \
+   sed -i -e 's@-Werror@@' \
"${S}"/Makefile.perf "${S_K}"/tools/lib/bpf/Makefile || die
 
# Avoid the call to make kernelversion

diff --git a/dev-util/perf/perf-5.17.1.ebuild b/dev-util/perf/perf-5.17.1.ebuild
index a2e565d93fcb..773d205044fc 100644
--- a/dev-util/perf/perf-5.17.1.ebuild
+++ b/dev-util/perf/perf-5.17.1.ebuild
@@ -148,10 +148,10 @@ src_prepare() {
# Drop some upstream too-developer-oriented flags and fix the
# Makefile in general
sed -i \
-   -e "s:\$(sysconfdir_SQ)/bash_completion.d:$(get_bashcompdir):" \
+   -e "s@\$(sysconfdir_SQ)/bash_completion.d@$(get_bashcompdir)@" \
"${S}"/Makefile.perf || die
# A few places still use -Werror w/out $(WERROR) protection.
-   sed -i -e 's:-Werror::' \
+   sed -i -e 's@-Werror@@' \
"${S}"/Makefile.perf "${S_K}"/tools/lib/bpf/Makefile || die
 
# Avoid the call to make kernelversion

diff --git a/dev-util/perf/perf-5.18.ebuild b/dev-util/perf/perf-5.18.ebuild
index a2e565d93fcb..773d205044fc 100644
--- a/dev-util/perf/perf-5.18.ebuild
+++ b/dev-util/perf/perf-5.18.ebuild
@@ -148,10 +148,10 @@ src_prepare() {
# Drop some upstream too-developer-oriented flags and fix the
# Makefile in general
sed -i \
-   -e "s:\$(sysconfdir_SQ)/bash_completion.d:$(get_bashcompdir):" \
+   -e "s@\$(sysconfdir_SQ)/bash_completion.d@$(get_bashcompdir)@" \
"${S}"/Makefile.perf || die
# A few places still use -Werror w/out $(WERROR) protection.
-   sed -i -e 's:-Werror::' \
+   sed -i -e 's@-Werror@@' \
"${S}"/Makefile.perf "${S_K}"/tools/lib/bpf/Makefile || die
 
# Avoid the call to make kernelversion



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-05-31 Thread Guilherme Amadio
commit: 242122bac22ac2413031d74623afbdfb1b13ea50
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Tue May 31 15:35:17 2022 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Tue May 31 15:35:17 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=242122ba

dev-util/perf: drop old 5.8 version

Needs llvm <= 9, which is not in the tree anymore.

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest|   1 -
 dev-util/perf/metadata.xml|   6 --
 dev-util/perf/perf-5.8.ebuild | 244 --
 3 files changed, 251 deletions(-)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 87441f010c2a..708e858709e9 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,5 +1,4 @@
 DIST linux-5.15.tar.xz 121913744 BLAKE2B 
3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b83a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83
 SHA512 
d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
 DIST linux-5.17.tar.xz 128399340 BLAKE2B 
82dc4a45cc25c781ac67aa6ed1e4c369544154960f41c4634d47621f381159687a227054976d078524cda28884d395a15f7542fe44ca74ce98ca6ff54a81d6d0
 SHA512 
89f0a7ca69d20a539d4b612a7028a30a5e98b402e4b6b88516f14237e5da4b626d7929eab8b40fccc90766e8f3bae87e9858a19077ffad20d8204acf18794f5b
 DIST linux-5.18.tar.xz 129790264 BLAKE2B 
e2745a69eb70169e90505a9318a3993046eab3020496eecde7d8352ecda0eb71a25b21becf7ce93fc593507dce7d1cd61b94ddcdf82b3094d79c0d3d48508eeb
 SHA512 
dbbc9d1395898a498fa4947fceda1781344fa5d360240f753810daa4fa88e519833e2186c4e582a8f1836e6413e9e85f6563c7770523b704e8702d67622f98b5
-DIST linux-5.8.tar.xz 114459324 BLAKE2B 
7bd97f8fa4527840754434414c07283e89731dc8ebb1e95fa5bc1469a60af1122582c0d3b6e262e77882f023190068df3537bd8b65964b3caa820bb2c8e579c7
 SHA512 
45a53ecf351096ef6e98242cca4228b8da9b9139ecc6963695791ea6fb7a9484a4e1c19dcca7ce7cbfdfa49de0451b70973bb078f12bdae9cbaddbc3f8092556
 DIST patch-5.17.1.xz 15244 BLAKE2B 
f340b8a103754122153dd381fe210b18ba37b7262dae4fc7a1f99c5a62868c9bdb178e83865b35f00b82bd2d67ae127c440515d1740093825f7ec7fa4c4a490d
 SHA512 
fb9a28ce7c68daeca82586e7631dc0be00a1a8393b4cef4c659fc1f9dac6e1f941bd60671c0350d1dea9cb035f56d627f64a394a9acb00b2b5dea8a1d44c065f

diff --git a/dev-util/perf/metadata.xml b/dev-util/perf/metadata.xml
index 30edb4656ca7..795d980412ee 100644
--- a/dev-util/perf/metadata.xml
+++ b/dev-util/perf/metadata.xml
@@ -20,12 +20,6 @@
   
 Enable dev-util/babeltrace 
support
 Enable builtin clang and LLVM support
-
-  Enable C++ symbol name demangling, using libbfd from
-  sys-devel/binutils. When this flag is enabled, the
-  package will have to be rebuilt after every version bump of
-  binutils.
-
 
   Build documentation and man pages. With this USE flag disabled,
   the --help parameter for perf and its sub-tools will not be

diff --git a/dev-util/perf/perf-5.8.ebuild b/dev-util/perf/perf-5.8.ebuild
deleted file mode 100644
index 38ceee391a81..
--- a/dev-util/perf/perf-5.8.ebuild
+++ /dev/null
@@ -1,244 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7,8} )
-inherit bash-completion-r1 estack llvm toolchain-funcs prefix python-r1 
linux-info
-
-MY_PV="${PV/_/-}"
-MY_PV="${MY_PV/-pre/-git}"
-
-DESCRIPTION="Userland tools for Linux Performance Counters"
-HOMEPAGE="https://perf.wiki.kernel.org/";
-
-LINUX_V="${PV:0:1}.x"
-if [[ ${PV} == *_rc* ]] ; then
-   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
-   PATCH_VERSION=$(ver_cut 1-3)
-   LINUX_PATCH=patch-${PV//_/-}.xz
-   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
-   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
-elif [[ ${PV} == *.*.* ]] ; then
-   # stable-release series
-   LINUX_VER=$(ver_cut 1-2)
-   LINUX_PATCH=patch-${PV}.xz
-   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
-else
-   LINUX_VER=${PV}
-   SRC_URI=""
-fi
-
-LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
-SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux 
~x86-linux"
-IUSE="audit clang crypt debug +demangle +doc gtk java lzma numa perl python 
slang systemtap unwind zlib"
-# TODO babeltrace
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-RDEPEND="audit? ( sys-process/audit )
-   crypt? ( dev-libs/openssl:0= )
-   clang? (
-   >> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
-   tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
-   "${paths[@]/#/linux-${LINUX_VER}/}" ||

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-05-31 Thread Guilherme Amadio
commit: 7516c4570bde60614d7be4a229e016c71c90ceab
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Tue May 31 15:28:20 2022 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Tue May 31 15:28:20 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7516c457

dev-util/perf: restrict llvm version for perf 5.15, bug 836402

Closes: https://bugs.gentoo.org/836402
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/perf-5.15-r1.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-util/perf/perf-5.15-r1.ebuild 
b/dev-util/perf/perf-5.15-r1.ebuild
index e84ed5803f1a..21985387f161 100644
--- a/dev-util/perf/perf-5.15-r1.ebuild
+++ b/dev-util/perf/perf-5.15-r1.ebuild
@@ -54,8 +54,8 @@ RDEPEND="audit? ( sys-process/audit )
babeltrace? ( dev-util/babeltrace )
crypt? ( virtual/libcrypt:= )
clang? (
-   sys-devel/clang:=
-   sys-devel/llvm:=
+   

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/, dev-util/perf/files/

2022-05-23 Thread Guilherme Amadio
commit: 49777a8e13f9f33dcddb9e1f134168f53cc8dfd5
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Mon May 23 12:41:28 2022 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Mon May 23 15:16:25 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49777a8e

dev-util/perf: version bump to 5.18

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest|   1 +
 dev-util/perf/files/perf-5.18-clang.patch |  45 +
 dev-util/perf/perf-5.18.ebuild| 264 ++
 3 files changed, 310 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 9ace92f65995..87441f010c2a 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,4 +1,5 @@
 DIST linux-5.15.tar.xz 121913744 BLAKE2B 
3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b83a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83
 SHA512 
d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
 DIST linux-5.17.tar.xz 128399340 BLAKE2B 
82dc4a45cc25c781ac67aa6ed1e4c369544154960f41c4634d47621f381159687a227054976d078524cda28884d395a15f7542fe44ca74ce98ca6ff54a81d6d0
 SHA512 
89f0a7ca69d20a539d4b612a7028a30a5e98b402e4b6b88516f14237e5da4b626d7929eab8b40fccc90766e8f3bae87e9858a19077ffad20d8204acf18794f5b
+DIST linux-5.18.tar.xz 129790264 BLAKE2B 
e2745a69eb70169e90505a9318a3993046eab3020496eecde7d8352ecda0eb71a25b21becf7ce93fc593507dce7d1cd61b94ddcdf82b3094d79c0d3d48508eeb
 SHA512 
dbbc9d1395898a498fa4947fceda1781344fa5d360240f753810daa4fa88e519833e2186c4e582a8f1836e6413e9e85f6563c7770523b704e8702d67622f98b5
 DIST linux-5.8.tar.xz 114459324 BLAKE2B 
7bd97f8fa4527840754434414c07283e89731dc8ebb1e95fa5bc1469a60af1122582c0d3b6e262e77882f023190068df3537bd8b65964b3caa820bb2c8e579c7
 SHA512 
45a53ecf351096ef6e98242cca4228b8da9b9139ecc6963695791ea6fb7a9484a4e1c19dcca7ce7cbfdfa49de0451b70973bb078f12bdae9cbaddbc3f8092556
 DIST patch-5.17.1.xz 15244 BLAKE2B 
f340b8a103754122153dd381fe210b18ba37b7262dae4fc7a1f99c5a62868c9bdb178e83865b35f00b82bd2d67ae127c440515d1740093825f7ec7fa4c4a490d
 SHA512 
fb9a28ce7c68daeca82586e7631dc0be00a1a8393b4cef4c659fc1f9dac6e1f941bd60671c0350d1dea9cb035f56d627f64a394a9acb00b2b5dea8a1d44c065f

diff --git a/dev-util/perf/files/perf-5.18-clang.patch 
b/dev-util/perf/files/perf-5.18-clang.patch
new file mode 100644
index ..d1c9a48e6848
--- /dev/null
+++ b/dev-util/perf/files/perf-5.18-clang.patch
@@ -0,0 +1,45 @@
+
+Fix building against LLVM/Clang with monolithic libraries.
+
+--- a/tools/build/feature/Makefile
 b/tools/build/feature/Makefile
+@@ -299,7 +299,7 @@ $(OUTPUT)test-llvm.bin:
+   $(BUILDXX) -std=gnu++14 \
+   -I$(shell $(LLVM_CONFIG) --includedir)  \
+   -L$(shell $(LLVM_CONFIG) --libdir)  \
+-  $(shell $(LLVM_CONFIG) --libs Core BPF) \
++  $(shell $(LLVM_CONFIG) --libs)  \
+   $(shell $(LLVM_CONFIG) --system-libs)   \
+   > $(@:.bin=.make.output) 2>&1
+ 
+@@ -312,10 +312,7 @@ $(OUTPUT)test-clang.bin:
+   $(BUILDXX) -std=gnu++14 \
+   -I$(shell $(LLVM_CONFIG) --includedir)  \
+   -L$(shell $(LLVM_CONFIG) --libdir)  \
+-  -Wl,--start-group -lclangBasic -lclangDriver\
+--lclangFrontend -lclangEdit -lclangLex\
+--lclangAST -Wl,--end-group\
+-  $(shell $(LLVM_CONFIG) --libs Core option)  \
++  -lclang-cpp $(shell $(LLVM_CONFIG) --libs)  \
+   $(shell $(LLVM_CONFIG) --system-libs)   \
+   > $(@:.bin=.make.output) 2>&1
+ 
+--- a/tools/perf/Makefile.perf
 b/tools/perf/Makefile.perf
+@@ -417,14 +417,11 @@ EXTLIBS := $(call 
filter-out,$(EXCLUDE_EXTLIBS),$(EXTLIBS))
+ LIBS = -Wl,--whole-archive $(PERFLIBS) $(EXTRA_PERFLIBS) 
-Wl,--no-whole-archive -Wl,--start-group $(EXTLIBS) -Wl,--end-group
+ 
+ ifeq ($(USE_CLANG), 1)
+-  CLANGLIBS_LIST = AST Basic CodeGen Driver Frontend Lex Tooling Edit Sema 
Analysis Parse Serialization
+-  CLANGLIBS_NOEXT_LIST = $(foreach l,$(CLANGLIBS_LIST),$(shell $(LLVM_CONFIG) 
--libdir)/libclang$(l))
+-  LIBCLANG = $(foreach l,$(CLANGLIBS_NOEXT_LIST),$(wildcard $(l).a $(l).so))
+-  LIBS += -Wl,--start-group $(LIBCLANG) -Wl,--end-group
++  LIBS += -lclang-cpp
+ endif
+ 
+ ifeq ($(USE_LLVM), 1)
+-  LIBLLVM = $(shell $(LLVM_CONFIG) --libs all) $(shell $(LLVM_CONFIG) 
--system-libs)
++  LIBLLVM = $(shell $(LLVM_CONFIG) --libs) $(shell $(LLVM_CONFIG) 
--system-libs)
+   LIBS += -L$(shell $(LLVM_CONFIG) --libdir) $(LIBLLVM)
+ endif
+ 

diff --git a/dev-util/perf/perf-5.18.ebuild b/dev-util/perf/perf-5.18.ebuild
new file mode 100644
index ..a2e565

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-04-07 Thread Guilherme Amadio
commit: df6d26ee7c2780cab1e1eddb2f8f72dbd9d5cafc
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Thu Apr  7 12:36:52 2022 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Thu Apr  7 13:33:46 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df6d26ee

dev-util/perf: fix bug #837086

Closes: https://bugs.gentoo.org/837086
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/perf-5.17.1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/perf/perf-5.17.1.ebuild b/dev-util/perf/perf-5.17.1.ebuild
index 042f82100eba..a2e565d93fcb 100644
--- a/dev-util/perf/perf-5.17.1.ebuild
+++ b/dev-util/perf/perf-5.17.1.ebuild
@@ -83,8 +83,8 @@ S="${S_K}/tools/perf"
 CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
 
 QA_FLAGS_IGNORED=(
-   usr/bin/perf-read-vdso32 # not linked with anything except for libc
-   usr/libexec/perf-core/dlfilters/dlfilter-test-api-v0.so # not installed
+   'usr/bin/perf-read-vdso32' # not linked with anything except for libc
+   'usr/libexec/perf-core/dlfilters/.*' # plugins
 )
 
 pkg_pretend() {



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/, dev-util/perf/files/

2022-04-07 Thread Guilherme Amadio
commit: 877502fec0e8a02f99c27cb69e5fa8ab5bce543e
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Thu Apr  7 09:19:55 2022 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Thu Apr  7 10:13:02 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=877502fe

dev-util/perf: version bump to 5.17.1

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest  |   2 +
 dev-util/perf/files/perf-5.17.1-clang.patch |  61 +++
 dev-util/perf/perf-5.17.1.ebuild| 264 
 3 files changed, 327 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 2b586b7e4171..24040411703d 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,3 +1,5 @@
 DIST linux-5.12.tar.xz 118112412 BLAKE2B 
842d921b9a73d2aaade763dbd2ec67bdfe0275baa6d628b775f5c87574ad7dc86f0419afcd48c10c1235f4bffa16084243f2cf4556e6afcd391e975fe8ba530b
 SHA512 
be03b6fee1d1ea8087b09874d27c0a602c0b04fd90ad38b975bd2c8455a07e83c29b56814aaf1389e82305fae0e4c2d1701075a7f0a7295dd28149f967ec5b3d
 DIST linux-5.15.tar.xz 121913744 BLAKE2B 
3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b83a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83
 SHA512 
d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
+DIST linux-5.17.tar.xz 128399340 BLAKE2B 
82dc4a45cc25c781ac67aa6ed1e4c369544154960f41c4634d47621f381159687a227054976d078524cda28884d395a15f7542fe44ca74ce98ca6ff54a81d6d0
 SHA512 
89f0a7ca69d20a539d4b612a7028a30a5e98b402e4b6b88516f14237e5da4b626d7929eab8b40fccc90766e8f3bae87e9858a19077ffad20d8204acf18794f5b
 DIST linux-5.8.tar.xz 114459324 BLAKE2B 
7bd97f8fa4527840754434414c07283e89731dc8ebb1e95fa5bc1469a60af1122582c0d3b6e262e77882f023190068df3537bd8b65964b3caa820bb2c8e579c7
 SHA512 
45a53ecf351096ef6e98242cca4228b8da9b9139ecc6963695791ea6fb7a9484a4e1c19dcca7ce7cbfdfa49de0451b70973bb078f12bdae9cbaddbc3f8092556
+DIST patch-5.17.1.xz 15244 BLAKE2B 
f340b8a103754122153dd381fe210b18ba37b7262dae4fc7a1f99c5a62868c9bdb178e83865b35f00b82bd2d67ae127c440515d1740093825f7ec7fa4c4a490d
 SHA512 
fb9a28ce7c68daeca82586e7631dc0be00a1a8393b4cef4c659fc1f9dac6e1f941bd60671c0350d1dea9cb035f56d627f64a394a9acb00b2b5dea8a1d44c065f

diff --git a/dev-util/perf/files/perf-5.17.1-clang.patch 
b/dev-util/perf/files/perf-5.17.1-clang.patch
new file mode 100644
index ..73d4506146c0
--- /dev/null
+++ b/dev-util/perf/files/perf-5.17.1-clang.patch
@@ -0,0 +1,61 @@
+
+Fix building against LLVM/Clang with monolithic libraries and
+adjust header includes for Clang >= 14.
+
+--- a/tools/build/feature/Makefile
 b/tools/build/feature/Makefile
+@@ -299,7 +299,7 @@ $(OUTPUT)test-llvm.bin:
+   $(BUILDXX) -std=gnu++14 \
+   -I$(shell $(LLVM_CONFIG) --includedir)  \
+   -L$(shell $(LLVM_CONFIG) --libdir)  \
+-  $(shell $(LLVM_CONFIG) --libs Core BPF) \
++  $(shell $(LLVM_CONFIG) --libs)  \
+   $(shell $(LLVM_CONFIG) --system-libs)   \
+   > $(@:.bin=.make.output) 2>&1
+ 
+@@ -312,10 +312,7 @@ $(OUTPUT)test-clang.bin:
+   $(BUILDXX) -std=gnu++14 \
+   -I$(shell $(LLVM_CONFIG) --includedir)  \
+   -L$(shell $(LLVM_CONFIG) --libdir)  \
+-  -Wl,--start-group -lclangBasic -lclangDriver\
+--lclangFrontend -lclangEdit -lclangLex\
+--lclangAST -Wl,--end-group\
+-  $(shell $(LLVM_CONFIG) --libs Core option)  \
++  -lclang-cpp $(shell $(LLVM_CONFIG) --libs)  \
+   $(shell $(LLVM_CONFIG) --system-libs)   \
+   > $(@:.bin=.make.output) 2>&1
+ 
+--- a/tools/perf/Makefile.perf
 b/tools/perf/Makefile.perf
+@@ -417,14 +417,11 @@ EXTLIBS := $(call 
filter-out,$(EXCLUDE_EXTLIBS),$(EXTLIBS))
+ LIBS = -Wl,--whole-archive $(PERFLIBS) $(EXTRA_PERFLIBS) 
-Wl,--no-whole-archive -Wl,--start-group $(EXTLIBS) -Wl,--end-group
+ 
+ ifeq ($(USE_CLANG), 1)
+-  CLANGLIBS_LIST = AST Basic CodeGen Driver Frontend Lex Tooling Edit Sema 
Analysis Parse Serialization
+-  CLANGLIBS_NOEXT_LIST = $(foreach l,$(CLANGLIBS_LIST),$(shell $(LLVM_CONFIG) 
--libdir)/libclang$(l))
+-  LIBCLANG = $(foreach l,$(CLANGLIBS_NOEXT_LIST),$(wildcard $(l).a $(l).so))
+-  LIBS += -Wl,--start-group $(LIBCLANG) -Wl,--end-group
++  LIBS += -lclang-cpp
+ endif
+ 
+ ifeq ($(USE_LLVM), 1)
+-  LIBLLVM = $(shell $(LLVM_CONFIG) --libs all) $(shell $(LLVM_CONFIG) 
--system-libs)
++  LIBLLVM = $(shell $(LLVM_CONFIG) --libs) $(shell $(LLVM_CONFIG) 
--system-libs)
+   LIBS += -L$(shell $(LLVM_CONFIG) --libdir) $(LIBLLVM)
+ endif
+ 
+--- a/tools/perf/util/c++/clang.cpp
 b/tools/perf/util/c++/cla

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-04-07 Thread Guilherme Amadio
commit: 44088fd8ed7042585ab75621af4963088b233b3c
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Thu Apr  7 10:06:47 2022 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Thu Apr  7 10:13:02 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44088fd8

dev-util/perf: drop old 5.12 version

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest|   1 -
 dev-util/perf/perf-5.12-r1.ebuild | 267 --
 2 files changed, 268 deletions(-)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 24040411703d..9ace92f65995 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,4 +1,3 @@
-DIST linux-5.12.tar.xz 118112412 BLAKE2B 
842d921b9a73d2aaade763dbd2ec67bdfe0275baa6d628b775f5c87574ad7dc86f0419afcd48c10c1235f4bffa16084243f2cf4556e6afcd391e975fe8ba530b
 SHA512 
be03b6fee1d1ea8087b09874d27c0a602c0b04fd90ad38b975bd2c8455a07e83c29b56814aaf1389e82305fae0e4c2d1701075a7f0a7295dd28149f967ec5b3d
 DIST linux-5.15.tar.xz 121913744 BLAKE2B 
3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b83a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83
 SHA512 
d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
 DIST linux-5.17.tar.xz 128399340 BLAKE2B 
82dc4a45cc25c781ac67aa6ed1e4c369544154960f41c4634d47621f381159687a227054976d078524cda28884d395a15f7542fe44ca74ce98ca6ff54a81d6d0
 SHA512 
89f0a7ca69d20a539d4b612a7028a30a5e98b402e4b6b88516f14237e5da4b626d7929eab8b40fccc90766e8f3bae87e9858a19077ffad20d8204acf18794f5b
 DIST linux-5.8.tar.xz 114459324 BLAKE2B 
7bd97f8fa4527840754434414c07283e89731dc8ebb1e95fa5bc1469a60af1122582c0d3b6e262e77882f023190068df3537bd8b65964b3caa820bb2c8e579c7
 SHA512 
45a53ecf351096ef6e98242cca4228b8da9b9139ecc6963695791ea6fb7a9484a4e1c19dcca7ce7cbfdfa49de0451b70973bb078f12bdae9cbaddbc3f8092556

diff --git a/dev-util/perf/perf-5.12-r1.ebuild 
b/dev-util/perf/perf-5.12-r1.ebuild
deleted file mode 100644
index 3d3079203e9d..
--- a/dev-util/perf/perf-5.12-r1.ebuild
+++ /dev/null
@@ -1,267 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7..10} )
-inherit bash-completion-r1 estack llvm toolchain-funcs prefix python-r1 
linux-info
-
-DESCRIPTION="Userland tools for Linux Performance Counters"
-HOMEPAGE="https://perf.wiki.kernel.org/";
-
-LINUX_V="${PV:0:1}.x"
-if [[ ${PV} == *_rc* ]] ; then
-   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
-   PATCH_VERSION=$(ver_cut 1-3)
-   LINUX_PATCH=patch-${PV//_/-}.xz
-   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
-   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
-elif [[ ${PV} == *.*.* ]] ; then
-   # stable-release series
-   LINUX_VER=$(ver_cut 1-2)
-   LINUX_PATCH=patch-${PV}.xz
-   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
-else
-   LINUX_VER=${PV}
-   SRC_URI=""
-fi
-
-LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
-SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
-IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-BDEPEND="
-   ${LINUX_PATCH+dev-util/patchutils}
-   sys-devel/bison
-   sys-devel/flex
-   virtual/pkgconfig
-   doc? (
-   app-text/asciidoc
-   app-text/sgml-common
-   app-text/xmlto
-   sys-process/time
-   )
-   ${PYTHON_DEPS}
-"
-
-RDEPEND="audit? ( sys-process/audit )
-   babeltrace? ( dev-util/babeltrace )
-   crypt? ( virtual/libcrypt:= )
-   clang? (
-   =sys-kernel/linux-headers-5.10
-   java? ( virtual/jdk )
-"
-
-S_K="${WORKDIR}/linux-${LINUX_VER}"
-S="${S_K}/tools/perf"
-
-CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
-
-QA_FLAGS_IGNORED=(
-   usr/bin/perf-read-vdso32 # not linked with anything except for libc
-   usr/libexec/perf-core/dlfilters/dlfilter-test-api-v0.so # not installed
-)
-
-pkg_pretend() {
-   if ! use doc ; then
-   ewarn "Without the doc USE flag you won't get any documentation 
nor man pages."
-   ewarn "And without man pages, you won't get any --help output 
for perf and its"
-   ewarn "sub-tools."
-   fi
-}
-
-pkg_setup() {
-   use clang && LLVM_MAX_SLOT=9 llvm_pkg_setup
-   # We enable python unconditionally as libbpf always generates
-   # API headers using python script
-   python_setup
-}
-
-# src_unpack and src_prepare are copied to dev-u

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-04-07 Thread Guilherme Amadio
commit: 6ec9b43455867648f01682b5d50b5e9d2c321892
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Thu Apr  7 10:10:07 2022 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Thu Apr  7 10:13:03 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ec9b434

dev-util/perf: drop unused prefix eclass

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/perf-5.15-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.15-r1.ebuild 
b/dev-util/perf/perf-5.15-r1.ebuild
index d3d3cab43544..e84ed5803f1a 100644
--- a/dev-util/perf/perf-5.15-r1.ebuild
+++ b/dev-util/perf/perf-5.15-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 PYTHON_COMPAT=( python3_{7..10} )
-inherit bash-completion-r1 estack llvm toolchain-funcs prefix python-r1 
linux-info
+inherit bash-completion-r1 estack llvm toolchain-funcs python-r1 linux-info
 
 DESCRIPTION="Userland tools for Linux Performance Counters"
 HOMEPAGE="https://perf.wiki.kernel.org/";



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-01-03 Thread Sam James
commit: 52385481bc4b8205f5573d39c02d0e521d635fcb
Author: Sam James  gentoo  org>
AuthorDate: Mon Jan  3 09:19:28 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jan  3 09:19:28 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52385481

dev-util/perf: Stabilize 5.15-r1 arm64, #829946

Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-5.15-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.15-r1.ebuild 
b/dev-util/perf/perf-5.15-r1.ebuild
index f33b5cf08d77..d3d3cab43544 100644
--- a/dev-util/perf/perf-5.15-r1.ebuild
+++ b/dev-util/perf/perf-5.15-r1.ebuild
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 arm ~arm64 ~mips ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 arm arm64 ~mips ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-01-02 Thread Sam James
commit: 092e194b155177ed93f809461fb74a0a76bfda43
Author: Sam James  gentoo  org>
AuthorDate: Sun Jan  2 09:58:38 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jan  2 09:58:38 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=092e194b

dev-util/perf: Stabilize 5.15-r1 x86, #829946

Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-5.15-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.15-r1.ebuild 
b/dev-util/perf/perf-5.15-r1.ebuild
index c431cd8b3003..f33b5cf08d77 100644
--- a/dev-util/perf/perf-5.15-r1.ebuild
+++ b/dev-util/perf/perf-5.15-r1.ebuild
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 arm ~arm64 ~mips ppc ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 arm ~arm64 ~mips ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-01-01 Thread Sam James
commit: 9b29cd9caa75bc87db2749dabd38df7b0eded621
Author: Sam James  gentoo  org>
AuthorDate: Sun Jan  2 05:51:30 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jan  2 05:51:30 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b29cd9c

dev-util/perf: Stabilize 5.15-r1 amd64, #829946

Signed-off-by: Sam James  gentoo.org>

 dev-util/perf/perf-5.15-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.15-r1.ebuild 
b/dev-util/perf/perf-5.15-r1.ebuild
index 55b365bca3b2..c431cd8b3003 100644
--- a/dev-util/perf/perf-5.15-r1.ebuild
+++ b/dev-util/perf/perf-5.15-r1.ebuild
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 arm ~arm64 ~mips ppc ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="amd64 arm ~arm64 ~mips ppc ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-01-01 Thread Arthur Zamarin
commit: 03374399341cd650fe78b27227ee8c980649af1c
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Jan  1 15:14:54 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Jan  1 15:15:05 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03374399

dev-util/perf: Stabilize 5.15-r1 ppc, #829946

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-util/perf/perf-5.15-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.15-r1.ebuild 
b/dev-util/perf/perf-5.15-r1.ebuild
index 64f490855235..55b365bca3b2 100644
--- a/dev-util/perf/perf-5.15-r1.ebuild
+++ b/dev-util/perf/perf-5.15-r1.ebuild
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 arm ~arm64 ~mips ~ppc ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="~amd64 arm ~arm64 ~mips ppc ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-01-01 Thread Arthur Zamarin
commit: b835b301d72d9592931db3f2804b168ac8c0f097
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Jan  1 15:14:47 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Jan  1 15:15:05 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b835b301

dev-util/perf: Stabilize 5.15-r1 ppc64, #829946

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-util/perf/perf-5.15-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.15-r1.ebuild 
b/dev-util/perf/perf-5.15-r1.ebuild
index 930f2a34ebb6..64f490855235 100644
--- a/dev-util/perf/perf-5.15-r1.ebuild
+++ b/dev-util/perf/perf-5.15-r1.ebuild
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="~amd64 arm ~arm64 ~mips ~ppc ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2022-01-01 Thread Arthur Zamarin
commit: 46d0a4c6bf01832d77b74ccfb4643ed7dcc7200a
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Jan  1 15:14:45 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Jan  1 15:15:04 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46d0a4c6

dev-util/perf: Stabilize 5.15-r1 arm, #829946

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-util/perf/perf-5.15-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/perf/perf-5.15-r1.ebuild 
b/dev-util/perf/perf-5.15-r1.ebuild
index d676dd953495..930f2a34ebb6 100644
--- a/dev-util/perf/perf-5.15-r1.ebuild
+++ b/dev-util/perf/perf-5.15-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+KEYWORDS="~amd64 arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
 IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2021-11-11 Thread Guilherme Amadio
commit: 6ede713804d35a8de4590ac3459a7c8f2c0ee4fd
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Thu Nov 11 08:51:20 2021 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Thu Nov 11 08:51:41 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ede7138

dev-util/perf: drop hprefixify for removed script

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/perf-5.15-r1.ebuild | 5 -
 1 file changed, 5 deletions(-)

diff --git a/dev-util/perf/perf-5.15-r1.ebuild 
b/dev-util/perf/perf-5.15-r1.ebuild
index be6ab29e81f..d676dd95349 100644
--- a/dev-util/perf/perf-5.15-r1.ebuild
+++ b/dev-util/perf/perf-5.15-r1.ebuild
@@ -162,11 +162,6 @@ src_prepare() {
 
# The code likes to compile local assembly files which lack ELF 
markings.
find -name '*.S' -exec sed -i '$a.section .note.GNU-stack,"",%progbits' 
{} +
-
-   # Fix shebang to use python from prefix
-   if [[ -n "${EPREFIX}" ]]; then
-   hprefixify ${S_K}/scripts/bpf_helpers_doc.py
-   fi
 }
 
 puse() { usex $1 "" no; }



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/files/, dev-util/perf/

2021-11-11 Thread Guilherme Amadio
commit: 322b4e15ef689afbf118da25f4788070d25d4a75
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Thu Nov 11 08:49:02 2021 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Thu Nov 11 08:51:41 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=322b4e15

dev-util/perf: support LLVM >= 10, bug #735752

Closes: https://bugs.gentoo.org/735752
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/files/perf-5.15-clang.patch  | 231 +
 .../perf/{perf-5.15.ebuild => perf-5.15-r1.ebuild} |  16 +-
 2 files changed, 241 insertions(+), 6 deletions(-)

diff --git a/dev-util/perf/files/perf-5.15-clang.patch 
b/dev-util/perf/files/perf-5.15-clang.patch
new file mode 100644
index 000..5ea0c75f27f
--- /dev/null
+++ b/dev-util/perf/files/perf-5.15-clang.patch
@@ -0,0 +1,231 @@
+From e1f1cbfe812e4a019034105ab5e81fd9f0742353 Mon Sep 17 00:00:00 2001
+From: Ian Rogers 
+Date: Mon, 11 Oct 2021 19:13:20 -0700
+Subject: [PATCH 1/3] tools: Bump minimum LLVM C++ std to GNU++14
+
+LLVM 9 (current release is LLVM 13) moved the minimum C++ version to
+GNU++14. Bump the version numbers in the feature test and perf build.
+
+Reviewed-by: Fangrui Song 
+Signed-off-by: Ian Rogers 
+Cc: Alexander Shishkin 
+Cc: Daniel Borkmann 
+Cc: Ingo Molnar 
+Cc: Jiri Olsa 
+Cc: Leo Yan 
+Cc: Mark Rutland 
+Cc: Michael Petlan 
+Cc: Namhyung Kim 
+Cc: Nathan Chancellor 
+Cc: Nick Desaulniers 
+Cc: Peter Zijlstra 
+Cc: Sedat Dilek 
+Cc: l...@lists.linux.dev
+Link: https://lore.kernel.org/r/20211012021321.291635-1-irog...@google.com
+Signed-off-by: Arnaldo Carvalho de Melo 
+---
+ tools/build/feature/Makefile | 6 +++---
+ tools/perf/Makefile.config   | 2 +-
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile
+index eff55d287db1..9756e589e4ae 100644
+--- a/tools/build/feature/Makefile
 b/tools/build/feature/Makefile
+@@ -296,7 +296,7 @@ $(OUTPUT)test-jvmti-cmlr.bin:
+   $(BUILD)
+ 
+ $(OUTPUT)test-llvm.bin:
+-  $(BUILDXX) -std=gnu++11 \
++  $(BUILDXX) -std=gnu++14 \
+   -I$(shell $(LLVM_CONFIG) --includedir)  \
+   -L$(shell $(LLVM_CONFIG) --libdir)  \
+   $(shell $(LLVM_CONFIG) --libs Core BPF) \
+@@ -304,12 +304,12 @@ $(OUTPUT)test-llvm.bin:
+   > $(@:.bin=.make.output) 2>&1
+ 
+ $(OUTPUT)test-llvm-version.bin:
+-  $(BUILDXX) -std=gnu++11 \
++  $(BUILDXX) -std=gnu++14 \
+   -I$(shell $(LLVM_CONFIG) --includedir)  \
+   > $(@:.bin=.make.output) 2>&1
+ 
+ $(OUTPUT)test-clang.bin:
+-  $(BUILDXX) -std=gnu++11 \
++  $(BUILDXX) -std=gnu++14 \
+   -I$(shell $(LLVM_CONFIG) --includedir)  \
+   -L$(shell $(LLVM_CONFIG) --libdir)  \
+   -Wl,--start-group -lclangBasic -lclangDriver\
+diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
+index 14e3e8d702a0..ddbe86defe39 100644
+--- a/tools/perf/Makefile.config
 b/tools/perf/Makefile.config
+@@ -285,7 +285,7 @@ CORE_CFLAGS += -Wall
+ CORE_CFLAGS += -Wextra
+ CORE_CFLAGS += -std=gnu99
+ 
+-CXXFLAGS += -std=gnu++11 -fno-exceptions -fno-rtti
++CXXFLAGS += -std=gnu++14 -fno-exceptions -fno-rtti
+ CXXFLAGS += -Wall
+ CXXFLAGS += -fno-omit-frame-pointer
+ CXXFLAGS += -ggdb3
+-- 
+2.33.1
+
+
+From 3e5c11995e04a9e3351330c34c4c802ce50df46c Mon Sep 17 00:00:00 2001
+From: Ian Rogers 
+Date: Mon, 11 Oct 2021 19:13:21 -0700
+Subject: [PATCH 2/3] perf clang: Fixes for more recent LLVM/clang
+
+The parameters to two functions and the location of a variable have
+changed in more recent LLVM/clang releases.
+
+Remove the unneecessary -fmessage-length and -ferror-limit flags, the
+former causes failures like:
+
+  58: builtin clang support   :
+  58.1: builtin clang compile C source to IR  :
+  --- start ---
+  test child forked, pid 279307
+  error: unknown argument: '-fmessage-length'
+  1 error generated.
+  test child finished with -1
+
+Tested with LLVM 6, 8, 9, 10 and 11.
+
+Reviewed-by: Fangrui Song 
+Signed-off-by: Ian Rogers 
+Cc: Alexander Shishkin 
+Cc: Daniel Borkmann 
+Cc: Ingo Molnar 
+Cc: Jiri Olsa 
+Cc: Leo Yan 
+Cc: Mark Rutland 
+Cc: Michael Petlan 
+Cc: Namhyung Kim 
+Cc: Nathan Chancellor 
+Cc: Nick Desaulniers 
+Cc: Peter Zijlstra 
+Cc: Sedat Dilek ,
+Cc: l...@lists.linux.dev
+Signed-off-by: Arnaldo Carvalho de Melo 
+---
+ tools/perf/util/c++/clang.cpp | 21 +
+ 1 file changed, 13 insertions(+), 8 deletions(-)
+
+diff --git a/tools/perf/util/c++/clang.cpp b/tools/perf/util/c++/clang.cpp
+index c8885dfa3667..df7b18fb6b6e

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2021-11-10 Thread Guilherme Amadio
commit: 905d7080083f71c5b942d579757fbb190129b9d0
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Wed Nov 10 15:13:16 2021 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Wed Nov 10 15:14:30 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=905d7080

dev-util/perf: fix bug 822873

Closes: https://bugs.gentoo.org/822873
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/perf-5.12-r1.ebuild | 3 +--
 dev-util/perf/perf-5.15.ebuild| 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dev-util/perf/perf-5.12-r1.ebuild 
b/dev-util/perf/perf-5.12-r1.ebuild
index 97803daa0f4..3d3079203e9 100644
--- a/dev-util/perf/perf-5.12-r1.ebuild
+++ b/dev-util/perf/perf-5.12-r1.ebuild
@@ -227,7 +227,7 @@ src_compile() {
popd
fi
perf_make -f Makefile.perf
-   use doc && perf_make -C Documentation man html
+   use doc && perf_make -C Documentation man
 }
 
 src_test() {
@@ -262,7 +262,6 @@ src_install() {
docompress -x /usr/share/doc/${PF}/tips.txt
 
if use doc ; then
-   HTML_DOCS="Documentation/*.html" einstalldocs
doman Documentation/*.1
fi
 }

diff --git a/dev-util/perf/perf-5.15.ebuild b/dev-util/perf/perf-5.15.ebuild
index 97803daa0f4..3d3079203e9 100644
--- a/dev-util/perf/perf-5.15.ebuild
+++ b/dev-util/perf/perf-5.15.ebuild
@@ -227,7 +227,7 @@ src_compile() {
popd
fi
perf_make -f Makefile.perf
-   use doc && perf_make -C Documentation man html
+   use doc && perf_make -C Documentation man
 }
 
 src_test() {
@@ -262,7 +262,6 @@ src_install() {
docompress -x /usr/share/doc/${PF}/tips.txt
 
if use doc ; then
-   HTML_DOCS="Documentation/*.html" einstalldocs
doman Documentation/*.1
fi
 }



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2021-11-10 Thread Guilherme Amadio
commit: 942b887b65eb969ff3327ce3ad7f7cae49d5e3a4
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Wed Nov 10 11:13:08 2021 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Wed Nov 10 12:31:05 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=942b887b

dev-util/perf: drop old

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest|   3 -
 dev-util/perf/perf-5.10.16.ebuild | 250 
 dev-util/perf/perf-5.11.ebuild| 258 --
 3 files changed, 511 deletions(-)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 76ced672366..2b586b7e417 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,6 +1,3 @@
-DIST linux-5.10.tar.xz 116606704 BLAKE2B 
b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1
 SHA512 
95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
-DIST linux-5.11.tar.xz 117619104 BLAKE2B 
81300c27bd5476387a83123aaeb4163c73eb61e9245806c23660cb5e6a4fa88ffc9def027031335fa0270fc4080506cd415990014364e3a98b9d2e8c58a29524
 SHA512 
a567ec133018bb5ec00c60281479b466c26e02137a93a9c690e83997947df02b6fd94e76e8df748f6d70ceb58a19bacc3b1467de10b7a1fad2763db32b3f1330
 DIST linux-5.12.tar.xz 118112412 BLAKE2B 
842d921b9a73d2aaade763dbd2ec67bdfe0275baa6d628b775f5c87574ad7dc86f0419afcd48c10c1235f4bffa16084243f2cf4556e6afcd391e975fe8ba530b
 SHA512 
be03b6fee1d1ea8087b09874d27c0a602c0b04fd90ad38b975bd2c8455a07e83c29b56814aaf1389e82305fae0e4c2d1701075a7f0a7295dd28149f967ec5b3d
 DIST linux-5.15.tar.xz 121913744 BLAKE2B 
3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b83a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83
 SHA512 
d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
 DIST linux-5.8.tar.xz 114459324 BLAKE2B 
7bd97f8fa4527840754434414c07283e89731dc8ebb1e95fa5bc1469a60af1122582c0d3b6e262e77882f023190068df3537bd8b65964b3caa820bb2c8e579c7
 SHA512 
45a53ecf351096ef6e98242cca4228b8da9b9139ecc6963695791ea6fb7a9484a4e1c19dcca7ce7cbfdfa49de0451b70973bb078f12bdae9cbaddbc3f8092556
-DIST patch-5.10.16.xz 498880 BLAKE2B 
14061b505285f24938fb955ccc7f9fbd78ccc0b1026bffb17a89fdad08ea54bfee7bbb841123d9af4d0720a960a27c649c39852af7e2be8a286af926c7bce9c0
 SHA512 
be9cfe1ae6697956ca7476cedc212a8cbd9da2c3c72096a89afaaf73c5b6655fd04d458f96c472f680c5513c0ea3e4449c4092a958425b6040f0c7774453cd2f

diff --git a/dev-util/perf/perf-5.10.16.ebuild 
b/dev-util/perf/perf-5.10.16.ebuild
deleted file mode 100644
index 4aee115ceb6..000
--- a/dev-util/perf/perf-5.10.16.ebuild
+++ /dev/null
@@ -1,250 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7,8,9} )
-inherit bash-completion-r1 estack llvm toolchain-funcs prefix python-r1 
linux-info
-
-DESCRIPTION="Userland tools for Linux Performance Counters"
-HOMEPAGE="https://perf.wiki.kernel.org/";
-
-LINUX_V="${PV:0:1}.x"
-if [[ ${PV} == *_rc* ]] ; then
-   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
-   PATCH_VERSION=$(ver_cut 1-3)
-   LINUX_PATCH=patch-${PV//_/-}.xz
-   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
-   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
-elif [[ ${PV} == *.*.* ]] ; then
-   # stable-release series
-   LINUX_VER=$(ver_cut 1-2)
-   LINUX_PATCH=patch-${PV}.xz
-   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
-else
-   LINUX_VER=${PV}
-   SRC_URI=""
-fi
-
-LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
-SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="audit clang crypt debug +demangle +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib"
-# TODO babeltrace
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-BDEPEND="
-   ${LINUX_PATCH+dev-util/patchutils}
-   sys-devel/bison
-   sys-devel/flex
-   doc? (
-   app-text/asciidoc
-   app-text/sgml-common
-   app-text/xmlto
-   sys-process/time
-   )"
-
-RDEPEND="audit? ( sys-process/audit )
-   crypt? ( dev-libs/openssl:0= )
-   clang? (
-   >> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
-   tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
-   "${paths[@]/#/linux-${LINUX_VER}/}" || die
-
-   if [[ -n ${LINUX_PATCH} ]] ; then
-   eshopts_push -o noglob
-   ebegin "Filtering part

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2021-11-10 Thread Guilherme Amadio
commit: 810ec0ab763430706ba3fd0cd750cac9be90193e
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Wed Nov 10 10:45:04 2021 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Wed Nov 10 12:31:05 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=810ec0ab

dev-util/perf: version bump to 5.15

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/Manifest |   1 +
 dev-util/perf/perf-5.15.ebuild | 268 +
 2 files changed, 269 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index 58089a339b1..76ced672366 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,5 +1,6 @@
 DIST linux-5.10.tar.xz 116606704 BLAKE2B 
b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1
 SHA512 
95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
 DIST linux-5.11.tar.xz 117619104 BLAKE2B 
81300c27bd5476387a83123aaeb4163c73eb61e9245806c23660cb5e6a4fa88ffc9def027031335fa0270fc4080506cd415990014364e3a98b9d2e8c58a29524
 SHA512 
a567ec133018bb5ec00c60281479b466c26e02137a93a9c690e83997947df02b6fd94e76e8df748f6d70ceb58a19bacc3b1467de10b7a1fad2763db32b3f1330
 DIST linux-5.12.tar.xz 118112412 BLAKE2B 
842d921b9a73d2aaade763dbd2ec67bdfe0275baa6d628b775f5c87574ad7dc86f0419afcd48c10c1235f4bffa16084243f2cf4556e6afcd391e975fe8ba530b
 SHA512 
be03b6fee1d1ea8087b09874d27c0a602c0b04fd90ad38b975bd2c8455a07e83c29b56814aaf1389e82305fae0e4c2d1701075a7f0a7295dd28149f967ec5b3d
+DIST linux-5.15.tar.xz 121913744 BLAKE2B 
3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b83a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83
 SHA512 
d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
 DIST linux-5.8.tar.xz 114459324 BLAKE2B 
7bd97f8fa4527840754434414c07283e89731dc8ebb1e95fa5bc1469a60af1122582c0d3b6e262e77882f023190068df3537bd8b65964b3caa820bb2c8e579c7
 SHA512 
45a53ecf351096ef6e98242cca4228b8da9b9139ecc6963695791ea6fb7a9484a4e1c19dcca7ce7cbfdfa49de0451b70973bb078f12bdae9cbaddbc3f8092556
 DIST patch-5.10.16.xz 498880 BLAKE2B 
14061b505285f24938fb955ccc7f9fbd78ccc0b1026bffb17a89fdad08ea54bfee7bbb841123d9af4d0720a960a27c649c39852af7e2be8a286af926c7bce9c0
 SHA512 
be9cfe1ae6697956ca7476cedc212a8cbd9da2c3c72096a89afaaf73c5b6655fd04d458f96c472f680c5513c0ea3e4449c4092a958425b6040f0c7774453cd2f

diff --git a/dev-util/perf/perf-5.15.ebuild b/dev-util/perf/perf-5.15.ebuild
new file mode 100644
index 000..97803daa0f4
--- /dev/null
+++ b/dev-util/perf/perf-5.15.ebuild
@@ -0,0 +1,268 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..10} )
+inherit bash-completion-r1 estack llvm toolchain-funcs prefix python-r1 
linux-info
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/";
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
+   PATCH_VERSION=$(ver_cut 1-3)
+   LINUX_PATCH=patch-${PV//_/-}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
+elif [[ ${PV} == *.*.* ]] ; then
+   # stable-release series
+   LINUX_VER=$(ver_cut 1-2)
+   LINUX_PATCH=patch-${PV}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
+else
+   LINUX_VER=${PV}
+   SRC_URI=""
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
+IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+BDEPEND="
+   ${LINUX_PATCH+dev-util/patchutils}
+   sys-devel/bison
+   sys-devel/flex
+   virtual/pkgconfig
+   doc? (
+   app-text/asciidoc
+   app-text/sgml-common
+   app-text/xmlto
+   sys-process/time
+   )
+   ${PYTHON_DEPS}
+"
+
+RDEPEND="audit? ( sys-process/audit )
+   babeltrace? ( dev-util/babeltrace )
+   crypt? ( virtual/libcrypt:= )
+   clang? (
+   =sys-kernel/linux-headers-5.10
+   java? ( virtual/jdk )
+"
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
+
+QA_FLAGS_IGNORED=(
+   usr/bin/perf-read-vdso32 # not linked with anything except for libc
+   usr/libexec/perf-core/dlfi

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2021-11-10 Thread Guilherme Amadio
commit: 3a5ad8fb6c6ac1f39b95c936e5824d792e5104df
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Wed Nov 10 12:19:05 2021 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Wed Nov 10 12:31:05 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a5ad8fb

dev-util/perf: fix bugs 727096, 790836, 795147, and 821175

Closes: https://bugs.gentoo.org/727096
Closes: https://bugs.gentoo.org/790836
Closes: https://bugs.gentoo.org/795147
Closes: https://bugs.gentoo.org/821175
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 .../perf/{perf-5.12.ebuild => perf-5.12-r1.ebuild} | 28 ++
 1 file changed, 18 insertions(+), 10 deletions(-)

diff --git a/dev-util/perf/perf-5.12.ebuild b/dev-util/perf/perf-5.12-r1.ebuild
similarity index 91%
rename from dev-util/perf/perf-5.12.ebuild
rename to dev-util/perf/perf-5.12-r1.ebuild
index 74ab0c5a493..97803daa0f4 100644
--- a/dev-util/perf/perf-5.12.ebuild
+++ b/dev-util/perf/perf-5.12-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_COMPAT=( python3_{7..10} )
 inherit bash-completion-r1 estack llvm toolchain-funcs prefix python-r1 
linux-info
 
 DESCRIPTION="Userland tools for Linux Performance Counters"
@@ -32,8 +32,8 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
-IUSE="audit babeltrace clang crypt debug +demangle +doc gtk java libpfm lzma 
numa perl python slang systemtap unwind zlib"
-# TODO babeltrace
+IUSE="audit babeltrace clang crypt debug +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib zstd"
+
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 BDEPEND="
@@ -52,12 +52,11 @@ BDEPEND="
 
 RDEPEND="audit? ( sys-process/audit )
babeltrace? ( dev-util/babeltrace )
-   crypt? ( dev-libs/openssl:0= )
+   crypt? ( virtual/libcrypt:= )
clang? (
=sys-kernel/linux-headers-4.19
+   >=sys-kernel/linux-headers-5.10
java? ( virtual/jdk )
 "
 
@@ -81,6 +82,11 @@ S="${S_K}/tools/perf"
 
 CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
 
+QA_FLAGS_IGNORED=(
+   usr/bin/perf-read-vdso32 # not linked with anything except for libc
+   usr/libexec/perf-core/dlfilters/dlfilter-test-api-v0.so # not installed
+)
+
 pkg_pretend() {
if ! use doc ; then
ewarn "Without the doc USE flag you won't get any documentation 
nor man pages."
@@ -178,6 +184,7 @@ perf_make() {
prefix="${EPREFIX}/usr" bindir_relative="bin" \
tipdir="share/doc/${PF}" \
EXTRA_CFLAGS="${CFLAGS}" \
+   EXTRA_LDFLAGS="${LDFLAGS}" \
ARCH="${arch}" \
JDIR="${java_dir}" \
LIBCLANGLLVM=$(usex clang 1 "") \
@@ -185,7 +192,7 @@ perf_make() {
NO_AUXTRACE="" \
NO_BACKTRACE="" \
NO_CORESIGHT=1 \
-   NO_DEMANGLE=$(puse demangle) \
+   NO_DEMANGLE= \
GTK2=$(usex gtk 1 "") \
feature-gtk2-infobar=$(usex gtk 1 "") \
NO_JVMTI=$(puse java) \
@@ -200,10 +207,11 @@ perf_make() {
NO_LIBPERL=$(puse perl) \
NO_LIBPYTHON=$(puse python) \
NO_LIBUNWIND=$(puse unwind) \
+   NO_LIBZSTD=$(puse zstd) \
NO_SDT=$(puse systemtap) \
NO_SLANG=$(puse slang) \
NO_LZMA=$(puse lzma) \
-   NO_ZLIB= \
+   NO_ZLIB=$(puse zlib) \
WERROR=0 \
LIBDIR="/usr/libexec/perf-core" \
libdir="${EPREFIX}/usr/$(get_libdir)" \
@@ -219,7 +227,7 @@ src_compile() {
popd
fi
perf_make -f Makefile.perf
-   use doc && perf_make -C Documentation
+   use doc && perf_make -C Documentation man html
 }
 
 src_test() {



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2021-09-13 Thread Jakov Smolić
commit: f34d890bb88e814c2dbff0edc6f9d37f88253107
Author: Jakov Smolić  gentoo  org>
AuthorDate: Mon Sep 13 17:35:19 2021 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Mon Sep 13 17:46:56 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f34d890b

dev-util/perf: Add note re src_{unpack,prepare} in bpftool

Signed-off-by: Jakov Smolić  gentoo.org>

 dev-util/perf/perf-5.12.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev-util/perf/perf-5.12.ebuild b/dev-util/perf/perf-5.12.ebuild
index 2f8dc2e665c..74ab0c5a493 100644
--- a/dev-util/perf/perf-5.12.ebuild
+++ b/dev-util/perf/perf-5.12.ebuild
@@ -96,6 +96,8 @@ pkg_setup() {
python_setup
 }
 
+# src_unpack and src_prepare are copied to dev-util/bpftool since
+# it's building from the same tarball, please keep it in sync with bpftool
 src_unpack() {
local paths=(
tools/arch tools/build tools/include tools/lib tools/perf 
tools/scripts



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2021-08-04 Thread Yixun Lan
commit: 310723717fdb3131ac2c9a05fc171b5b2e4b58a6
Author: Ye Cao  rioslab  org>
AuthorDate: Sat Jul 31 13:43:28 2021 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Thu Aug  5 02:17:07 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31072371

dev-util/perf: add ~riscv keyword

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Ye Cao  rioslab.org>
Signed-off-by: Yixun Lan  gentoo.org>

 dev-util/perf/perf-5.12.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/perf/perf-5.12.ebuild b/dev-util/perf/perf-5.12.ebuild
index 795634dc8cd..2f8dc2e665c 100644
--- a/dev-util/perf/perf-5.12.ebuild
+++ b/dev-util/perf/perf-5.12.ebuild
@@ -31,7 +31,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~x86-linux"
 IUSE="audit babeltrace clang crypt debug +demangle +doc gtk java libpfm lzma 
numa perl python slang systemtap unwind zlib"
 # TODO babeltrace
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2021-05-26 Thread Mikle Kolyada
commit: 949d909dc561d47e5343aef0f029c7b1f50fdf88
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Thu May 27 06:57:32 2021 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Thu May 27 06:58:41 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=949d909d

dev-util/perf: restore perf-5.10.x

Needed for 5.10 kernel series

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Mikle Kolyada  gentoo.org>

 dev-util/perf/Manifest|   2 +
 dev-util/perf/perf-5.10.16.ebuild | 250 ++
 2 files changed, 252 insertions(+)

diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
index c1956dcd550..58089a339b1 100644
--- a/dev-util/perf/Manifest
+++ b/dev-util/perf/Manifest
@@ -1,3 +1,5 @@
+DIST linux-5.10.tar.xz 116606704 BLAKE2B 
b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1
 SHA512 
95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
 DIST linux-5.11.tar.xz 117619104 BLAKE2B 
81300c27bd5476387a83123aaeb4163c73eb61e9245806c23660cb5e6a4fa88ffc9def027031335fa0270fc4080506cd415990014364e3a98b9d2e8c58a29524
 SHA512 
a567ec133018bb5ec00c60281479b466c26e02137a93a9c690e83997947df02b6fd94e76e8df748f6d70ceb58a19bacc3b1467de10b7a1fad2763db32b3f1330
 DIST linux-5.12.tar.xz 118112412 BLAKE2B 
842d921b9a73d2aaade763dbd2ec67bdfe0275baa6d628b775f5c87574ad7dc86f0419afcd48c10c1235f4bffa16084243f2cf4556e6afcd391e975fe8ba530b
 SHA512 
be03b6fee1d1ea8087b09874d27c0a602c0b04fd90ad38b975bd2c8455a07e83c29b56814aaf1389e82305fae0e4c2d1701075a7f0a7295dd28149f967ec5b3d
 DIST linux-5.8.tar.xz 114459324 BLAKE2B 
7bd97f8fa4527840754434414c07283e89731dc8ebb1e95fa5bc1469a60af1122582c0d3b6e262e77882f023190068df3537bd8b65964b3caa820bb2c8e579c7
 SHA512 
45a53ecf351096ef6e98242cca4228b8da9b9139ecc6963695791ea6fb7a9484a4e1c19dcca7ce7cbfdfa49de0451b70973bb078f12bdae9cbaddbc3f8092556
+DIST patch-5.10.16.xz 498880 BLAKE2B 
14061b505285f24938fb955ccc7f9fbd78ccc0b1026bffb17a89fdad08ea54bfee7bbb841123d9af4d0720a960a27c649c39852af7e2be8a286af926c7bce9c0
 SHA512 
be9cfe1ae6697956ca7476cedc212a8cbd9da2c3c72096a89afaaf73c5b6655fd04d458f96c472f680c5513c0ea3e4449c4092a958425b6040f0c7774453cd2f

diff --git a/dev-util/perf/perf-5.10.16.ebuild 
b/dev-util/perf/perf-5.10.16.ebuild
new file mode 100644
index 000..4aee115ceb6
--- /dev/null
+++ b/dev-util/perf/perf-5.10.16.ebuild
@@ -0,0 +1,250 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8,9} )
+inherit bash-completion-r1 estack llvm toolchain-funcs prefix python-r1 
linux-info
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/";
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+   LINUX_VER=$(ver_cut 1-2).$(($(ver_cut 3)-1))
+   PATCH_VERSION=$(ver_cut 1-3)
+   LINUX_PATCH=patch-${PV//_/-}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+   
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}";
+elif [[ ${PV} == *.*.* ]] ; then
+   # stable-release series
+   LINUX_VER=$(ver_cut 1-2)
+   LINUX_PATCH=patch-${PV}.xz
+   
SRC_URI="https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_PATCH}";
+else
+   LINUX_VER=${PV}
+   SRC_URI=""
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="audit clang crypt debug +demangle +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib"
+# TODO babeltrace
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+BDEPEND="
+   ${LINUX_PATCH+dev-util/patchutils}
+   sys-devel/bison
+   sys-devel/flex
+   doc? (
+   app-text/asciidoc
+   app-text/sgml-common
+   app-text/xmlto
+   sys-process/time
+   )"
+
+RDEPEND="audit? ( sys-process/audit )
+   crypt? ( dev-libs/openssl:0= )
+   clang? (
+   >> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
+   tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
+   "${paths[@]/#/linux-${LINUX_VER}/}" || die
+
+   if [[ -n ${LINUX_PATCH} ]] ; then
+   eshopts_push -o noglob
+   ebegin "Filtering partial source patch"
+   filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} 
\
+   > ${P}.patch
+   eend $? || die "filterdiff failed"
+   eshopts_pop
+   fi
+
+   local a
+   for a in ${A}; do
+   [[ ${a} == ${LINUX_SOURCES} ]] && continue
+   [[ ${a} == 

[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2021-05-22 Thread Mikle Kolyada
commit: 1a4f789579c89b68d9219dd5a5a1f8fd79fff5b1
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sat May 22 18:55:19 2021 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sat May 22 18:55:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a4f7895

dev-util/perf: co-maintain

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Mikle Kolyada  gentoo.org>

 dev-util/perf/metadata.xml | 4 
 1 file changed, 4 insertions(+)

diff --git a/dev-util/perf/metadata.xml b/dev-util/perf/metadata.xml
index 18c5fbdc755..f9311842cd8 100644
--- a/dev-util/perf/metadata.xml
+++ b/dev-util/perf/metadata.xml
@@ -12,6 +12,10 @@
 ama...@gentoo.org
 Guilherme Amadio
   
+  
+zlog...@gentoo.org
+Mikle Kolyada
+  
   
 Enable dev-util/babeltrace 
support
 Enable builtin clang and LLVM support



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2021-05-01 Thread Sergei Trofimovich
commit: 0449b9f5493299e97f4a7556e21767a16a79abf3
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat May  1 08:06:36 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat May  1 08:06:36 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0449b9f5

dev-util/perf: unconditionally apply PYTHON_REQUIRED_USE

Bug #765397 declared unconditional use of python at build time.
REQUIRED_USE needs to enforce that. Otherwise users could provide
incompatible python_* USEs and get late build failures.

Reported-by: Daniel M. Weeks
Bug: https://bugs.gentoo.org/765397
Closes: https://bugs.gentoo.org/787242
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/perf/perf-5.11.ebuild | 2 +-
 dev-util/perf/perf-5.12.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-util/perf/perf-5.11.ebuild b/dev-util/perf/perf-5.11.ebuild
index 979b7517199..9de12cc7035 100644
--- a/dev-util/perf/perf-5.11.ebuild
+++ b/dev-util/perf/perf-5.11.ebuild
@@ -34,7 +34,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="audit clang crypt debug +demangle +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib"
 # TODO babeltrace
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 BDEPEND="
${LINUX_PATCH+dev-util/patchutils}

diff --git a/dev-util/perf/perf-5.12.ebuild b/dev-util/perf/perf-5.12.ebuild
index 9ca795b5dee..795634dc8cd 100644
--- a/dev-util/perf/perf-5.12.ebuild
+++ b/dev-util/perf/perf-5.12.ebuild
@@ -34,7 +34,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="audit babeltrace clang crypt debug +demangle +doc gtk java libpfm lzma 
numa perl python slang systemtap unwind zlib"
 # TODO babeltrace
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 BDEPEND="
${LINUX_PATCH+dev-util/patchutils}



[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2021-04-30 Thread Guilherme Amadio
commit: 607ae226a678a567b344952fa2f5522a12773644
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Fri Apr 30 09:42:30 2021 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Fri Apr 30 09:42:35 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=607ae226

dev-util/perf: add support for dev-util/babeltrace

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/metadata.xml | 1 +
 dev-util/perf/perf-5.12.ebuild | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dev-util/perf/metadata.xml b/dev-util/perf/metadata.xml
index 279962a1a52..18c5fbdc755 100644
--- a/dev-util/perf/metadata.xml
+++ b/dev-util/perf/metadata.xml
@@ -13,6 +13,7 @@
 Guilherme Amadio
   
   
+Enable dev-util/babeltrace 
support
 Enable builtin clang and LLVM support
 
   Enable C++ symbol name demangling, using libbfd from

diff --git a/dev-util/perf/perf-5.12.ebuild b/dev-util/perf/perf-5.12.ebuild
index ad940b16bba..9ca795b5dee 100644
--- a/dev-util/perf/perf-5.12.ebuild
+++ b/dev-util/perf/perf-5.12.ebuild
@@ -32,7 +32,7 @@ SRC_URI+=" 
https://www.kernel.org/pub/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="audit clang crypt debug +demangle +doc gtk java libpfm lzma numa perl 
python slang systemtap unwind zlib"
+IUSE="audit babeltrace clang crypt debug +demangle +doc gtk java libpfm lzma 
numa perl python slang systemtap unwind zlib"
 # TODO babeltrace
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
@@ -51,6 +51,7 @@ BDEPEND="
 "
 
 RDEPEND="audit? ( sys-process/audit )
+   babeltrace? ( dev-util/babeltrace )
crypt? ( dev-libs/openssl:0= )
clang? (


[gentoo-commits] repo/gentoo:master commit in: dev-util/perf/

2021-04-30 Thread Guilherme Amadio
commit: 2d6af4f61aabf31b899bc7facb2e0f5b77ed0035
Author: Guilherme Amadio  gentoo  org>
AuthorDate: Fri Apr 30 09:10:47 2021 +
Commit: Guilherme Amadio  gentoo  org>
CommitDate: Fri Apr 30 09:10:47 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d6af4f6

dev-util/perf: fix file collision with trace-cmd, bug #738404

Closes: https://bugs.gentoo.org/738404
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Guilherme Amadio  gentoo.org>

 dev-util/perf/perf-5.11.ebuild | 1 +
 dev-util/perf/perf-5.12.ebuild | 1 +
 dev-util/perf/perf-5.8.ebuild  | 1 +
 3 files changed, 3 insertions(+)

diff --git a/dev-util/perf/perf-5.11.ebuild b/dev-util/perf/perf-5.11.ebuild
index 92f4c1ae43f..979b7517199 100644
--- a/dev-util/perf/perf-5.11.ebuild
+++ b/dev-util/perf/perf-5.11.ebuild
@@ -205,6 +205,7 @@ perf_make() {
WERROR=0 \
LIBDIR="/usr/libexec/perf-core" \
libdir="${EPREFIX}/usr/$(get_libdir)" \
+   plugindir="${EPREFIX}/usr/$(get_libdir)/perf/plugins" \
"$@"
 }
 

diff --git a/dev-util/perf/perf-5.12.ebuild b/dev-util/perf/perf-5.12.ebuild
index 411cb28ecd2..ad940b16bba 100644
--- a/dev-util/perf/perf-5.12.ebuild
+++ b/dev-util/perf/perf-5.12.ebuild
@@ -205,6 +205,7 @@ perf_make() {
WERROR=0 \
LIBDIR="/usr/libexec/perf-core" \
libdir="${EPREFIX}/usr/$(get_libdir)" \
+   plugindir="${EPREFIX}/usr/$(get_libdir)/perf/plugins" \
"$@"
 }
 

diff --git a/dev-util/perf/perf-5.8.ebuild b/dev-util/perf/perf-5.8.ebuild
index 83e1898c4db..38ceee391a8 100644
--- a/dev-util/perf/perf-5.8.ebuild
+++ b/dev-util/perf/perf-5.8.ebuild
@@ -186,6 +186,7 @@ perf_make() {
WERROR=0 \
LIBDIR="/usr/libexec/perf-core" \
libdir="${EPREFIX}/usr/$(get_libdir)" \
+   plugindir="${EPREFIX}/usr/$(get_libdir)/perf/plugins" \
"$@"
 }
 



  1   2   >