summaryrefslogtreecommitdiff
path: root/psutil/arch
Commit message (Collapse)AuthorAgeFilesLines
* refactor all functions around SE DEBUG; we weren't checking errors (did we ↵Giampaolo Rodola2019-02-242-158/+68
| | | | ever set SE DEBUG at all?) - if SE DEBUG can't be set we now raise an exception on import; that's bad - I'll change it later, and I will probably replace it with a warning
* remove useless functionGiampaolo Rodola2019-02-241-15/+2
|
* #1428 in case of error, show the C syscall which caused itGiampaolo Rodola2019-02-244-99/+146
|
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2019-02-246-78/+128
|\
| * fix compilation warningGiampaolo Rodola2019-02-241-0/+2
| |
| * revert previous changeGiampaolo Rodola2019-02-211-2/+2
| |
| * remove deprecated WSAAddressToStringA causing a compiler warning and use ↵Giampaolo Rodola2019-02-211-10/+9
| | | | | | | | UNICODE version instead
| * move custom object defs from ntextapi.h to global.hGiampaolo Rodola2019-02-212-45/+42
| |
| * set Windows version constants globally; get rid of deprecated GetVersionExGiampaolo Rodola2019-02-214-26/+78
| |
* | fix #1427: [OSX] Process cmdline() and environ() may erroneously raise ↵Giampaolo Rodola2019-02-241-2/+2
|/ | | | OSError on failed malloc().
* Windows / speeup: dynamically load libraries on startup and never again (#1422)Giampaolo Rodola2019-02-217-395/+522
| | | Windows / speeup: dynamically load libraries on startup and never again.
* fix #1419: Process.environ() raise NotImplementedError for 32-bit-WoW processGiampaolo Rodola2019-02-191-64/+14
|
* Windows / refactoring: utility functions for LoadLibraryA and GetProcAddress ↵Giampaolo Rodola2019-02-194-107/+63
| | | | | (#1417) Windows / refactoring: add utility functions for LoadLibraryA and GetProcAddress. Centralize logic in one place.
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2019-02-151-2/+3
|\
| * Fix #1408: add missing header that defines m_len on AIX 64-bit mode (#1409)wiggin152019-02-141-2/+3
| |
* | #1398 #1348 / win / cmdline: refactor code so that the 2 cmdline() ↵Giampaolo Rodola2019-02-151-19/+8
|/ | | | implementations can be called separately (and tested separately)
* win / cmdline: add free() and CloseHandle() callsGiampaolo Rodola2019-02-041-3/+10
|
* #1348: give CREDITS to @EccoTheFlinstones + some minor style changesGiampaolo Rodola2019-02-031-30/+32
|
* Starting from windows 8.1, get commandline content using ↵EccoTheFlintstone2019-02-032-25/+183
| | | | | NtQueryInformationProcess (see #1384) (#1398) #1384, #1398: on windows 8.1, get cmdline() using NtQueryInformationProcess in case the original method fails with ACCESS_DENIED
* #1376 Windows: check if variable is NULL before free()ing itGiampaolo Rodola2018-12-101-5/+8
|
* fix #1370: improper usage of CloseHandle() may lead to override the original ↵Giampaolo Rodola2018-12-081-1/+1
| | | | error code resulting in raising a wrong exception
* (Windows) use PROCESS_QUERY_LIMITED_INFORMATION access rights (#1376)Giampaolo Rodola2018-12-082-16/+4
| | | #1376 / Windows / OpenProcess - use PROCESS_QUERY_LIMITED_INFORMATION wherever possible. This results in less AccessDenied exceptions being thrown for system processes.
* give CREDITS to @amanusk for #1369 / #1352 and update docGiampaolo Rodola2018-12-011-3/+7
|
* Add CPU frequency support for FreeBSD (#1369)Alex Manuskin2018-12-012-0/+34
| | | | Add CPU frequency support for FreeBSD (patch by @amanusk)
* FreeBSD adding temperature sensors (WIP) (#1350)Alex Manuskin2018-11-032-0/+37
| | | FreeBSD: add temperature sensors
* OSX / SMC / sensors: revert #1284 (#1325)Giampaolo Rodola2018-08-142-317/+0
| | | | | | | | | | | | * setup.py: add py 3.7 * Revert OSX sensors code due to copyright constraints It turns out code contributed in PR #1284 was using parts of a source code released by Apple [1] which uses GPL license which is incompatible with psutil's license (BSD). [1] https://gist.github.com/edvakf/4049362
* revert file renaming of macos files; get them back to 'osx' prefixGiampaolo Rodola2018-06-294-3/+3
|
* Rename OSX to macOS (#1298)Giampaolo Rodola2018-06-264-3/+3
| | | rename OSX to macOS
* #1284: give credits to @amanusk + some minor adjustmentsGiampaolo Rodola2018-06-261-2/+4
|
* Osx temps (#1284)Alex Manuskin2018-06-262-0/+315
| | | OSX: add temperatures() and fans()
* fix freebsd compilation warningGiampaolo Rodola2018-05-221-2/+0
|
* 771 Windows CPU count (#1257)Giampaolo Rodola2018-04-131-41/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * use GetLogicalProcessorInformation() to get logical cpu_count() * return None if cpu_count() is undetermined + add mock test * style * factor out logical CPU num fun * remove unused code * psutil_get_num_cpus(): provide an option to fail on err * add comments * reuse get_num_cpus() function * error out if get_num_cpus() fail * use GetLogicalProcessorInformationEx to get phys CPU num * on win vista/xp just return None for phys CPU count * rename vars * fix C compiler warnings + remove mingw workarounds * return None if phys cpu count cant' be determined; update HISTORY * update HISTORY * update doc * add WMI tests * refactor tests * print debug msg for cpu phys returning None on win < 7 * try to fix win test * appveyor debug * fix typo * adjust appveyor 64 bit versions * debug msg * fix for loop * re-enable python versions * (maybe) finally fix GetLogicalProcessorInformationEx return len
* #1255 adjust style + give CREDITS to @hrefGiampaolo Rodola2018-03-291-6/+9
|
* Fixes swap_memory not returning bytes on FreeBSD (#1260)Denis Krienbühl2018-03-291-4/+6
|
* Arguments for NoSuchProcess and AccessDenied for the C ext (#1180)Giampaolo Rodola2017-11-245-17/+17
| | | | | | * change NoSuchProcess and AccessDenied C exceptions signatures * fix arg call on win
* 1173 debug mode (#1176)Giampaolo Rodola2017-11-145-8/+8
| | | | | | | | | | | | | | | | | | | | | | * implement PSUTIL_DEBUG from C module * update doc * add psutil_debug() utility function * update doc * enable PSUTIL_DEBUG for tests * update appveyor.yml * change psutil_debug() signature so that it can accept variable num of args * provide DEBUG info in psutil_raise_for_pid() * properly print debug message * do not print too much
* refactor winmake.pyGiampaolo Rodola2017-11-121-1/+0
|
* use a C global variable to figure out whether we're in testing modeGiampaolo Rodola2017-11-121-2/+3
|
* rename C funcGiampaolo Rodola2017-11-121-2/+2
|
* AIX: implement num_ctx_switches (#1164)wiggin152017-10-315-71/+127
| | | | | | * small changes * AIX: implement num_ctx_switches
* first pass (#1133)Max Bélanger2017-09-281-4/+8
|
* AIX support (#1123)wiggin152017-09-265-0/+650
| | | | | | | | | | | | | | | | | | | | * 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
* fix #1105: can't compile psutil on freebsd 12Giampaolo Rodola2017-09-081-0/+36
|
* 1044 osx zombies (#1100)Giampaolo Rodola2017-06-071-14/+12
| | | | | | | | | | | | | | | | | | | | | | * small refactoring * #1044: define a separate ctx manager which handles zombie processes * add create_zombie_proc utility function * disable test on windows * #1044: cmdline() was incorrectly raising AD instead of ZombieProcess * #1044: environ() was incorrectly raising AD instead of ZombieProcess * #1044: memory_maps() was incorrectly raising AD instead of ZombieProcess * #1044: threads() was incorrectly raising AD instead of ZombieProcess * enhance test * fix threads()
* fix C compiler warningGiampaolo Rodola2017-05-302-4/+9
|
* Windows: fix wrapper around OpenProcess (pid_exists() no longer lies) (#1094)Giampaolo Rodola2017-05-282-26/+161
| | | | | | | | | | | | | | | | | | | | | | * windows / C: add assert to make sure pid_is_running() is correct * set an error str * check if pid is actually gone in psutil_handle_from_pid_waccess * small refactoring * GetExitCodeProces() return code was not checked * define a reusable check_phandle() C function which checks whether the process handle is actually running * refactoring * re-enable windows test which now passes * check pid_is_running -1 return value in proc_connections(); also refactor some C code * fix memleak
* Fix 1091 nitpicks (#1097)Giampaolo Rodola2017-05-282-104/+121
| | | | | | | | | | | | | | | | | | | | | | * rename C module * rename C file * fix compilation error * small refactoring * small refactoring * raise AccessDenied if info.pr_envp is empty, see https://github.com/giampaolo/psutil/pull/1091#issuecomment-304530771 * fix envs with no equal sign * style * update doc * style
* Add environment parsing (#1091)Oleksii Shevchuk2017-05-212-0/+407
| | | | | | * Add common functions to extract information from SunOS process address space * SunOS feature: Add .environ()
* win process_info.c: move declarations at the top of the moduleGiampaolo Rodola2017-05-191-141/+144
|
* Fix https://github.com/giampaolo/psutil/issues/1077 (#1081)Oleksii Shevchuk2017-05-182-7/+7
|