adapt to droppage of CLONE_STOPPED from 2.6.38-rc*

This commit is contained in:
Frank Ch. Eigler 2011-01-24 12:19:11 -05:00
parent 063bce34cb
commit 36e7327a49
2 changed files with 26 additions and 1 deletions

20
clonestopped.patch Normal file
View File

@ -0,0 +1,20 @@
commit b30b7ed14e6734e0b5b216729aad0e465412c4b1
Author: Lukas Berk <lberk@redhat.com>
Date: Mon Jan 24 12:09:29 2011 -0500
adding #ifdef CLONE_STOPPED to stop module compilation error
diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp
index e9a9750..25ca345 100644
--- a/tapset/aux_syscalls.stp
+++ b/tapset/aux_syscalls.stp
@@ -1616,7 +1616,9 @@ static const _stp_val_array const _stp_fork_list[] = {
V(CLONE_DETACHED),
V(CLONE_UNTRACED),
V(CLONE_CHILD_SETTID),
+#ifdef CLONE_STOPPED
V(CLONE_STOPPED),
+#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
V(CLONE_NEWUTS),
V(CLONE_NEWIPC),

View File

@ -16,7 +16,7 @@
Name: systemtap
Version: 1.4
Release: 2%{?dist}
Release: 3%{?dist}
# for version, see also configure.ac
Summary: Instrumentation System
Group: Development/System
@ -57,6 +57,7 @@ BuildRequires: m4
BuildRequires: elfutils-devel >= %{elfutils_version}
%endif
Patch2: sdt-regtable.patch
Patch3: clonestopped.patch
%if %{with_docs}
BuildRequires: /usr/bin/latex /usr/bin/dvips /usr/bin/ps2pdf latex2html
@ -182,6 +183,7 @@ data from SystemTap instrumentation scripts.
%setup -q %{?setup_elfutils}
%patch2 -p1
%patch3 -p1
%if %{with_bundled_elfutils}
cd elfutils-%{elfutils_version}
@ -517,6 +519,9 @@ exit 0
%changelog
* Mon Jan 19 2011 Frank Ch. Eigler <fche@redhat.com> - 1.4-3
- adapt to kernel CLONE_STOPPED deprecation
* Mon Jan 19 2011 Stan Cox <scox@redhat.com> - 1.4-2
- sdt fixes