diff options
author | Rick Reed <[email protected]> | 2012-03-16 16:01:44 -0700 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2012-04-05 14:58:44 +0200 |
commit | daf8f46c46745ebb6fcdfb226252c7823264a410 (patch) | |
tree | eba550a3e78aa1ec535bbca5e95dd764c9e59cf2 /erts/emulator/beam/erl_lock_count.h | |
parent | fbd09660fe4bd57632ec481a60106cf79ea93bcd (diff) | |
download | otp-daf8f46c46745ebb6fcdfb226252c7823264a410.tar.gz otp-daf8f46c46745ebb6fcdfb226252c7823264a410.tar.bz2 otp-daf8f46c46745ebb6fcdfb226252c7823264a410.zip |
erts: Add lcnt port and suspend options
* Add new suspend, location, and port_locks options to erts_debug:lock_counters.
* Init and destroy lock counting for processes and ports as appropriate.
Conflicts:
erts/emulator/beam/erl_bif_info.c
Diffstat (limited to 'erts/emulator/beam/erl_lock_count.h')
-rw-r--r-- | erts/emulator/beam/erl_lock_count.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_lock_count.h b/erts/emulator/beam/erl_lock_count.h index 6306580ae4..690551c71f 100644 --- a/erts/emulator/beam/erl_lock_count.h +++ b/erts/emulator/beam/erl_lock_count.h @@ -89,6 +89,7 @@ #define ERTS_LCNT_OPT_LOCATION (((Uint16) 1) << 1) #define ERTS_LCNT_OPT_PROCLOCK (((Uint16) 1) << 2) #define ERTS_LCNT_OPT_COPYSAVE (((Uint16) 1) << 3) +#define ERTS_LCNT_OPT_PORTLOCK (((Uint16) 1) << 4) typedef struct { unsigned long s; @@ -201,5 +202,7 @@ void erts_lcnt_clear_counters(void); char *erts_lcnt_lock_type(Uint16 type); erts_lcnt_data_t *erts_lcnt_get_data(void); +#define ERTS_LCNT_LOCK_TYPE(lockp) ((lockp)->flag & ERTS_LCNT_LT_ALL) + #endif /* ifdef ERTS_ENABLE_LOCK_COUNT */ #endif /* ifndef ERTS_LOCK_COUNT_H__ */ |