diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-03-03 15:14:03 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-04-29 18:31:34 +0200 |
commit | cc290266f06458c8009182167418ef9f1e21a794 (patch) | |
tree | 603d0f327c2d65b67289740c3a5baa12e9ca19a7 /lib/runtime_tools/c_src/dyntrace_lttng.h | |
parent | d4c938686562d3c5ccf6a34aafeef6460b9b88f8 (diff) | |
download | otp-cc290266f06458c8009182167418ef9f1e21a794.tar.gz otp-cc290266f06458c8009182167418ef9f1e21a794.tar.bz2 otp-cc290266f06458c8009182167418ef9f1e21a794.zip |
runtime_tools: Add lttng 'ports' tracing
Diffstat (limited to 'lib/runtime_tools/c_src/dyntrace_lttng.h')
-rw-r--r-- | lib/runtime_tools/c_src/dyntrace_lttng.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/lib/runtime_tools/c_src/dyntrace_lttng.h b/lib/runtime_tools/c_src/dyntrace_lttng.h index 03cf8a27c1..2e0b921621 100644 --- a/lib/runtime_tools/c_src/dyntrace_lttng.h +++ b/lib/runtime_tools/c_src/dyntrace_lttng.h @@ -147,6 +147,53 @@ TRACEPOINT_EVENT( ) ) +/* Ports */ + + +TRACEPOINT_EVENT( + com_ericsson_dyntrace, + port_open, + TP_ARGS( + char*, pid, + char*, driver, + char*, port + ), + TP_FIELDS( + ctf_string(pid, pid) + ctf_string(driver, driver) + ctf_string(port, port) + ) +) + +TRACEPOINT_EVENT( + com_ericsson_dyntrace, + port_exit, + TP_ARGS( + char*, port, + char*, reason + ), + TP_FIELDS( + ctf_string(port, port) + ctf_string(reason, reason) + ) +) + +TRACEPOINT_EVENT( + com_ericsson_dyntrace, + port_link, + TP_ARGS( + char*, from, + char*, to, + char*, type + ), + TP_FIELDS( + ctf_string(from, from) + ctf_string(to, to) + ctf_string(type, type) + ) +) + + /* Process messages */ TRACEPOINT_EVENT( |