summaryrefslogtreecommitdiff
path: root/psutil/_psaix.py
Commit message (Collapse)AuthorAgeFilesLines
* fix #2238 if cwd() cannot be determined always return "" instead of NoneGiampaolo Rodola2023-04-171-1/+1
|
* Fix pylint warnings / cleanup (#2218)Giampaolo Rodola2023-04-011-2/+2
|
* Add in support for network interface flags. (#2037)Chris Lalancette2022-09-061-2/+5
| | | | Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
* Automatically sort imports (isort CLI tool) (#2033)Giampaolo Rodola2021-12-141-6/+6
|
* Rename cpu_count_physical() to cpu_count_cores()Giampaolo Rodola2020-12-211-1/+1
| | | | | | | | | | This has always been cause of confusion, e.g. see: https://github.com/giampaolo/psutil/pull/1727#issuecomment-698934643 Removed the reference to "physical" from dostrings, functions and test. I still left it in the doc though, as it's more explanatory. Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* [macOS, UNIX] prefer _SC_PAGESIZE over (partially) deprecated getpagesize() ↵Giampaolo Rodola2020-12-171-1/+1
| | | | | | | | | | | | | | | (#1891) Add a reusable `psutil_getpagesize()` utility common to all UNIXes. Related to #1885 (`getpagesize()` is deprecated on recent macOS, POSIX.1-2001 and possibly other UNIXes). The problem emerged on macOS but `getpagesize()` is also used in FreeBSD, NetBSD, OpenBSD and AIX, so it makes sense to do this in one place only, similarly to Windows which also provide a `psutil_getpagesize()` utility. Follow cPython's `mmapmodule.c` and `resourcemodule.c` lead and rely on `sysconf(_SC_PAGESIZE)` instead, but leave `getpagesize()` in place as last resort/attempt for systems where it's not deprecated and/or they still legitimately rely on it. Also provide a python wrapper so we can test the return value of this C function against Python's stdlib modules. Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
* disk_partitions() maxfile and maxpath (#1863)Giampaolo Rodola2020-10-241-1/+3
|
* move custom exceptions in _common.pyGiampaolo Rodola2020-01-021-7/+3
|
* PEP-3151: backport FS exceptions to Python 2 (#1544)Giampaolo Rodola2019-06-281-19/+13
|
* Connection family/type are not converted to enums (#1535)Giampaolo Rodola2019-06-141-19/+6
|
* update CREDITS + small style fixGiampaolo Rodola2019-05-081-3/+3
|
* Fix #1494: [AIX] implement Process.environ() (#1505) (patch by Arnon Yaari)wiggin152019-05-071-0/+4
|
* Fix #1276: [AIX] use getargs to get process cmdline (#1500) (patch by ↵wiggin152019-05-061-11/+7
| | | | @wiggin15)
* fix #1486: add wraps() decorator around wrap_exceptionsGiampaolo Rodola2019-04-251-1/+2
|
* refactor/move some utilities into _common.pyGiampaolo Rodola2019-04-121-10/+1
|
* Fix #1329: [AIX] disable some functions based on availability in libperfstat ↵wiggin152019-03-051-12/+17
| | | | (#1349)
* fix #1447: we weren't use @wrap_exceptions around oneshot() (doh\!)Giampaolo Rodola2019-03-031-0/+3
|
* #1291 / OSX: mark memory_maps() as deprecated and make it alwats raise ↵Giampaolo Rodola2019-02-271-5/+0
| | | | AccessDenied
* fix #1402: move psutil exceptions back into __init__.pyGiampaolo Rodola2019-02-041-3/+7
|
* #1373: different approach to oneshot() cache (pass Process instances around ↵Giampaolo Rodola2018-12-131-7/+7
| | | | - which is faster)
* fix failing linux testsGiampaolo Rodola2018-08-131-1/+2
|
* Fix DeprecationWarning: invalid escape sequence (#1318)Mickaël Schoentgen2018-08-081-2/+2
|
* rename function argGiampaolo Rodola2018-03-241-2/+2
|
* #1174: use TimeoutExpired in wait_pid()Giampaolo Rodola2017-11-131-8/+1
|
* sort imports by nameGiampaolo Rodola2017-11-121-2/+2
|
* Move exceptions to separate file (#1174)wiggin152017-11-121-6/+4
|
* AIX: implement num_ctx_switches (#1164)wiggin152017-10-311-0/+5
| | | | | | * small changes * AIX: implement num_ctx_switches
* Fix #1154: remove 'threads' method on older AIX (#1156)wiggin152017-10-281-16/+19
|
* Small changes (#1158)wiggin152017-10-261-16/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix valid_types in memory_percent pfullmem._fields is always added twice to valid_types so the message about invalid memtype lists the types twice too. pfullmem is available on all platforms and is always the same as or a superset of pmem. We can look at its fields only to get all valid_types. Also we can check whether to use memory_full_info or not by checking the fields of pfullmem vs. pmem instead of using hard coded mem types. * remove workaround made for Solaris on AIX The problem described in the comment doesn't apply for AIX * update "oneshot" table in documentation * Removed "nice" and "ionice" which are not boosted * Removed "~Process." prefix which was only on a few methods and not others * Added AIX Fixes #1157 * small AIX additions to docs
* Fix #1136: check PID in AIX in procfs (#1137)wiggin152017-09-271-1/+1
| | | | | | The 'kill' method to check whether processes exist doesn't work on 'wait' processes in AIX. All processes (and only processes) have a "psinfo" file in procfs so we can check whether PIDs exist there.
* PEP8-ify codeGiampaolo Rodola2017-09-271-1/+0
|
* AIX support (#1123)wiggin152017-09-261-0/+590
* AIX support * AIX support * AIX support * AIX support - use get_procfs_path() instead of /proc * AIX support - group sections like in other modules * AIX support * AIX support * AIX support * AIX support - remove unnecessary dict copy