Sisyphus repository
Last update: 9 june 2023 | SRPMs: 18446 | Visits: 28000391
en ru br
ALT Linux repos

Group :: Development/Tools
RPM: perfctr

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: perfctr
Summary: Linux performance monitoring counters software
Version: 2.6.42
Release: alt1.qa1
License: LGPL
Group: Development/Tools
Source: %name-%version.tar.gz
Packager: Eugeny A. Rostovtsev (REAL) <real at>
Requires: lib%name = %version-%release
ExcludeArch: aarch64 ppc64le

This package adds support for using the Performance-Monitoring
Counters (PMCs) found in many modern processors.

PMCs are "event counters" capable of recording any of a large
number of performance-related events during execution.
These events typically include instructions executed, cache
misses, TLB misses, stalls, and other events specific to
the microarchitecture of the processor being used.

PMCs are primarily used to identify low-level performance problems,
and to validate code changes intended to improve performance.

%package -n lib%name
Summary: Shared libraries for perfctr
Group: Development/C

%description -n lib%name
Shared libraries for perfctr.

%package -n lib%name-devel
Summary: Development library for perfctr
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
The perfctr-devel package contains object files
necessary for developing programs which use the perfctr C library.

%package -n lib%name-devel-static
Summary: Static library for perfctr
Group: Development/C
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
Static library for perfctr.

install %SOURCE1 .

cp linux/include/linux/perfctr.h linux/include/

%makeinstall install2 \
PREFIX=%buildroot%prefix \
BINDIR=%buildroot%_bindir \
LIBDIR=%buildroot%_libdir \
INCLDIR=%buildroot%_includedir \

mv %buildroot%_includedir/linux/%name.h \
mv %buildroot%_includedir/asm/%name.h \
sed -i 's|asm/%name.h|asm_%name.h|' \
# _udevrulesdir fix
mkdir -p %buildroot%{_udevrulesdir}
mv %buildroot%_sysconfdir/udev/rules.d/* %buildroot%{_udevrulesdir}/

%post_service %name

%preun_service %name

%config %_initdir/perfctr


%files -n lib%name

%files -n lib%name-devel

%files -n lib%name-devel-static


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin