aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-04-25 17:51:31 +0200
committerLukas Larsson <[email protected]>2017-09-15 10:04:59 +0200
commit23f09f3bbeb924b44fbcef882b1f0c24e90626bc (patch)
tree2d113d52f77ddae6a392ac99b25e501938cc6354 /erts/emulator/beam
parent7b0c3b7e51bf6b13c95565c99cd80191525295e1 (diff)
downloadotp-23f09f3bbeb924b44fbcef882b1f0c24e90626bc.tar.gz
otp-23f09f3bbeb924b44fbcef882b1f0c24e90626bc.tar.bz2
otp-23f09f3bbeb924b44fbcef882b1f0c24e90626bc.zip
erts: Add number of enif_select's to check_io_debug
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r--erts/emulator/beam/erl_bif_info.c6
-rw-r--r--erts/emulator/beam/sys.h1
2 files changed, 5 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c
index 3b6e83c242..c782d7a8ce 100644
--- a/erts/emulator/beam/erl_bif_info.c
+++ b/erts/emulator/beam/erl_bif_info.c
@@ -3574,13 +3574,15 @@ BIF_RETTYPE erts_debug_get_internal_state_1(BIF_ALIST_1)
szp = &sz;
hpp = NULL;
while (1) {
- res = erts_bld_tuple(hpp, szp, 3,
+ res = erts_bld_tuple(hpp, szp, 4,
erts_bld_uint(hpp, szp,
(Uint) no_errors),
erts_bld_uint(hpp, szp,
(Uint) ciodi.no_used_fds),
erts_bld_uint(hpp, szp,
- (Uint) ciodi.no_driver_select_structs));
+ (Uint) ciodi.no_driver_select_structs),
+ erts_bld_uint(hpp, szp,
+ (Uint) ciodi.no_enif_select_structs));
if (hpp)
break;
hp = HAlloc(BIF_P, sz);
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h
index e2a21c0ecd..0bf2ecfc8b 100644
--- a/erts/emulator/beam/sys.h
+++ b/erts/emulator/beam/sys.h
@@ -790,6 +790,7 @@ void fini_getenv_state(GETENV_STATE *);
typedef struct {
int no_used_fds;
int no_driver_select_structs;
+ int no_enif_select_structs;
} ErtsCheckIoDebugInfo;
int erts_check_io_debug(ErtsCheckIoDebugInfo *ip);