aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools/src
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-04-20 11:47:16 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-04-29 18:31:36 +0200
commita80b7eeb9927309cdbc68296ca9892486a3a8707 (patch)
tree6373054b1d5a283f8ea76204938b948d6b147c2d /lib/runtime_tools/src
parent4e2a61519f022a85e7774d9be65067d33256cb01 (diff)
downloadotp-a80b7eeb9927309cdbc68296ca9892486a3a8707.tar.gz
otp-a80b7eeb9927309cdbc68296ca9892486a3a8707.tar.bz2
otp-a80b7eeb9927309cdbc68296ca9892486a3a8707.zip
runtime_tools: Extend 'trace' and 'enabled' tracer callbacks
Adds the following capabilities to dyntrace * enabled_running_ports/3 * enabled_running_procs/3 changed from enabled_running/3 * trace_running_ports/6 * trace_running_procs/6 changed from trace_running/6
Diffstat (limited to 'lib/runtime_tools/src')
-rw-r--r--lib/runtime_tools/src/dyntrace.erl16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/runtime_tools/src/dyntrace.erl b/lib/runtime_tools/src/dyntrace.erl
index 8a449e5749..28e6d67d96 100644
--- a/lib/runtime_tools/src/dyntrace.erl
+++ b/lib/runtime_tools/src/dyntrace.erl
@@ -45,7 +45,8 @@
trace/6,
trace_procs/6,
trace_ports/6,
- trace_running/6,
+ trace_running_procs/6,
+ trace_running_ports/6,
trace_call/6,
trace_send/6,
trace_receive/6,
@@ -53,7 +54,8 @@
-export([enabled_procs/3,
enabled_ports/3,
- enabled_running/3,
+ enabled_running_procs/3,
+ enabled_running_ports/3,
enabled_call/3,
enabled_send/3,
enabled_receive/3,
@@ -157,7 +159,10 @@ trace_procs(_TraceTag, _TracerState, _Tracee, _FirstTraceTerm, _SecondTraceTerm,
trace_ports(_TraceTag, _TracerState, _Tracee, _FirstTraceTerm, _SecondTraceTerm, _Opts) ->
erlang:nif_error(nif_not_loaded).
-trace_running(_TraceTag, _TracerState, _Tracee, _FirstTraceTerm, _SecondTraceTerm, _Opts) ->
+trace_running_procs(_TraceTag, _TracerState, _Tracee, _FirstTraceTerm, _SecondTraceTerm, _Opts) ->
+ erlang:nif_error(nif_not_loaded).
+
+trace_running_ports(_TraceTag, _TracerState, _Tracee, _FirstTraceTerm, _SecondTraceTerm, _Opts) ->
erlang:nif_error(nif_not_loaded).
trace_call(_TraceTag, _TracerState, _Tracee, _FirstTraceTerm, _SecondTraceTerm, _Opts) ->
@@ -181,7 +186,10 @@ enabled_procs(_TraceTag, _TracerState, _Tracee) ->
enabled_ports(_TraceTag, _TracerState, _Tracee) ->
erlang:nif_error(nif_not_loaded).
-enabled_running(_TraceTag, _TracerState, _Tracee) ->
+enabled_running_procs(_TraceTag, _TracerState, _Tracee) ->
+ erlang:nif_error(nif_not_loaded).
+
+enabled_running_ports(_TraceTag, _TracerState, _Tracee) ->
erlang:nif_error(nif_not_loaded).
enabled_call(_TraceTag, _TracerState, _Tracee) ->