From e5875001247e6a6ac4f474157a51a8c54f94ae49 Mon Sep 17 00:00:00 2001
From: Hans Bolinder
If the callback module exports a
If the callback module does not export a
If the callback module's
The
To obtain more information about a process, including its state, see
If the callback module exports a
If the callback module does not export a
If the callback module's
The
The following functions are used when implementing a +
The
This function is called from
This function is called from
This function orders the process to terminate with the
+ given
These functions are intended only to help with debugging. They are provided for
convenience, allowing developers to avoid having to create their own state extraction
functions and also avoid having to interactively extract state from the return values of
-
The value of
The
To obtain more information about a process, including its state, see
If a
The
This module contains functions for sending system messages used by programs, and messages used for debugging purposes. -
-Functions used for implementation of processes
- should also understand system messages such as debugging
- messages and code change. These functions must be used to implement the use of system messages for a process; either directly, or through standard behaviours, such as
The default timeout is 5000 ms, unless otherwise specified. The
-
This module contains functions for sending system messages used by + programs, and messages used for debugging purposes.
+Functions used for implementation of processes are also expected to
+ understand system messages, such as debug messages and code change. These
+ functions must be used to implement the use of system messages for a
+ process; either directly, or through standard behaviors, such as
+
The default time-out is 5000 ms, unless otherwise specified.
+
The functions make references to a debug structure.
+ The debug structure is a list of
Processes which are not implemented as one of the standard - behaviours must still understand system - messages. There are three different messages which must be - understood: -
+Processes that are not implemented as one of the standard + behaviors must still understand system messages. The following + three messages must be understood:
Plain system messages. These are received as
Shutdown messages. If the process traps exits, it must
- be able to handle an shut-down request from its parent, the
+ be able to handle a shutdown request from its parent, the
supervisor. The message
There is one more message which the process must understand if the modules used to implement the process change dynamically during runtime. An example of such a process is the
If the modules used to implement the process change dynamically
+ during runtime, the process must understand one more message. An
+ example is the
This message is used by the release handler to find which - processes execute a certain module. The process may at a - later time be suspended and ordered to perform a code change - for one of its modules. -
+ processes that execute a certain module. The process can later be + suspended and ordered to perform a code change for one of its + modules.When debugging a process with the functions of this
- module, the process generates system_events which are
+ module, the process generates system_events, which are
then treated in the debug function. For example,
There are three predefined system events which are used when a +
Three predefined system events are used when a process receives or sends a message. The process can also define its own system events. It is always up to the process itself to format these events.
See
See the introduction of this manual page.
Turns the logging of system events On or Off. If On, a
- maximum of
Enables or disables the logging of all system events in textual
- format to the file. The events are formatted with a function that is
- defined by the process that generated the event (with a call
- to
Enables or disables the collection of statistics. If
Tells the process to change code. The process must be
+ suspended to handle this message. Argument
Prints all system events on
Gets the state of the process.
+These functions are intended only to help with debugging. They are
+ provided for convenience, allowing developers to avoid having to
+ create their own state extraction functions and also avoid having
+ to interactively extract the state from the return values of
+
The value of
For a
+
For a
+
For a
+
For a
+
The module name of the event handler.
+The ID of the handler (which is
The state of the handler.
+If the callback module exports a function
If the callback module does not export a
If the callback module's
Function
For more information about a process, including its state, see
+
Turns off all debugging for the process. This includes
- functions that have been installed explicitly with the
-
Gets the status of the process.
+The value of
A
A
A
A
Callback modules for
Suspends the process. When the process is suspended, it - will only respond to other system messages, but not other - messages.
+Enables installation of alternative debug functions. An example of + such a function is a trigger, a function that waits for some + special event and performs some action when the event is + generated. For example, turning on low-level tracing.
+Resumes a suspended process.
+Turns the logging of system events on or off. If on, a
+ maximum of
If
If
The events are formatted with a function that is defined by the
+ process that generated the event (with a call to
+
Tells the process to change code. The process must be
- suspended to handle this message. The
Enables or disables the logging of all system events in text
+ format to the file. The events are formatted with a function that is
+ defined by the process that generated the event (with a call to
+
Gets the status of the process.
-The value of
Turns off all debugging for the process. This includes
+ functions that are installed explicitly with function
+
Gets the state of the process.
-These functions are intended only to help with debugging. They are provided for
- convenience, allowing developers to avoid having to create their own state extraction
- functions and also avoid having to interactively extract state from the return values of
-
The value of
If the callback module exports a
If the callback module does not export a
If the callback module's
The
To obtain more information about a process, including its state, see
-
Removes an installed debug function from the
+ process.
Replaces the state of the process, and returns the new state.
These functions are intended only to help with debugging, and they should not be - be called from normal code. They are provided for convenience, allowing developers - to avoid having to create their own custom state replacement functions.
+These functions are intended only to help with debugging, and are + not to be called from normal code. They are provided for + convenience, allowing developers to avoid having to create their own + custom state replacement functions.
The
If a
If a
Function
For a
For a
For a
For a
The module name of the event handler.
+The ID of the handler (which is
The state of the handler.
+If a
If a
If the callback module exports a
If the callback module does not export a
If the callback module's
If the callback module exports a
+
If the callback module does not export a
+
If the callback module's function
The
Function
This function makes it possible to install other debug - functions than the ones defined above. An example of such a - function is a trigger, a function that waits for some - special event and performs some action when the event is - generated. This could, for example, be turning on low level tracing. -
-Resumes a suspended process.
Removes a previously installed debug function from the
- process.
Enables or disables the collection of statistics. If
+
Suspends the process. When the process is suspended, it + only responds to other system messages, but not other + messages.
+This function orders the process to terminate with the
- given
Orders the process to terminate with the
+ specified
Prints all system events on
The following functions are used when implementing a + special process. This is an ordinary process, which does not use a + standard behavior, but a process that understands the standard system + messages.
This function can be used by a process that initiates a debug
- structure from a list of options. The values of the
-
Can be used by a process that initiates a debug
+ structure from a list of options. The values of argument
+
This function gets the data associated with a debug option.
Gets the data associated with a debug option.
+
This function is called by a process when it generates a
- system event.
This function is used by a process module that wishes to take care of system
- messages. The process receives a
This function never returns. It calls the function
-
The
This function is used by a process module to take care of system
+ messages. The process receives a
+
This function never returns. It calls either of the + following functions:
+Argument
Prints the logged system events in the debug structure +
Prints the logged system events in the debug structure,
using
This function is called from
Called from
This function is called from
Called from
Called from
Called from
This function is called from
Called from
This function is called from
Called from