aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_trace.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2016-02-29 15:09:26 +0100
committerLukas Larsson <[email protected]>2016-04-15 15:07:38 +0200
commit3738103d0b1195e570a7525c4370cd490a5368aa (patch)
tree24fd26a93799a643c7d672ef0d794696057c0187 /erts/emulator/beam/erl_trace.c
parentb8ca148ba2c98a2bec923dbac6ed52a80aa167ca (diff)
downloadotp-3738103d0b1195e570a7525c4370cd490a5368aa.tar.gz
otp-3738103d0b1195e570a7525c4370cd490a5368aa.tar.bz2
otp-3738103d0b1195e570a7525c4370cd490a5368aa.zip
erts: Add 'spawned' trace event to 'procs' trace flag
OTP-13497 This trace event is triggered when a process is created from the process that is created.
Diffstat (limited to 'erts/emulator/beam/erl_trace.c')
-rw-r--r--erts/emulator/beam/erl_trace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_trace.c b/erts/emulator/beam/erl_trace.c
index 5ba58e9350..3027e34968 100644
--- a/erts/emulator/beam/erl_trace.c
+++ b/erts/emulator/beam/erl_trace.c
@@ -1249,20 +1249,20 @@ trace_proc(Process *c_p, ErtsProcLocks c_p_locks,
* and 'args' may be a deep term.
*/
void
-trace_proc_spawn(Process *p, Eterm pid,
+trace_proc_spawn(Process *p, Eterm what, Eterm pid,
Eterm mod, Eterm func, Eterm args)
{
ErtsTracerNif *tnif = NULL;
if (is_tracer_proc_enabled(p, ERTS_PROC_LOCKS_ALL &
~(ERTS_PROC_LOCK_STATUS|ERTS_PROC_LOCK_TRACE),
- &p->common, &tnif, am_spawn)) {
+ &p->common, &tnif, what)) {
Eterm mfa;
Eterm* hp;
hp = HAlloc(p, 4);
mfa = TUPLE3(hp, mod, func, args);
hp += 4;
- send_to_tracer_nif(p, &p->common, p->common.id, tnif, am_spawn, pid, mfa);
+ send_to_tracer_nif(p, &p->common, p->common.id, tnif, what, pid, mfa);
}
}