python-schedutils package update
Signed-off-by: basebuilder_pel7x64builder0 <basebuilder@powerel.org>master
parent
ae8fd13930
commit
f97f4a5fc0
|
@ -61,3 +61,4 @@ index 24749581fd2f..084f0978a4ac 100644
|
||||||
- Initial package
|
- Initial package
|
||||||
--
|
--
|
||||||
2.4.11
|
2.4.11
|
||||||
|
|
||||||
|
|
|
@ -101,3 +101,4 @@ index 000000000000..022d8f8bed65
|
||||||
+Report bugs and send patches to <tuna-devel@lists.fedorahosted.org>
|
+Report bugs and send patches to <tuna-devel@lists.fedorahosted.org>
|
||||||
--
|
--
|
||||||
2.4.11
|
2.4.11
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ index c4f1f2c5e5ec..0761792454fa 100755
|
||||||
@@ -18,7 +18,7 @@ import os, schedutils, sys
|
@@ -18,7 +18,7 @@ import os, schedutils, sys
|
||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
print '''pchrt (python-schedutils)
|
print '''pchrt (python-schedutils)
|
||||||
-usage: chrt [options] [prio] [pid | cmd [args...]]
|
-usage: chrt [options] [prio] [pid | cmd [args...]]
|
||||||
+usage: pchrt [options] [prio] [pid | cmd [args...]]
|
+usage: pchrt [options] [prio] [pid | cmd [args...]]
|
||||||
manipulate real-time attributes of a process
|
manipulate real-time attributes of a process
|
||||||
|
@ -34,7 +34,7 @@ index c4f1f2c5e5ec..0761792454fa 100755
|
||||||
|
|
||||||
-Report bugs and send patches to <acme@ghostprotocols.net>'''
|
-Report bugs and send patches to <acme@ghostprotocols.net>'''
|
||||||
+Report bugs and send patches to <tuna-devel@lists.fedorahosted.org>'''
|
+Report bugs and send patches to <tuna-devel@lists.fedorahosted.org>'''
|
||||||
return
|
return
|
||||||
|
|
||||||
def show_priority_limits(policy):
|
def show_priority_limits(policy):
|
||||||
diff --git a/ptaskset.py b/ptaskset.py
|
diff --git a/ptaskset.py b/ptaskset.py
|
||||||
|
@ -44,7 +44,7 @@ index 15f0ec5bfa1f..afd18477f109 100755
|
||||||
@@ -18,7 +18,7 @@ import os, schedutils, sys
|
@@ -18,7 +18,7 @@ import os, schedutils, sys
|
||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
print '''ptaskset (python-schedutils)
|
print '''ptaskset (python-schedutils)
|
||||||
-usage: taskset [options] [mask | cpu-list] [pid | cmd [args...]]
|
-usage: taskset [options] [mask | cpu-list] [pid | cmd [args...]]
|
||||||
+usage: ptaskset [options] [mask | cpu-list] [pid | cmd [args...]]
|
+usage: ptaskset [options] [mask | cpu-list] [pid | cmd [args...]]
|
||||||
set or get the affinity of a process
|
set or get the affinity of a process
|
||||||
|
@ -52,3 +52,4 @@ index 15f0ec5bfa1f..afd18477f109 100755
|
||||||
-p, --pid operate on existing given pid
|
-p, --pid operate on existing given pid
|
||||||
--
|
--
|
||||||
2.4.11
|
2.4.11
|
||||||
|
|
||||||
|
|
|
@ -27,3 +27,4 @@ index 084f0978a4ac..8372a898ac1c 100644
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
--
|
--
|
||||||
2.4.11
|
2.4.11
|
||||||
|
|
||||||
|
|
|
@ -25,29 +25,30 @@ index d852d5d6ad10..be38e1811af2 100644
|
||||||
static PyObject *schedstr(PyObject *self __unused, PyObject *args)
|
static PyObject *schedstr(PyObject *self __unused, PyObject *args)
|
||||||
{
|
{
|
||||||
@@ -258,6 +262,7 @@ 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_FIFO: s = "SCHED_FIFO"; break;
|
||||||
case SCHED_BATCH: s = "SCHED_BATCH"; break;
|
case SCHED_BATCH: s = "SCHED_BATCH"; break;
|
||||||
case SCHED_IDLE: s = "SCHED_IDLE"; break;
|
case SCHED_IDLE: s = "SCHED_IDLE"; break;
|
||||||
+ case SCHED_DEADLINE: s = "SCHED_DEADLINE"; 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)
|
@@ -282,6 +287,8 @@ static PyObject *schedfromstr(PyObject *self __unused, PyObject *args)
|
||||||
scheduler = SCHED_BATCH;
|
scheduler = SCHED_BATCH;
|
||||||
else if (strcmp(s, "SCHED_IDLE") == 0)
|
else if (strcmp(s, "SCHED_IDLE") == 0)
|
||||||
scheduler = SCHED_IDLE;
|
scheduler = SCHED_IDLE;
|
||||||
+ else if (strcmp(s, "SCHED_DEADLINE") == 0)
|
+ else if (strcmp(s, "SCHED_DEADLINE") == 0)
|
||||||
+ scheduler = SCHED_DEADLINE;
|
+ scheduler = SCHED_DEADLINE;
|
||||||
else {
|
else {
|
||||||
PyErr_SetString(PyExc_OSError, "Unknown scheduler");
|
PyErr_SetString(PyExc_OSError, "Unknown scheduler");
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -382,6 +389,7 @@ PyMODINIT_FUNC initschedutils(void)
|
@@ -382,6 +389,7 @@ PyMODINIT_FUNC initschedutils(void)
|
||||||
PyModule_AddIntConstant(m, "SCHED_RR", SCHED_RR);
|
PyModule_AddIntConstant(m, "SCHED_RR", SCHED_RR);
|
||||||
PyModule_AddIntConstant(m, "SCHED_BATCH", SCHED_BATCH);
|
PyModule_AddIntConstant(m, "SCHED_BATCH", SCHED_BATCH);
|
||||||
PyModule_AddIntConstant(m, "SCHED_IDLE", SCHED_IDLE);
|
PyModule_AddIntConstant(m, "SCHED_IDLE", SCHED_IDLE);
|
||||||
+ PyModule_AddIntConstant(m, "SCHED_DEADLINE", SCHED_DEADLINE);
|
+ 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
|
2.4.11
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue