diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-12-09 12:33:34 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-12-09 12:33:34 +0100 |
commit | 1cbda1796d8fb3ca43693f02f16e9425b517414f (patch) | |
tree | 27db93f3479dbb0e5f3f75222141a15d11c20780 | |
parent | 090ae20078e7135fa0fe95db2b83366079da9802 (diff) | |
download | psutil-1cbda1796d8fb3ca43693f02f16e9425b517414f.tar.gz |
debugging printfs
-rw-r--r-- | psutil/_psutil_linux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/psutil/_psutil_linux.c b/psutil/_psutil_linux.c index d1f0d145..6853c611 100644 --- a/psutil/_psutil_linux.c +++ b/psutil/_psutil_linux.c @@ -289,6 +289,7 @@ psutil_proc_cpu_affinity_get(PyObject *self, PyObject *args) { cpu_set_t *mask = NULL; PyObject *py_list = NULL; + printf("CPU_ALLOC\n"); if (!PyArg_ParseTuple(args, "l", &pid)) return NULL; ncpus = NCPUS_START; @@ -356,6 +357,7 @@ psutil_proc_cpu_affinity_get(PyObject *self, PyObject *args) { PyObject* py_retlist = NULL; PyObject *py_cpu_num = NULL; + printf("not CPU_ALLOC\n"); if (!PyArg_ParseTuple(args, "l", &pid)) return NULL; CPU_ZERO(&cpuset); |