Skip to content
Snippets Groups Projects
Verified Commit 070cb3e7 authored by Peter Jung's avatar Peter Jung
Browse files

linux-tools: Add pfm support


pfm is a helper library used by application to program specific monitoring events.
This is commonly and often used in profiling processes and makes it easier to choose the correct event.

Example:
AutoFDO for the Kernel provides in their instructions following command:
perf record --pfm-events RETIRED_TAKEN_BRANCH_INSTRUCTIONS:k -a -N -b -c 500009 -o kernel.data -- time makepkg -s

This results currently into following:
`Error: unknown option `pfm-events' `

Since this is commonly used in many instructions add support for it, so that its easier for users and developers to use these events.

Signed-off-by: default avatarPeter Jung <ptr1337@archlinux.org>
parent f162908c
No related branches found
Tags 115.4.1-1
1 merge request!2linux-tools: Add pfm support
......@@ -26,7 +26,7 @@ makedepends=('git')
makedepends+=('asciidoc' 'xmlto')
# perf deps
makedepends+=('perl' 'python' 'python-setuptools' 'slang' 'elfutils' 'libunwind'
'numactl' 'audit' 'zstd' 'libcap' 'libtraceevent' 'openssl' 'clang' 'llvm-libs')
'numactl' 'audit' 'zstd' 'libcap' 'libtraceevent' 'openssl' 'clang' 'llvm-libs' 'libpfm')
# cpupower deps
makedepends+=('pciutils')
# usbip deps
......@@ -96,6 +96,7 @@ build() {
PYTHON=python \
NO_LIBLLVM=1 \
PYTHON_CONFIG=python-config \
LIBPFM4=1 \
DESTDIR="$pkgdir"
popd
......@@ -177,7 +178,7 @@ package_perf() {
pkgdesc='Linux kernel performance auditing tool'
depends=('glibc' 'perl' 'python' 'slang' 'elfutils' 'libunwind' 'binutils'
'numactl' 'audit' 'coreutils' 'glib2' 'xz' 'zlib' 'libelf' 'bash'
'zstd' 'libcap' 'libtraceevent' 'openssl' 'libsframe.so' 'llvm-libs')
'zstd' 'libcap' 'libtraceevent' 'openssl' 'libsframe.so' 'llvm-libs' 'libpfm')
cd linux/tools/perf
make -f Makefile.perf \
......@@ -191,6 +192,7 @@ package_perf() {
NO_LIBLLVM=1 \
PYTHON_CONFIG=python-config \
DESTDIR="$pkgdir" \
LIBPFM4=1 \
install install-python_ext
cd "$pkgdir"
# add linker search path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment