diff options
author | Rickard Green <[email protected]> | 2016-05-31 21:04:38 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2016-05-31 21:04:38 +0200 |
commit | 196224d37f0e973444c20af3d90b2663e1e62da8 (patch) | |
tree | f49bf234217a6e58fac5fee15842016b52e05bb6 | |
parent | 7321e2a3cde97342f966193cb69e682596e36536 (diff) | |
parent | 9e4d723e601f720e024237e56c6f302ce5125831 (diff) | |
download | otp-196224d37f0e973444c20af3d90b2663e1e62da8.tar.gz otp-196224d37f0e973444c20af3d90b2663e1e62da8.tar.bz2 otp-196224d37f0e973444c20af3d90b2663e1e62da8.zip |
Merge branch 'rickard/etp-commands-fix'
* rickard/etp-commands-fix:
Update process state flags in etp-commands
-rw-r--r-- | erts/emulator/beam/erl_process.h | 3 | ||||
-rw-r--r-- | erts/etc/unix/etp-commands.in | 25 |
2 files changed, 26 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_process.h b/erts/emulator/beam/erl_process.h index 7569fd81bd..7c98b60647 100644 --- a/erts/emulator/beam/erl_process.h +++ b/erts/emulator/beam/erl_process.h @@ -1167,6 +1167,9 @@ void erts_check_for_holes(Process* p); * USR_PRIO -> User prio. i.e., prio the user has set. * PRQ_PRIO -> Prio queue prio, i.e., prio queue currently * enqueued in. + * + * Update etp-proc-state-int in $ERL_TOP/erts/etc/unix/etp-commands.in + * when changing ERTS_PSFLG_*. */ #define ERTS_PSFLGS_ACT_PRIO_MASK \ (ERTS_PSFLGS_PRIO_MASK << ERTS_PSFLGS_ACT_PRIO_OFFSET) diff --git a/erts/etc/unix/etp-commands.in b/erts/etc/unix/etp-commands.in index 4dc24d68b4..8f9945c4b4 100644 --- a/erts/etc/unix/etp-commands.in +++ b/erts/etc/unix/etp-commands.in @@ -1657,8 +1657,29 @@ end define etp-proc-state-int # Args: int # - if ($arg0 & 0xff000000) - printf "GARBAGE | " + if ($arg0 & 0x80000000) + printf "GARBAGE<0x80000000> | " + end + if ($arg0 & 0x40000000) + printf "dirty-running-sys | " + end + if ($arg0 & 0x20000000) + printf "dirty-running | " + end + if ($arg0 & 0x10000000) + printf "dirty-active-sys | " + end + if ($arg0 & 0x8000000) + printf "dirty-io-proc | " + end + if ($arg0 & 0x4000000) + printf "dirty-cpu-proc | " + end + if ($arg0 & 0x2000000) + printf "on-heap-msgq | " + end + if ($arg0 & 0x1000000) + printf "off-heap-msgq | " end if ($arg0 & 0x800000) printf "delayed-sys | " |