Browse Source

python-schedutils package update

Signed-off-by: basebuilder_pel7x64builder0 <basebuilder@powerel.org>
master
basebuilder_pel7x64builder0 6 years ago
parent
commit
f97f4a5fc0
  1. 13
      SOURCES/Update-spec-file-to-install-man-pages-for-pchrt-and-.patch
  2. 3
      SOURCES/python-schedutils-Add-man-pages-for-pchrt-and-ptasks.patch
  3. 21
      SOURCES/python-schedutils-Correct-typos-in-usage-messages.patch
  4. 3
      SOURCES/python-schedutils-Update-URL-in-python-schedutils.sp.patch
  5. 39
      SOURCES/schedutils.c-added-support-for-SCHED_DEADLINE.patch

13
SOURCES/Update-spec-file-to-install-man-pages-for-pchrt-and-.patch

@ -30,7 +30,7 @@ index 24749581fd2f..084f0978a4ac 100644 @@ -30,7 +30,7 @@ index 24749581fd2f..084f0978a4ac 100644
+mkdir -p %{buildroot}%{_mandir}/man1
+gzip -c pchrt.1 > %{buildroot}%{_mandir}/man1/pchrt.1.gz
+gzip -c ptaskset.1 > %{buildroot}%{_mandir}/man1/ptaskset.1.gz

%clean
rm -rf %{buildroot}
@@ -41,8 +44,14 @@ rm -rf %{buildroot}
@ -39,7 +39,7 @@ index 24749581fd2f..084f0978a4ac 100644 @@ -39,7 +39,7 @@ index 24749581fd2f..084f0978a4ac 100644
%endif
+%{_mandir}/man1/pchrt.1.gz
+%{_mandir}/man1/ptaskset.1.gz

%changelog
+* Tue May 10 2016 John Kacur <jkacur@redhat.com> - 0.4-2
+- Add man pages for pchrt and ptaskset
@ -47,17 +47,18 @@ index 24749581fd2f..084f0978a4ac 100644 @@ -47,17 +47,18 @@ index 24749581fd2f..084f0978a4ac 100644
+
* Mon Aug 1 2011 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.4-1
- New upstream release.

@@ -63,8 +72,8 @@ rm -rf %{buildroot}
* Tue Jun 10 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-3
- add dist to the release tag

-* Tue Dec 19 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-2
+* Wed Dec 19 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-2
- First build into rhel5-rt

-* Tue Dec 19 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-1
+* Wed Dec 19 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-1
- Initial package
--
--
2.4.11


3
SOURCES/python-schedutils-Add-man-pages-for-pchrt-and-ptasks.patch

@ -99,5 +99,6 @@ index 000000000000..022d8f8bed65 @@ -99,5 +99,6 @@ index 000000000000..022d8f8bed65
+This manual page was written by John Kacur <jkacur@redhat.com>
+.PP
+Report bugs and send patches to <tuna-devel@lists.fedorahosted.org>
--
--
2.4.11


21
SOURCES/python-schedutils-Correct-typos-in-usage-messages.patch

@ -20,35 +20,36 @@ index c4f1f2c5e5ec..0761792454fa 100755 @@ -20,35 +20,36 @@ index c4f1f2c5e5ec..0761792454fa 100755
--- a/pchrt.py
+++ b/pchrt.py
@@ -18,7 +18,7 @@ import os, schedutils, sys

def usage():
print '''pchrt (python-schedutils)
print '''pchrt (python-schedutils)
-usage: chrt [options] [prio] [pid | cmd [args...]]
+usage: pchrt [options] [prio] [pid | cmd [args...]]
manipulate real-time attributes of a process
-b, --batch set policy to SCHED_BATCH
-f, --fifo set policy to SCHED_FIFO
@@ -32,7 +32,7 @@ manipulate real-time attributes of a process

You must give a priority if changing policy.

-Report bugs and send patches to <acme@ghostprotocols.net>'''
+Report bugs and send patches to <tuna-devel@lists.fedorahosted.org>'''
return

return
def show_priority_limits(policy):
diff --git a/ptaskset.py b/ptaskset.py
index 15f0ec5bfa1f..afd18477f109 100755
--- a/ptaskset.py
+++ b/ptaskset.py
@@ -18,7 +18,7 @@ import os, schedutils, sys

def usage():
print '''ptaskset (python-schedutils)
print '''ptaskset (python-schedutils)
-usage: taskset [options] [mask | cpu-list] [pid | cmd [args...]]
+usage: ptaskset [options] [mask | cpu-list] [pid | cmd [args...]]
set or get the affinity of a process

-p, --pid operate on existing given pid
--
--
2.4.11


3
SOURCES/python-schedutils-Update-URL-in-python-schedutils.sp.patch

@ -25,5 +25,6 @@ index 084f0978a4ac..8372a898ac1c 100644 @@ -25,5 +25,6 @@ index 084f0978a4ac..8372a898ac1c 100644
Group: System Environment/Libraries
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
--
--
2.4.11


39
SOURCES/schedutils.c-added-support-for-SCHED_DEADLINE.patch

@ -21,33 +21,34 @@ index d852d5d6ad10..be38e1811af2 100644 @@ -21,33 +21,34 @@ index d852d5d6ad10..be38e1811af2 100644
+#define SCHED_DEADLINE 6
+#endif
+

static PyObject *schedstr(PyObject *self __unused, PyObject *args)
{
@@ -258,6 +262,7 @@ static PyObject *schedstr(PyObject *self __unused, PyObject *args)
case SCHED_FIFO: s = "SCHED_FIFO"; break;
case SCHED_BATCH: s = "SCHED_BATCH"; break;
case SCHED_IDLE: s = "SCHED_IDLE"; break;
case SCHED_FIFO: s = "SCHED_FIFO"; break;
case SCHED_BATCH: s = "SCHED_BATCH"; break;
case SCHED_IDLE: s = "SCHED_IDLE"; break;
+ case SCHED_DEADLINE: s = "SCHED_DEADLINE"; break;
default: s = "UNKNOWN"; break;
}

default: s = "UNKNOWN"; break;
}
@@ -282,6 +287,8 @@ static PyObject *schedfromstr(PyObject *self __unused, PyObject *args)
scheduler = SCHED_BATCH;
else if (strcmp(s, "SCHED_IDLE") == 0)
scheduler = SCHED_IDLE;
scheduler = SCHED_BATCH;
else if (strcmp(s, "SCHED_IDLE") == 0)
scheduler = SCHED_IDLE;
+ else if (strcmp(s, "SCHED_DEADLINE") == 0)
+ scheduler = SCHED_DEADLINE;
else {
PyErr_SetString(PyExc_OSError, "Unknown scheduler");
return NULL;
else {
PyErr_SetString(PyExc_OSError, "Unknown scheduler");
return NULL;
@@ -382,6 +389,7 @@ PyMODINIT_FUNC initschedutils(void)
PyModule_AddIntConstant(m, "SCHED_RR", SCHED_RR);
PyModule_AddIntConstant(m, "SCHED_BATCH", SCHED_BATCH);
PyModule_AddIntConstant(m, "SCHED_IDLE", SCHED_IDLE);
PyModule_AddIntConstant(m, "SCHED_RR", SCHED_RR);
PyModule_AddIntConstant(m, "SCHED_BATCH", SCHED_BATCH);
PyModule_AddIntConstant(m, "SCHED_IDLE", SCHED_IDLE);
+ PyModule_AddIntConstant(m, "SCHED_DEADLINE", SCHED_DEADLINE);
PyModule_AddIntConstant(m, "SCHED_RESET_ON_FORK", SCHED_RESET_ON_FORK);
PyModule_AddIntConstant(m, "SCHED_RESET_ON_FORK", SCHED_RESET_ON_FORK);
}

--
--
2.4.11


Loading…
Cancel
Save