SourcePoint Intel Help

Table of Contents

issleeping

Display whether the specified processor is sleeping.

Syntax

[result =] [[px]] issleeping

Where:

[px]

is the viewpoint override, including punctuation ( [ ] ), specifying that the viewpoint is temporarily set to processor x of the boundary scan chain.ย  The processor can be specified as px (where x is the processor ID), or an alias you have defined for a given processor ID.ย  ALL cannot be used as a viewpoint override.

result

specifies a debug variable to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

Discussion

Use the issleeping control variable to determine if a specific target processor is sleeping. Entering the command at the command line or in an expression returns 0 for stopped or running or 1 for sleeping.

Example 1

To display the state of the viewpoint processor:

Command input:

issleeping

Result:

FALSE

Example 2

To display the state of processor P3:

Command input:

[P3]issleeping

Result:

TRUE

Example 3

To use issleeping in an expression: ย 

Command input:

printf("processor is %s\n", issleeping ? "sleeping" : "not sleeping")

Result:

processor is sleeping

ย 

ย