32 level = 0, 32 level = 1 – Motorola 68P02958C00-B User Manual

Page 296

Advertising
background image

Software Diagnostics Output

C-4

## 32 LEVEL = 0

# of buffers in heap

: %% 1

# of buffers left in heap

: %% 2

The minimum # of buffers left

in heap from last diagnostic

: %% 3

# of times the heap was empty

since last diagnostic

: %% 4

Size of one buffer in bytes

: %% 5

During init flag

: %% 6

Bad heap flag

: %% 7

Unit time for freeing by force

: %% 8

Pointer to start chain

: %% 9

Pointer to current chain

: %% 10

Pointer to end chain

: %% 11

1. Number of buffers in heap instance

2. Number of free buffers in heap.

3. Minimum number of free buffers left in heap since the last diagnostic. This information reflects the

extent to which the heap is capable of meeting RTU needs under heavy traffic.

4. The number of times, since the last diagnostic, the RTU software detected an empty heap. A large

number of times points to incorrect allocation of memory resources.

5. Size of buffer including the overhead for managing a single buffer.

6. The flag that indicates that the RTU is in startup stage.

7. The flag that points to memory overwrite in the memory area allocated to the heap.

8. Unit of time to be measure how long a buffer is out of the heap (used by other parts of the system).

9. 10. and 11. The heap consists of a chain of joined buffers. For chain management purposes, a key

holds pointers to the beginning of the chain, the end of the chain, and to the next buffer that will be
taken from the chain. The P_current_chain value must be (numerically) between the start and end
values.

## 32 LEVEL = 1

Buf

Key

Next

Cntr

#FF

--------------------------------------

Buf

Address of the buffer in the memory.

Key

Handle (identifier) of the heap. (If =0, buffer is in heap. Otherwise buffer is in use by system.)

Next

Next buffer in heap to be allocated. (Meaningful only if key=0.)

Cntr

Counts intervals of time that the buffer is out of the heap. (Meaningful only if key

0)

#FF

Forced free. (Meaningful only if key

0.) Indicates the total number of units that the buffer was

in use out of the heap. Set back to zero when heap is returned to heap. If this value is greater
than 3, there may be a memory leak problem. Please consult product group.

Advertising