a8f1348
# Much of this is borrowed from the original kernel.spec
a8f1348
# It needs a bunch of the macros for rawhide vs. not-rawhide builds.
a8f1348
a8f1348
# For a stable, released kernel, released_kernel should be 1. For rawhide
a8f1348
# and/or a kernel built from an rc or git snapshot, released_kernel should
a8f1348
# be 0.
89bf608
%global released_kernel 1
b6f8571
%global baserelease 200
a8f1348
%global fedora_build %{baserelease}
a8f1348
a8f1348
# base_sublevel is the kernel version we're starting with and patching
a8f1348
# on top of -- for example, 3.1-rc7-git1 starts with a 3.0 base,
a8f1348
# which yields a base_sublevel of 0.
b6f8571
%global base_sublevel 8
a8f1348
a8f1348
## If this is a released kernel ##
a8f1348
%if 0%{?released_kernel}
a8f1348
a8f1348
# Do we have a -stable update to apply?
d4f3e98
%global stable_update 18
a8f1348
# Set rpm version accordingly
a8f1348
%if 0%{?stable_update}
a8f1348
%global stablerev %{stable_update}
a8f1348
%global stable_base %{stable_update}
a8f1348
%endif
6b9c3ea
%global rpmversion 5.%{base_sublevel}.%{stable_update}
a8f1348
a8f1348
## The not-released-kernel case ##
a8f1348
%else
a8f1348
# The next upstream release sublevel (base_sublevel+1)
2e85c57
%global upstream_sublevel %(echo $((%{base_sublevel} + 1)))
6b9c3ea
a8f1348
# The rc snapshot level
89bf608
%global rcrev 0
a8f1348
# Set rpm version accordingly
6b9c3ea
%global rpmversion 5.%{upstream_sublevel}.0
a8f1348
%endif
a8f1348
# Nb: The above rcrev values automagically define Patch00 and Patch01 below.
a8f1348
a8f1348
# pkg_release is what we'll fill in for the rpm Release: field
a8f1348
%if 0%{?released_kernel}
a8f1348
a8f1348
%global pkg_release %{fedora_build}%{?buildid}%{?dist}
a8f1348
a8f1348
%else
a8f1348
a8f1348
# non-released_kernel
a8f1348
%if 0%{?rcrev}
a8f1348
%global rctag .rc%rcrev
a8f1348
%else
a8f1348
%global rctag .rc0
a8f1348
%endif
a8f1348
%global gittag .git0
a8f1348
%global pkg_release 0%{?rctag}%{?gittag}.%{fedora_build}%{?buildid}%{?dist}
a8f1348
a8f1348
%endif
a8f1348
a8f1348
# The kernel tarball/base version
2e85c57
%global kversion 5.%{base_sublevel}
a8f1348
%global KVERREL %{version}-%{release}.%{_target_cpu}
a8f1348
96c899e
# perf needs this
96c899e
%undefine _strict_symbol_defs_build
96c899e
b6f8571
BuildRequires: kmod, patch, bash, tar, git-core
a8f1348
BuildRequires: bzip2, xz, findutils, gzip, m4, perl-interpreter, perl(Carp), perl-devel, perl-generators, make, diffutils, gawk
a8f1348
BuildRequires: gcc, binutils, redhat-rpm-config, hmaccalc
a8f1348
BuildRequires: net-tools, hostname, bc, elfutils-devel
a83bd27
BuildRequires: zlib-devel binutils-devel newt-devel python3-docutils perl(ExtUtils::Embed) bison flex xz-devel
b6f8571
BuildRequires: audit-libs-devel glibc-devel glibc-headers glibc-static python3-devel java-devel
55992a6
BuildRequires: asciidoc xmlto libcap-devel
b6f8571
BuildRequires: opencsd-devel
Jeremy Cline 45f8f07
# Used to mangle unversioned shebangs to be Python 3
Jeremy Cline 45f8f07
BuildRequires: /usr/bin/pathfix.py
a8f1348
%ifnarch s390x %{arm}
a8f1348
BuildRequires: numactl-devel
a8f1348
%endif
a8f1348
BuildRequires: pciutils-devel gettext ncurses-devel
a8f1348
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
a8f1348
BuildRequires: rpm-build, elfutils
a8f1348
%{?systemd_requires}
a8f1348
BuildRequires: systemd
a8f1348
2e85c57
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%{kversion}.tar.xz
a8f1348
a8f1348
# Sources for kernel-tools
a8f1348
Source2000: cpupower.service
a8f1348
Source2001: cpupower.config
a8f1348
a8f1348
# Here should be only the patches up to the upstream canonical Linus tree.
a8f1348
a8f1348
# For a stable release kernel
a8f1348
%if 0%{?stable_base}
6b9c3ea
Source5000: patch-5.%{base_sublevel}.%{stable_base}.xz
a8f1348
%else
a8f1348
# non-released_kernel case
a8f1348
# These are automagically defined by the rcrev value set up
a8f1348
# near the top of this spec file.
a8f1348
%if 0%{?rcrev}
2e85c57
Source5000: patch-5.%{upstream_sublevel}-rc%{rcrev}.xz
a8f1348
%endif
a8f1348
%endif
a8f1348
a8f1348
# ongoing complaint, full discussion delayed until ksummit/plumbers
a8f1348
Patch0: 0001-iio-Use-event-header-from-kernel-tree.patch
a8f1348
0a92e55
#Revert this
0a92e55
Patch2: 0001-tools-libbpf-Avoid-counting-local-symbols-in-ABI-che.patch
0a92e55
a8f1348
# rpmlint cleanup
a8f1348
Patch6: 0002-perf-Don-t-make-sourced-script-executable.patch
a11504a
a8f1348
Name: kernel-tools
a8f1348
Summary: Assortment of tools for the Linux kernel
a8f1348
License: GPLv2
a8f1348
URL: http://www.kernel.org/
a8f1348
Version: %{rpmversion}
a8f1348
Release: %{pkg_release}
a8f1348
Provides:  cpupowerutils = 1:009-0.6.p1
a8f1348
Obsoletes: cpupowerutils < 1:009-0.6.p1
a8f1348
Provides:  cpufreq-utils = 1:009-0.6.p1
a8f1348
Provides:  cpufrequtils = 1:009-0.6.p1
a8f1348
Obsoletes: cpufreq-utils < 1:009-0.6.p1
a8f1348
Obsoletes: cpufrequtils < 1:009-0.6.p1
a8f1348
Obsoletes: cpuspeed < 1:1.5-16
a8f1348
Requires: kernel-tools-libs = %{version}-%{release}
a8f1348
%description -n kernel-tools
a8f1348
This package contains the tools/ directory from the kernel source
a8f1348
and the supporting documentation.
a8f1348
a8f1348
a8f1348
%package -n perf
a8f1348
Summary: Performance monitoring for the Linux kernel
a8dacac
Requires: bzip2
a8f1348
License: GPLv2
a8f1348
%description -n perf
a8f1348
This package contains the perf tool, which enables performance monitoring
a8f1348
of the Linux kernel.
a8f1348
Jeremy Cline 23d7893
%global pythonperfsum Python bindings for apps which will manipulate perf events
Jeremy Cline 23d7893
%global pythonperfdesc A Python module that permits applications \
67af526
written in the Python programming language to use the interface \
67af526
to manipulate perf events.
67af526
67af526
%package -n python3-perf
Jeremy Cline 23d7893
Summary: %{pythonperfsum}
67af526
%{?python_provide:%python_provide python3-perf}
67af526
%description -n python3-perf
Jeremy Cline 23d7893
%{pythonperfdesc}
a8f1348
a8f1348
%package -n kernel-tools-libs
a8f1348
Summary: Libraries for the kernels-tools
a8f1348
License: GPLv2
a8f1348
%description -n kernel-tools-libs
a8f1348
This package contains the libraries built from the tools/ directory
a8f1348
from the kernel source.
a8f1348
a8f1348
%package -n kernel-tools-libs-devel
a8f1348
Summary: Assortment of tools for the Linux kernel
a8f1348
License: GPLv2
a8f1348
Requires: kernel-tools = %{version}-%{release}
a8f1348
Provides:  cpupowerutils-devel = 1:009-0.6.p1
a8f1348
Obsoletes: cpupowerutils-devel < 1:009-0.6.p1
a8f1348
Requires: kernel-tools-libs = %{version}-%{release}
a8f1348
Provides: kernel-tools-devel
a8f1348
%description -n kernel-tools-libs-devel
a8f1348
This package contains the development files for the tools/ directory from
a8f1348
the kernel source.
a8f1348
d0f955b
%package -n bpftool
d0f955b
Summary: Inspection and simple manipulation of eBPF programs and maps
d0f955b
License: GPLv2
d0f955b
%description -n bpftool
d0f955b
This package contains the bpftool, which allows inspection and simple
d0f955b
manipulation of eBPF programs and maps.
d0f955b
ad01cdf
%package -n libbpf
ad01cdf
Summary: The bpf library from kernel source
ad01cdf
License: GPLv2
ad01cdf
%description -n libbpf
ad01cdf
This package contains the kernel source bpf library.
ad01cdf
ad01cdf
%package -n libbpf-devel
ad01cdf
Summary: Developement files for the bpf library from kernel source
ad01cdf
License: GPLv2
ad01cdf
%description -n libbpf-devel
ad01cdf
This package includes libraries and header files needed for development
ad01cdf
of applications which use bpf library from kernel source.
ad01cdf
173c6d6
%package -n libperf
173c6d6
Summary: The perf library from kernel source
173c6d6
License: GPLv2
173c6d6
%description -n libperf
173c6d6
This package contains the kernel source perf library.
173c6d6
173c6d6
%package -n libperf-devel
173c6d6
Summary: Developement files for the perf library from kernel source
173c6d6
License: GPLv2
173c6d6
%description -n libperf-devel
173c6d6
This package includes libraries and header files needed for development
173c6d6
of applications which use perf library from kernel source.
173c6d6
a8f1348
%prep
a8f1348
%setup -q -n kernel-%{kversion}%{?dist} -c
a8f1348
a8f1348
cd linux-%{kversion}
a8f1348
a8f1348
# This is for patching either an -rc or stable
a8f1348
%if 0%{?rcrev}
a8f1348
    xzcat %{SOURCE5000} | patch -p1 -F1 -s
a8f1348
%endif
a8f1348
a8f1348
%if 0%{?stable_base}
a8f1348
    xzcat %{SOURCE5000} | patch -p1 -F1 -s
a8f1348
%endif
a8f1348
a8f1348
%patch0 -p1
0a92e55
%patch2 -p1 -R
a8f1348
%patch6 -p1
a8f1348
a8f1348
# END OF PATCH APPLICATIONS
a8f1348
Jeremy Cline 45f8f07
# Mangle /usr/bin/python shebangs to /usr/bin/python3
Jeremy Cline 45f8f07
# -p preserves timestamps
Jeremy Cline 45f8f07
# -n prevents creating ~backup files
Jeremy Cline 45f8f07
# -i specifies the interpreter for the shebang
6b9c3ea
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" tools/ tools/perf/scripts/python/*.py scripts/gen_compile_commands.py
Jeremy Cline 45f8f07
a8f1348
###
a8f1348
### build
a8f1348
###
a8f1348
%build
a8f1348
a8f1348
cd linux-%{kversion}
a8f1348
a8f1348
%global perf_make \
a11504a
  make EXTRA_CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="%{__global_ldflags}" %{?cross_opts} V=1 NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_STRLCPY=1 NO_BIONIC=1 prefix=%{_prefix}
a83bd27
%global perf_python3 -C tools/perf PYTHON=%{__python3}
a8f1348
# perf
a8f1348
# make sure check-headers.sh is executable
a8f1348
chmod +x tools/perf/check-headers.sh
67af526
%{perf_make} %{perf_python3} all
a8f1348
a11504a
%global tools_make \
a11504a
  make CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="%{__global_ldflags}" HOSTCFLAGS="%{?build_hostcflags}" HOSTLDFLAGS="%{?build_hostldflags}" V=1
a11504a
a8f1348
# cpupower
a8f1348
# make sure version-gen.sh is executable.
a8f1348
chmod +x tools/power/cpupower/utils/version-gen.sh
a11504a
%{tools_make} %{?_smp_mflags} -C tools/power/cpupower CPUFREQ_BENCH=false
a8f1348
%ifarch %{ix86}
a8f1348
    pushd tools/power/cpupower/debug/i386
a11504a
    %{tools_make} %{?_smp_mflags} centrino-decode powernow-k8-decode
a8f1348
    popd
a8f1348
%endif
a8f1348
%ifarch x86_64
a8f1348
    pushd tools/power/cpupower/debug/x86_64
a11504a
    %{tools_make} %{?_smp_mflags} centrino-decode powernow-k8-decode
a8f1348
    popd
a8f1348
%endif
a8f1348
%ifarch %{ix86} x86_64
a8f1348
   pushd tools/power/x86/x86_energy_perf_policy/
a11504a
   %{tools_make}
a8f1348
   popd
a8f1348
   pushd tools/power/x86/turbostat
a11504a
   %{tools_make}
a8f1348
   popd
a8f1348
%endif #turbostat/x86_energy_perf_policy
a8f1348
pushd tools/thermal/tmon/
a11504a
%{tools_make}
a8f1348
popd
a8f1348
pushd tools/iio/
a11504a
%{tools_make}
a8f1348
popd
a8f1348
pushd tools/gpio/
a11504a
%{tools_make}
a8f1348
popd
a11504a
a11504a
%global bpftool_make \
a11504a
  make EXTRA_CFLAGS="${RPM_OPT_FLAGS}" EXTRA_LDFLAGS="%{__global_ldflags}" DESTDIR=$RPM_BUILD_ROOT V=1
a11504a
d0f955b
pushd tools/bpf/bpftool
a11504a
%{bpftool_make}
d0f955b
popd
ad01cdf
pushd tools/lib/bpf
a11504a
%{tools_make} V=1
ad01cdf
popd
173c6d6
pushd tools/lib/perf
173c6d6
make V=1
173c6d6
popd
a8f1348
ea76b6a
# Build the docs
ea76b6a
pushd tools/kvm/kvm_stat/
b6f8571
%make_build man
ea76b6a
popd
ea76b6a
pushd tools/perf/Documentation/
b6f8571
%make_build man
ea76b6a
popd
ea76b6a
a8f1348
###
a8f1348
### install
a8f1348
###
a8f1348
a8f1348
%install
a8f1348
a8f1348
cd linux-%{kversion}
a8f1348
a8f1348
# perf tool binary and supporting scripts/binaries
a83bd27
%{perf_make} %{perf_python3} DESTDIR=%{buildroot} lib=%{_lib} install-bin install-traceevent-plugins
a8f1348
# remove the 'trace' symlink.
a8f1348
rm -f %{buildroot}%{_bindir}/trace
a8f1348
6fb56e4
# For both of the below, yes, this should be using a macro but right now
6fb56e4
# it's hard coded and we don't actually want it anyway right now.
6fb56e4
# Whoever wants examples can fix it up!
6fb56e4
6fb56e4
# remove examples
Jeremy Cline 8356924
rm -rf %{buildroot}/usr/lib/perf/examples
6fb56e4
# remove the stray header file that somehow got packaged in examples
Jeremy Cline 8356924
rm -rf %{buildroot}/usr/lib/perf/include/bpf/
6fb56e4
a8f1348
# python-perf extension
67af526
%{perf_make} %{perf_python3} DESTDIR=%{buildroot} install-python_ext
a8f1348
a8f1348
# perf man pages (note: implicit rpm magic compresses them later)
ea76b6a
install -d %{buildroot}/%{_mandir}/man1
ea76b6a
install -pm0644 tools/kvm/kvm_stat/kvm_stat.1 %{buildroot}/%{_mandir}/man1/
ea76b6a
install -pm0644 tools/perf/Documentation/*.1 %{buildroot}/%{_mandir}/man1/
a8f1348
a8f1348
make -C tools/power/cpupower DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
a8f1348
rm -f %{buildroot}%{_libdir}/*.{a,la}
a8f1348
%find_lang cpupower
a8f1348
mv cpupower.lang ../
a8f1348
%ifarch %{ix86}
a8f1348
    pushd tools/power/cpupower/debug/i386
a8f1348
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
a8f1348
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
a8f1348
    popd
a8f1348
%endif
a8f1348
%ifarch x86_64
a8f1348
    pushd tools/power/cpupower/debug/x86_64
a8f1348
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
a8f1348
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
a8f1348
    popd
a8f1348
%endif
a8f1348
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
a8f1348
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
a8f1348
install -m644 %{SOURCE2000} %{buildroot}%{_unitdir}/cpupower.service
a8f1348
install -m644 %{SOURCE2001} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
a8f1348
%ifarch %{ix86} x86_64
a8f1348
   mkdir -p %{buildroot}%{_mandir}/man8
a8f1348
   pushd tools/power/x86/x86_energy_perf_policy
a11504a
   %{tools_make} DESTDIR=%{buildroot} install
a8f1348
   popd
a8f1348
   pushd tools/power/x86/turbostat
a11504a
   %{tools_make} DESTDIR=%{buildroot} install
a8f1348
   popd
a8f1348
%endif #turbostat/x86_energy_perf_policy
a8f1348
pushd tools/thermal/tmon
a11504a
%{tools_make} INSTALL_ROOT=%{buildroot} install
a8f1348
popd
a8f1348
pushd tools/iio
a11504a
%{tools_make} DESTDIR=%{buildroot} install
a8f1348
popd
a8f1348
pushd tools/gpio
a11504a
%{tools_make} DESTDIR=%{buildroot} install
a8f1348
popd
a8f1348
pushd tools/kvm/kvm_stat
a11504a
%{tools_make} INSTALL_ROOT=%{buildroot} install-tools
a8f1348
popd
d0f955b
pushd tools/bpf/bpftool
a11504a
%{bpftool_make} prefix=%{_prefix} bash_compdir=%{_sysconfdir}/bash_completion.d/ mandir=%{_mandir} install doc-install
Jeremy Cline e2ab001
# man-pages packages this (rhbz #1686954)
Jeremy Cline e2ab001
rm %{buildroot}%{_mandir}/man7/bpf-helpers.7
d0f955b
popd
ad01cdf
pushd tools/lib/bpf
a11504a
%{tools_make} DESTDIR=%{buildroot} prefix=%{_prefix} libdir=%{_libdir} V=1 install install_headers
ad01cdf
popd
173c6d6
pushd tools/lib/perf
173c6d6
make DESTDIR=%{buildroot} prefix=%{_prefix} libdir=%{_libdir} V=1 install install_headers
173c6d6
popd
a8f1348
a8f1348
###
a8f1348
### scripts
a8f1348
###
a8f1348
3387884
%ldconfig_scriptlets -n kernel-tools-libs
a8f1348
a8f1348
%post -n kernel-tools
a8f1348
%systemd_post cpupower.service
a8f1348
a8f1348
%preun -n kernel-tools
a8f1348
%systemd_preun cpupower.service
a8f1348
a8f1348
%postun
a8f1348
%systemd_postun cpupower.service
a8f1348
a8f1348
%files -n perf
a8f1348
%{_bindir}/perf
a8f1348
%dir %{_libdir}/traceevent
a8f1348
%{_libdir}/traceevent/plugins/
a11504a
%{_libdir}/libperf-jvmti.so
a8f1348
%{_libexecdir}/perf-core
a8f1348
%{_datadir}/perf-core/
a8f1348
%{_mandir}/man[1-8]/perf*
a8f1348
%{_sysconfdir}/bash_completion.d/perf
a8f1348
%doc linux-%{kversion}/tools/perf/Documentation/examples.txt
a8f1348
%license linux-%{kversion}/COPYING
a11504a
%{_docdir}/perf-tip/tips.txt
a8f1348
67af526
%files -n python3-perf
67af526
%license linux-%{kversion}/COPYING
67af526
%{python3_sitearch}/*
a8f1348
a8f1348
%files -n kernel-tools -f cpupower.lang
a8f1348
%{_bindir}/cpupower
6b9c3ea
%{_datadir}/bash-completion/completions/cpupower
a8f1348
%ifarch %{ix86} x86_64
a8f1348
%{_bindir}/centrino-decode
a8f1348
%{_bindir}/powernow-k8-decode
a8f1348
%endif
a8f1348
%{_unitdir}/cpupower.service
a8f1348
%{_mandir}/man[1-8]/cpupower*
a8f1348
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
a8f1348
%ifarch %{ix86} x86_64
a8f1348
%{_bindir}/x86_energy_perf_policy
a8f1348
%{_mandir}/man8/x86_energy_perf_policy*
a8f1348
%{_bindir}/turbostat
a8f1348
%{_mandir}/man8/turbostat*
a8f1348
%endif
a8f1348
%{_bindir}/tmon
a8f1348
%{_bindir}/iio_event_monitor
a8f1348
%{_bindir}/iio_generic_buffer
a8f1348
%{_bindir}/lsiio
a8f1348
%{_bindir}/lsgpio
a8f1348
%{_bindir}/gpio-hammer
a8f1348
%{_bindir}/gpio-event-mon
173c6d6
%{_bindir}/gpio-watch
a8f1348
%{_mandir}/man1/kvm_stat*
a8f1348
%{_bindir}/kvm_stat
a8f1348
%license linux-%{kversion}/COPYING
a8f1348
a8f1348
%files -n kernel-tools-libs
a8f1348
%{_libdir}/libcpupower.so.0
a8f1348
%{_libdir}/libcpupower.so.0.0.1
a8f1348
%license linux-%{kversion}/COPYING
a8f1348
a8f1348
%files -n kernel-tools-libs-devel
a8f1348
%{_libdir}/libcpupower.so
a8f1348
%{_includedir}/cpufreq.h
a8f1348
%{_includedir}/cpuidle.h
a8f1348
d0f955b
%files -n bpftool
d0f955b
%{_sbindir}/bpftool
d0f955b
%{_sysconfdir}/bash_completion.d/bpftool
49b7b0d
%{_mandir}/man8/bpftool-btf.8.gz
d0f955b
%{_mandir}/man8/bpftool-cgroup.8.gz
3b4eb49
%{_mandir}/man8/bpftool-gen.8.gz
b6f8571
%{_mandir}/man8/bpftool-iter.8.gz
b6f8571
%{_mandir}/man8/bpftool-link.8.gz
d0f955b
%{_mandir}/man8/bpftool-map.8.gz
901bda6
%{_mandir}/man8/bpftool-net.8.gz
d0f955b
%{_mandir}/man8/bpftool-prog.8.gz
6fb56e4
%{_mandir}/man8/bpftool-perf.8.gz
b6f8571
%{_mandir}/man8/bpftool-struct_ops.8.gz
Jeremy Cline e2ab001
%{_mandir}/man8/bpftool-feature.8.gz
d0f955b
%{_mandir}/man8/bpftool.8.gz
d0f955b
%license linux-%{kversion}/COPYING
d0f955b
ad01cdf
%files -n libbpf
ad01cdf
%{_libdir}/libbpf.so.0
b6f8571
%{_libdir}/libbpf.so.0.0.9
ad01cdf
%license linux-%{kversion}/COPYING
ad01cdf
ad01cdf
%files -n libbpf-devel
ad01cdf
%{_libdir}/libbpf.a
ad01cdf
%{_libdir}/libbpf.so
49b7b0d
%{_libdir}/pkgconfig/libbpf.pc
ad01cdf
%{_includedir}/bpf/bpf.h
a11504a
%{_includedir}/bpf/bpf_core_read.h
a11504a
%{_includedir}/bpf/bpf_endian.h
a11504a
%{_includedir}/bpf/bpf_helper_defs.h
a11504a
%{_includedir}/bpf/bpf_helpers.h
a11504a
%{_includedir}/bpf/bpf_tracing.h
ad01cdf
%{_includedir}/bpf/btf.h
ad01cdf
%{_includedir}/bpf/libbpf.h
3b4eb49
%{_includedir}/bpf/libbpf_common.h
49b7b0d
%{_includedir}/bpf/libbpf_util.h
Jeremy Cline 3499255
%{_includedir}/bpf/xsk.h
ad01cdf
%license linux-%{kversion}/COPYING
ad01cdf
173c6d6
%files -n libperf
173c6d6
%{_libdir}/libperf.so.0
173c6d6
%{_libdir}/libperf.so.0.0.1
173c6d6
%license linux-%{kversion}/COPYING
173c6d6
173c6d6
%files -n libperf-devel
173c6d6
%{_libdir}/libperf.a
173c6d6
%{_libdir}/libperf.so
173c6d6
%{_libdir}/pkgconfig/libperf.pc
173c6d6
%{_includedir}/perf/core.h
173c6d6
%{_includedir}/perf/cpumap.h
173c6d6
%{_includedir}/perf/event.h
173c6d6
%{_includedir}/perf/evlist.h
173c6d6
%{_includedir}/perf/evsel.h
173c6d6
%{_includedir}/perf/mmap.h
173c6d6
%{_includedir}/perf/threadmap.h
173c6d6
%{_mandir}/man3/libperf.3.gz
173c6d6
%{_mandir}/man7/libperf-counting.7.gz
173c6d6
%{_mandir}/man7/libperf-sampling.7.gz
173c6d6
%{_docdir}/libperf/examples/sampling.c
173c6d6
%{_docdir}/libperf/examples/counting.c
173c6d6
%{_docdir}/libperf/html/libperf.html
173c6d6
%{_docdir}/libperf/html/libperf-counting.html
173c6d6
%{_docdir}/libperf/html/libperf-sampling.html
173c6d6
%license linux-%{kversion}/COPYING
173c6d6
a8f1348
%changelog
d4f3e98
* Mon Nov  2 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.8.18-100
d4f3e98
- Linux v5.8.18
d4f3e98
4398a3e
* Wed Sep 23 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.8.11-100
4398a3e
- Linux v5.8.11
4398a3e
089707a
* Thu Sep 10 09:55:48 CDT 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.8.8-100
089707a
- Linux v5.8.8
089707a
b6f8571
* Thu Sep 03 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.8.6-100
b6f8571
- Linux v5.8.6
b6f8571
51e790e
* Fri Aug 21 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.7.17-100
51e790e
- Linux v5.7.17
51e790e
cceb934
* Wed Aug 19 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.7.16-100
cceb934
- Linux v5.7.16
cceb934
089fe6a
* Wed Jul 29 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.7.11-100
089fe6a
- Linux v5.7.11
089fe6a
089fe6a
* Wed Jul 01 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.7.7-100
173c6d6
- Linux v5.7.7
173c6d6
78548ba
* Thu Apr 23 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.6.7-200
78548ba
- Linux v5.6.7
78548ba
3b4eb49
* Tue Apr 21 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.6.6-200
3b4eb49
- Linux v5.6.6 rebase
3b4eb49
a4fdbcb
* Mon Apr 13 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.5.17-200
a4fdbcb
- Linux v5.5.17
a4fdbcb
3de2b5e
* Wed Apr 08 2020 Justin Forbes <jforbes@fedoraproject.org> - 5.5.16-200
3de2b5e
- Linux v5.5.16
b0cfae2
- Remove manual perf-debuginfo left from kernel (rhbz 1822110)
b0cfae2
8643a39
* Thu Apr 02 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.5.15-200
8643a39
- Linux v5.5.15
8643a39
0a9a860
* Wed Apr 01 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.5.14-200
0a9a860
- Linux v5.5.14
0a9a860
c0364ae
* Thu Mar 12 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.5.9-200
c0364ae
- Linux v5.5.9
c0364ae
91fe42b
* Thu Mar 05 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.5.8-200
91fe42b
- Linux v5.5.8
91fe42b
ac018ca
* Mon Feb 24 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.5.6-200
ac018ca
- Linux v5.5.6
ac018ca
a11504a
* Wed Feb 19 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.5.5-200
a11504a
- Linux v5.5.5
a11504a
c2ba333
* Tue Dec 31 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.4.7-200
c2ba333
- Linux v5.4.7
c2ba333
9d808df
* Thu Dec 19 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.4.5-300
9d808df
- Linux v5.4.5
9d808df
a347ea9
* Tue Nov 12 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.3.11-300
a347ea9
- Linux v5.3.11
a347ea9
dbc1492
* Wed Nov 06 2019 Laura Abbott <labbott@redhat.com> - 5.3.9-300
717a547
- Linux v5.3.9
717a547
070d315
* Fri Oct 18 2019 Laura Abbott <labbott@redhat.com> - 5.3.7-300
070d315
- Linux v5.3.7
070d315
eba0a4b
* Mon Oct 14 2019 Laura Abbott <labbott@redhat.com> - 5.3.6-300
eba0a4b
- Linux v5.3.6
eba0a4b
cc04182
* Tue Oct  8 2019 Laura Abbott <labbott@redhat.com> - 5.3.5-300
cc04182
- Linux v5.3.5
cc04182
8ce5225
* Mon Oct  7 2019 Peter Robinson <pbrobinson@fedoraproject.org> 5.3.4-300
8ce5225
- Linux v5.3.4
8ce5225
6bdbf62
* Mon Sep 16 2019 Laura Abbott <labbott@redhat.com> - 5.3.1-100
6bdbf62
- Linux v5.3.1
6bdbf62
89bf608
* Mon Sep 16 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-1
89bf608
- Linux v5.3.0
89bf608
b9a8c24
* Tue Sep 10 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc8.git0.1
b9a8c24
- Linux v5.3-rc8.git0
b9a8c24
c415aeb
* Tue Sep 03 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc7.git0.1
c415aeb
- Linux v5.3-rc7.git0
c415aeb
4a2ed28
* Mon Aug 26 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc6.git0.1
4a2ed28
- Linux v5.3-rc6.git0
4a2ed28
806d5df
* Mon Aug 19 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc5.git0.1
806d5df
- Linux v5.3-rc5.git0
806d5df
1a226d4
* Tue Aug 13 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc4.git0.1
1a226d4
- Linux v5.3-rc4.git0
1a226d4
fd37d35
* Mon Aug 05 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc3.git0.1
fd37d35
- Linux v5.3-rc3.git0
fd37d35
68b1dff
* Mon Jul 29 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc2.git0.1
68b1dff
- Linux v5.3-rc2.git0
68b1dff
907165d
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.0-0.rc1.git0.2
907165d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
907165d
8a6c47e
* Sun Jul 21 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc1.git0.1
8a6c47e
- Linux v5.3-rc1.git0
8a6c47e
b2038a9
* Mon Jul 08 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-1
b2038a9
- Linux v5.2.0
b2038a9
a26dc5e
* Mon Jul 01 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-0.rc7.git0.1
a26dc5e
- Linux v5.2-rc7.git0
a26dc5e
fc8bbba
* Mon Jun 24 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-0.rc6.git0.1
fc8bbba
- Linux v5.2-rc6.git0
fc8bbba
56cf091
* Mon Jun 17 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-0.rc5.git0.1
56cf091
- Linux v5.2-rc5.git0
56cf091
3e0c356
* Mon Jun 10 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-0.rc4.git0.1
3e0c356
- Linux v5.2-rc4.git0
3e0c356
0330b14
* Tue Jun 04 2019 Jitka Plesnikova <jplesnik@redhat.com> - 5.2.0-0.rc3.git0.3
0330b14
- Perl 5.30 re-rebuild updated packages
0330b14
69820ff
* Mon Jun 03 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-0.rc3.git0.1
69820ff
- Linux v5.2-rc3.git0
69820ff
2fb5026
* Sat Jun 01 2019 Jitka Plesnikova <jplesnik@redhat.com> - 5.2.0-0.rc2.git0.2
2fb5026
- Perl 5.30 rebuild
2fb5026
24449f7
* Mon May 27 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-rc2.git0.1
24449f7
- Linux v5.2-rc2.git0
24449f7
49b7b0d
* Mon May 20 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-rc1.git0.1
49b7b0d
- Linux v5.2-rc1.git0
49b7b0d
Jeremy Cline 481a8d1
* Mon May 06 2019 Jeremy Cline <jcline@redhat.com> - 5.1.0-1
Jeremy Cline 481a8d1
- Linux v5.1
Jeremy Cline 481a8d1
Jeremy Cline 7457e3e
* Mon Apr 29 2019 Jeremy Cline <jcline@redhat.com> - 5.1.0-0.rc7.git0.1
Jeremy Cline 7457e3e
- Linux v5.1-rc7
Jeremy Cline 7457e3e
Jeremy Cline 38d260c
* Mon Apr 22 2019 Jeremy Cline <jcline@redhat.com> - 5.1.0-0.rc6.git0.1
Jeremy Cline 38d260c
- Linux v5.1-rc6
Jeremy Cline 38d260c
Jeremy Cline 23d1db6
* Tue Apr 16 2019 Jeremy Cline <jcline@redhat.com> - 5.1.0-0.rc5.git0.1
Jeremy Cline 23d1db6
- Linux v5.1-rc5
Jeremy Cline 23d1db6
Jeremy Cline 591b06b
* Mon Apr 08 2019 Jeremy Cline <jcline@redhat.com> - 5.1.0-0.rc4.git0.1
Jeremy Cline 591b06b
- Linux v5.1-rc4
Jeremy Cline 591b06b
ad01cdf
* Tue Apr 02 2019 Jiri Olsa <jolsa@redhat.com> - 5.1.0-0.rc3.git0.2
ad01cdf
- Add libbpf, libbpf-devel and libbpf-debuginfo packages
ad01cdf
Jeremy Cline f9fa48e
* Mon Apr 01 2019 Jeremy Cline <jeremy@jcline.org> - 5.1.0-0.rc3.git0.1
Jeremy Cline f9fa48e
- Linux v5.1-rc3
Jeremy Cline f9fa48e
Jeremy Cline 8f5e3b4
* Mon Mar 18 2019 Jeremy Cline <jeremy@jcline.org> - 5.1.0-0.rc2.git0.1
Jeremy Cline 8f5e3b4
- Linux v5.1-rc2
Jeremy Cline 8f5e3b4
Jeremy Cline e2ab001
* Mon Mar 18 2019 Jeremy Cline <jeremy@jcline.org> - 5.1.0-0.rc1.git0.1
Jeremy Cline e2ab001
- Linux v5.1-rc1
Jeremy Cline e2ab001
2e85c57
* Mon Mar 04 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-1
2e85c57
- Linux v5.0.0
2e85c57
36dd31d
* Mon Feb 25 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc8.git0.1
36dd31d
- Linux v5.0-rc8
36dd31d
98cecfb
* Sun Feb 17 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc7.git0.1
98cecfb
- Linux v5.0-rc7
98cecfb
98cecfb
* Mon Feb 11 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc6.git0.1
274a1fe
- Linux v5.0-rc6
274a1fe
2b9bcc3
* Mon Feb 04 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc5.git0.1
2b9bcc3
- Linux v5.0-rc5
2b9bcc3
887d650
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-0.rc4.git0.2
887d650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
887d650
6702e4f
* Fri Jan 25 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc4.git0.1
6702e4f
- Linux v5.0-rc4
6702e4f
0c79569
* Fri Jan 25 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc3.git0.2
0c79569
- Rebuild for gcc9
0c79569
12477b2
* Mon Jan 14 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc3.git0.1
12477b2
- Linux v5.0-rc3
12477b2
08daf32
* Mon Jan 14 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc2.git0.1
08daf32
- Linux v5.0-rc2
08daf32
a83bd27
* Thu Jan 10 2019 Miro HronĨok <mhroncok@redhat.com> - 5.0.0-0.rc1.git0.2
a83bd27
- Remove Python 2 subpackage
a83bd27
6b9c3ea
* Mon Jan 07 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc1.git0.1
6b9c3ea
- Linux v5.0-rc1
6b9c3ea
df56743
* Mon Dec 24 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.20.0-1
df56743
- Linux v4.20.0
df56743
2d79f3e
* Mon Dec 17 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.20.0-0.rc7.git0.1
2d79f3e
- Linux v4.20-rc7
2d79f3e
8b7aa4e
* Mon Dec 10 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.20.0-0.rc6.git0.1
8b7aa4e
- Linux v4.20-rc6
8b7aa4e
65ff608
* Mon Dec 03 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.20.0-0.rc5.git0.1
65ff608
- Linux v4.20-rc5
65ff608
f5f4874
* Mon Nov 26 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.20.0-0.rc4.git0.1
f5f4874
- Linux v4.20-rc4
f5f4874
Jeremy Cline 50e9399
* Mon Nov 19 2018 Jeremy Cline <jeremy@jcline.org> - 4.20.0-0.rc3.git0.1
Jeremy Cline 50e9399
- Linux v4.20-rc3
Jeremy Cline 50e9399
0f01a6a
* Sun Nov 11 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.20.0-0.rc2.git0.1
0f01a6a
- Linux v4.20-rc2
0f01a6a
901bda6
* Mon Nov 05 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.20.0-0.rc1.git0.1
901bda6
- Linux v4.20-rc1