File mmdebug-tools.spec of Package mmdebug-tools
#
# spec file for package lsof
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name:           mmdebug-tools
Version:        1.0
Release:        0
Summary:        Set of tools to help debug MM related issues
License:        GPL-2.0-or-later
Source0:        collect_logs.c
Source1:        Makefile
Source2:        process_vmstat.awk
Source3:        filter_log.sh
Source4:        syscall_times.pl
Source5:        bpf_trace_sys_time.py
Group:          System/Monitoring
%description
This package contains a set of tools to help debug memory management related
issues. It is a mix of programs and scripts to collect and analyse collected
data.
%prep
cp %_sourcedir/* .
%build
%make_build CFLAGS="%{optflags}" all
%install
install -d %{buildroot}%{_bindir}
install -m755 collect_logs %{buildroot}%{_bindir}
install -m755 swaptop %{buildroot}%{_bindir}
install -m755 process_vmstat.awk %{buildroot}%{_bindir}
install -m755 filter_log.sh %{buildroot}%{_bindir}
install -m755 syscall_times.pl %{buildroot}%{_bindir}
install -m755 bpf_trace_sys_time.py %{buildroot}%{_bindir}
%check
%files
%{_bindir}/collect_logs
%{_bindir}/swaptop
%{_bindir}/process_vmstat.awk
%{_bindir}/filter_log.sh
%{_bindir}/syscall_times.pl
%{_bindir}/bpf_trace_sys_time.py
%changelog