Intel® Trace Analyzer and Collector User and Reference Guide

ID 767272
Date 8/08/2022

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents


int VT_tracestate (int * state)


Gets logging state of current thread.

Set by configuration options PROCESS/CLUSTER, modified by VT_traceon/off().

There are three states:

  • 0 = thread is logging

  • 1 = thread is currently not logging

  • 2 = logging has been turned off completely

Different threads within one process may be in state 0 and 1 at the same time because VT_traceon/off() sets the state of the calling thread, but not for the whole process.

State 2 is set through the configuration option PROCESS/CLUSTER NO for the whole process and cannot be changed.


VTTRACESTATE( state, ierr )

Return values

state is set to current state

Returns error code

Did you find the information on this page useful?

Characters remaining:

Feedback Message