2016-04-25 16:05:48 +00:00
|
|
|
# Copyright (c) 2016, Intel Corporation
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions are met:
|
|
|
|
#
|
|
|
|
# * Redistributions of source code must retain the above copyright notice,
|
|
|
|
# this list of conditions and the following disclaimer.
|
|
|
|
# * Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
|
|
# documentation and/or other materials provided with the distribution.
|
|
|
|
# * Neither the name of Intel Corporation nor the names of its contributors
|
|
|
|
# may be used to endorse or promote products derived from this software
|
|
|
|
# without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
|
|
|
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
|
|
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
|
|
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
|
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
%global githubname intel-cmt-cat
|
|
|
|
%global githubver 0.1.4
|
|
|
|
%global githubfull %{githubname}-%{githubver}
|
|
|
|
%global pkgname intel-cmt-cat
|
|
|
|
%if 0%{!?_licensedir}
|
|
|
|
%global _licensedir %{_docdir}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Summary: Provides command line interface to CMT, MBM, CAT and CDP technologies
|
|
|
|
Name: %{pkgname}
|
|
|
|
Version: %{githubver}
|
2017-02-10 16:28:09 +00:00
|
|
|
Release: 4%{?dist}
|
2016-04-25 16:05:48 +00:00
|
|
|
License: BSD
|
|
|
|
Group: Development/Tools
|
|
|
|
ExclusiveArch: x86_64 i686 i586
|
|
|
|
Source0: https://github.com/01org/%{githubname}/archive/v%{githubver}.tar.gz
|
|
|
|
URL: https://github.com/01org/%{githubname}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This software package provides basic support for
|
|
|
|
Cache Monitoring Technology (CMT), Memory Bandwidth Monitoring (MBM),
|
|
|
|
Cache Allocation Technology (CAT) and Code Data Prioratization (CDP).
|
|
|
|
|
|
|
|
CMT, MBM and CAT are configured using Model Specific Registers (MSRs)
|
|
|
|
to measure last level cache occupancy, set up the class of service masks and
|
|
|
|
manage the association of the cores/logical threads to a class of service.
|
|
|
|
The software executes in user space, and access to the MSRs is
|
|
|
|
obtained through a standard Linux* interface. The virtual file system
|
|
|
|
provides an interface to read and write the MSR registers but
|
|
|
|
it requires root privileges.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{githubfull}
|
|
|
|
|
|
|
|
%build
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
# Not doing make install as it strips the symbols.
|
|
|
|
# Using files from the build directory.
|
|
|
|
install -d %{buildroot}/%{_bindir}
|
|
|
|
install %{_builddir}/%{githubfull}/pqos %{buildroot}/%{_bindir}
|
|
|
|
|
|
|
|
install -d %{buildroot}/%{_mandir}/man8
|
|
|
|
install -m 0644 %{_builddir}/%{githubfull}/pqos.8 %{buildroot}/%{_mandir}/man8
|
|
|
|
|
|
|
|
install -d %{buildroot}/%{_licensedir}/%{name}-%{version}
|
|
|
|
install -m 0644 %{_builddir}/%{githubfull}/LICENSE %{buildroot}/%{_licensedir}/%{name}-%{version}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/pqos
|
|
|
|
%{_mandir}/man8/pqos.8.gz
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license %{_licensedir}/%{name}-%{version}/LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2017-02-10 16:28:09 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-04-25 16:05:48 +00:00
|
|
|
* Tue Apr 19 2016 Tomasz Kantecki <tomasz.kantecki@intel.com> 0.1.4-3
|
|
|
|
- global typo fix
|
|
|
|
- small edits in the description
|
|
|
|
|
|
|
|
* Mon Apr 18 2016 Tomasz Kantecki <tomasz.kantecki@intel.com> 0.1.4-2
|
|
|
|
- LICENSE file added to the package
|
|
|
|
|
|
|
|
* Thu Apr 7 2016 Tomasz Kantecki <tomasz.kantecki@intel.com> 0.1.4-1
|
|
|
|
- initial version of the package
|