diff options
author | gmbroome <thrirhrafnir@gmail.com> | 2018-03-27 12:27:12 -0400 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-03-27 13:27:12 -0300 |
commit | 42c3a1fcb39458b6f8f39539baef94158bacf164 (patch) | |
tree | 10bbdffe3e0b69cd5ede763086931bc38b2f14f3 /solaris/SolarisProcess.h | |
parent | 1cf8f429a5b672d44c7e87ca21b0a451f581fdae (diff) |
Solaris: Implement LWP enumeration (#768)
Squashed the following commits:
* Solaris: Get LWP enumeration working
* Solaris: Make showing and hiding of kernel threads behave
* Solaris: remove usage of lwpstatus that is no longer needed
* Solaris: no discrete access to parent proc structure needed
* Solaris: Restore runtime MaxPid detection after LWP changes
* Solaris: Workaround virtual PID signal issue by shadowing kill() with a macro
* Solaris: Fix unintention double-shifting of virtual PID for LWP enumeration
* Solaris: Add LWPID to default display since LWP enumeration is also default
* Solaris: use PAGE_SIZE_KB from Process.h instead of custom definition
* Solaris: stop LWP enumeration at 1023 LWPs per proc since that is all we can handle in the virtual PID
Diffstat (limited to 'solaris/SolarisProcess.h')
-rw-r--r-- | solaris/SolarisProcess.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/solaris/SolarisProcess.h b/solaris/SolarisProcess.h index b58a4780..5d391121 100644 --- a/solaris/SolarisProcess.h +++ b/solaris/SolarisProcess.h @@ -21,7 +21,8 @@ typedef enum SolarisProcessFields { TASKID = 103, POOLID = 104, CONTID = 105, - LAST_PROCESSFIELD = 106, + LWPID = 106, + LAST_PROCESSFIELD = 107, } SolarisProcessField; @@ -34,6 +35,10 @@ typedef struct SolarisProcess_ { projid_t projid; poolid_t poolid; ctid_t contid; + bool is_lwp; + pid_t realpid; + pid_t realppid; + pid_t lwpid; } SolarisProcess; |