aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/global.h
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-04-10 11:50:56 +0200
committerJohn Högberg <[email protected]>2018-04-16 15:44:56 +0200
commita7e0369000282c22e784a769b0e41598df1682e9 (patch)
tree0f4ede9985ac64b3b0d20967e7374ec0ed19868c /erts/emulator/beam/global.h
parent9128efbb8dadc819938820af0d9de9128e72eb07 (diff)
downloadotp-a7e0369000282c22e784a769b0e41598df1682e9.tar.gz
otp-a7e0369000282c22e784a769b0e41598df1682e9.tar.bz2
otp-a7e0369000282c22e784a769b0e41598df1682e9.zip
erts: Keep track of which NIF a scheduler is executing
This may be of interest in crash dumps and allows the upcoming allocation tagging feature to track allocations on a per-NIF basis. Note that this is only updated when user code calls a NIF; it's not altered when the emulator calls NIFs during code upgrades or tracing.
Diffstat (limited to 'erts/emulator/beam/global.h')
-rw-r--r--erts/emulator/beam/global.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/global.h b/erts/emulator/beam/global.h
index f4fea86cdc..2cf268162d 100644
--- a/erts/emulator/beam/global.h
+++ b/erts/emulator/beam/global.h
@@ -123,6 +123,7 @@ void erts_unload_nif(struct erl_module_nif* nif);
extern void erl_nif_init(void);
extern int erts_nif_get_funcs(struct erl_module_nif*,
struct enif_func_t **funcs);
+extern Module *erts_nif_get_module(struct erl_module_nif*);
extern Eterm erts_nif_call_function(Process *p, Process *tracee,
struct erl_module_nif*,
struct enif_func_t *,