This document describes the changes made to the Runtime_Tools application.
The DTrace source patch from Scott Lystig Fritchie is integrated in the source tree. Using an emulator with dtrace probe is still not supported for production use, but may be a valuable debugging tool. Configure with --with-dynamic-trace=dtrace (or --with-dynamic-trace=systemtap) to create a build with dtrace probes enabled. See runtime_tools for documentation and examples.
Own Id: OTP-10017
Earlier dbg:stop only did erlang:trace_delivered and did not flush the trace file driver. Therefore there could still be trace messages that were delivered to the driver (guaranteed by erlang:trace_delivered) but not yet written to the file when dbg:stop returned. Flushing is now added on each node before the dbg process terminates.
Own Id: OTP-9651
File handles created by the trace_file_drv driver was inherited to child processes. This is now corrected.
Own Id: OTP-9658
Erlang/OTP can now be built using parallel make if you
limit the number of jobs, for instance using '
Own Id: OTP-9451
Two new built-in trace pattern aliases have been added: caller_trace (c) and caller_exception_trace (cx). See the dbg:ltp/0 documentation for more info.
Own Id: OTP-9458
Two new built-in trace pattern aliases have been added: caller_trace (c) and caller_exception_trace (cx). See the dbg:ltp/0 documentation for more info.
Own Id: OTP-9458
When a big number of trace patterns are set by inviso the Erlang VM could get unresponsive for several seconds. This is now corrected.
Own Id: OTP-9048 Aux Id: seq11480
Minor corrections and removal of a temporary workaround.
Own Id: OTP-8755 Aux Id: seq-11628, seq-11639
Small fix in inviso_autostart_server.
Own Id: OTP-8783 Aux Id: seq11628
Miscellaneous updates.
Own Id: OTP-8705
Cross compilation improvements and other build system improvements.
Most notable:
(Thanks to Henrik Riomar for suggestions and testing)
(Thanks to Winston Smith for the AVR32-Linux cross configuration and testing)
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-8323
Cleanups suggested by tidier and modernization of types and specs.
Own Id: OTP-8455
The documentation is now built with open source tools (xsltproc and fop) that exists on most platforms. One visible change is that the frames are removed.
Own Id: OTP-8201
Own Id: OTP-8157
Own Id: OTP-7519
The copyright notices have been updated.
Own Id: OTP-7851
Now, dbg:p/2 accepts {X,Y,Z} process specification as stated in the documentation. It also now accepts "<X.Y.Z>" like from erlang:pid_to_list/1.
There is now a pre-saved match spec in dbg that saves a lot of typing. Use dbg:ltp/0 to find out more...
Own Id: OTP-7867
Fixed a timestamp problem where some events could be sent out of order. Minor fixes to presentation of data.
Own Id: OTP-7544 Aux Id: otp-7442
Trace messages could be lost when
Own Id: OTP-7164
The documentation has been updated so as to reflect
the last updates of the Erlang shell as well as the minor
modifications of the control sequence
Superfluous empty lines have been removed from code examples and from Erlang shell examples.
Own Id: OTP-6944 Aux Id: OTP-6554, OTP-6911
Memory management improvements especially for the runtime system with SMP support:
If you
for some reason want the memory allocators to be
configured as before, you can pass the
For more
information see the
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-7100
Processes suspended via
Processes could previously be suspended by one process and resumed by another unless someone was tracing the suspendee. This is not possible anymore. The process resuming a process has to be the one that suspended it.
*** POTENTIAL INCOMPATIBILITY ***
Own Id: OTP-6946
The undocumented and unsupported function
Own Id: OTP-6939
In this release the following has been fixed and enhanced: Autostart: It is now possible to configure modules that shall be loaded by the autostart mechanism. This because it is not certain that all application systems make use of the OTP boot script to set up paths to all Erlang modules. Runtime_tools/Inviso: A bug in the fetch_log functionality has been fixed. Further a bug that was (supposedly) fixed in a previous patch concerning meta-tracer write_ti has been fixed (again) in this patch. A bug in inviso_as_lib making remote autostart config file updates fail has been fixed. Inviso: inviso_tool has been given a flush API.
Own Id: OTP-6918
The following bugs/improvements have been done: Internal interworking between inviso_rt and inviso_rt_meta. The call function used by inviso_rt to call inviso_rt_meta is now protected with a monitor. Inviso_rt_meta now includes the timestamp of the incoming meta trace message when calling the call-callback. (Makes it possible to add a "better" timestamp to the ti-file.) Bug in inviso_tool making it not remove trace patterns when terminating. Bug in internal function h_start_session making inviso_tool crash if there were no active nodes to start the session on. The user-inviso_tool and inviso API-inviso control component request/response gen_server protocols had default time-out. Since many trace operations can be time consuming, a longer time-out is necessary. Improved overload protection. It is now possible to let the overload protection renew itself (e.g after an exit from an external overload protector). Inviso_rt_meta now fully uses the exception_trace match spec action term. Run Trace Case API (as in contrast to activate and deactivate trace case APIs) in inviso_tool. Flush trace-port API added to inviso. Get_session_data API added to inviso_tool. Improved inviso_tool:stop making it possible to name nodes which shall not have their trace patterns removed when inviso_tool terminates. Bug in handling of writing multiple ti-entries if returned from a call/return_from call-back in inviso_rt_meta Process trace flags are no longer explicitly removed by the inviso_tool when it terminates. Not necessary. Inviso_tool get_autostart_data adopted to standard autostarter.
*** INCOMPATIBILITY with Meta trace call-backs are called with different arguments now. ***
Own Id: OTP-6881
A bug in inviso_rt_meta caused an ETS table containing information on initiated (init_tpm) functions to be lost when suspending tracing. Further an enhancement to inviso_rt has been introduced making it possible to activate process trace flags based on globally registered names. It is then not an error to activate a global name on a node where the name does not reside. The process count in the return value will simply be set to zero (hence exactly one node in the NodeResult part of the return value will indicate one matching process found). A bug was found in fetch_log API. At the same time the fetch_log functionality was enhanced to also offer flow control making fetcher processes send chunks of transferred file data at a slower pace.
Own Id: OTP-6703
Minor Makefile changes.
Own Id: OTP-6689 Aux Id: OTP-6742
An experimental tool called
Own Id: OTP-6700
Misc improvements.
Own Id: OTP-6576
This application has been updated to eliminate warnings by Dialyzer.
Own Id: OTP-6551
This ticket includes several improvements and bugfixes to both runtime_tools and inviso. The overload mechanism can now also react to incoming messages. This is useful if an external overload watch-dog is used. Some improvements of variable bindings has been done to the default autostart mechanism - inviso_autostart_server. Autostart "jobs" can now be done in parallel, allowing for some jobs to hang waiting for some parts of the traced system to become ready before proceeding. Previously when using named meta-match-specs (tpm_ms) ending up with zero match-specs still kept the meta trace pattern active. This caused zero match-specs to be equal to unlimited meta tracing on that particular function. If the internal database becomes empty of meta match specs, meta trace pattern is removed for that function. Standard public loop data in the inviso runtime meta tracer process is now extended to a 2-tuple. The functions ctp/1 and ctpl/1 are added making it possible to remove trace patterns for a list of functions rather than one by one. Inviso_rt_meta will now accept a list of binaries to be output into the trace information file, in additions to a single binary. Further it is also possible to make own output to the trace information file using the write_ti/1 function. An error was discovered in inviso_rt making the inviso_rt_meta remain rather than terminate if the inviso_rt terminated due to "running alone" (not allowed to run without a control component). A new tool, inviso_tool, has been added to the inviso application.
Own Id: OTP-6426
Several minor bugs and race conditions eliminated in the runtime_tools and observer applications.
Own Id: OTP-6265
There are new BIFs
The
Own Id: OTP-6281
Added the runtime part of the Inviso tracer, see the new Inviso application for more information. This also meant adding an application callback module and an application supervisor tree for Runtime_Tools.
The
Own Id: OTP-5373 Aux Id: seq9729
Linked in drivers in the Crypto, and Asn1 applications
are now compiled with the
Linked in drivers on MacOSX are not compiled with the
undocumented
Linked in driver in Crypto, and port programs in SSL, now compiles on OSF1.
Minor
Own Id: OTP-5346