diff options
author | John Högberg <john@erlang.org> | 2019-08-27 13:11:25 +0200 |
---|---|---|
committer | John Högberg <john@erlang.org> | 2019-09-16 14:21:25 +0200 |
commit | 40356bd2ae0e4f4c31204b3dd13d14541442f1a1 (patch) | |
tree | c3845959870988c148b2fbade94808bd1ebc0ae8 /erts/emulator/beam/beam_load.h | |
parent | 20cf78bed119da47c66c3efd77c8199b424582b7 (diff) | |
download | erlang-40356bd2ae0e4f4c31204b3dd13d14541442f1a1.tar.gz |
erts: Refactor BIF tracing
This commit replaces our current BIF-specific tracing functionality
with the general function/export tracing used for everything else,
fixing a few longstanding issues:
* BIFs that trapped to themselves, for example lists:reverse/2,
would generate a call trace message for each trap but only a
single return trace message.
* BIFs that trapped elsewhere, like erlang:delete_module/1, would
lose their return trace messages altogether.
* Return/exception trace messages on tail calls would point at the
function "above" the caller.
* Call count tracing simply didn't work.
Diffstat (limited to 'erts/emulator/beam/beam_load.h')
-rw-r--r-- | erts/emulator/beam/beam_load.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_load.h b/erts/emulator/beam/beam_load.h index 156c3c45e2..e7127c5b08 100644 --- a/erts/emulator/beam/beam_load.h +++ b/erts/emulator/beam/beam_load.h @@ -106,7 +106,7 @@ typedef struct beam_code_header { }BeamCodeHeader; -# define BEAM_NIF_MIN_FUNC_SZ 4 +# define BEAM_NATIVE_MIN_FUNC_SZ 4 void erts_release_literal_area(struct ErtsLiteralArea_* literal_area); int erts_is_module_native(BeamCodeHeader* code); |