Trace stream attributes

The following trace stream attributes compose the posix_trace_attr_t trace stream attributes object:

  • The genversion attribute identifies the origin and version of the trace system.
  • The tracename attribute is a character string defined by the trace controller. It identifies the trace stream.
  • The creation-time attribute represents the time when the trace stream is created.
  • The clock-resolution attribute defines the clock resolution of the clock that is used to generate timestamps.
  • The stream-min-size attribute defines the minimum size in byte of the trace stream. The size is strictly reserved for the trace events.
  • The stream-full-policy attribute defines the policy to follow when the trace stream is full. Its value is POSIX_TRACE_LOOP, POSIX_TRACE_UNTIL_FULL, or POSIX_TRACE_FLUSH.
  • The max-data-size attribute defines the maximum size in byte of the record of a trace event.
  • The inheritance attribute specifies whether a newly created trace stream inherits tracing in its parent's process trace stream. The value of this attribute is either POSIX_TRACE_INHERITED or POSIX_TRACE_CLOSE_FOR_CHILD.
  • The log-max-size attribute defines the maximum size in byte of the trace log associated with an active trace stream. Other stream data is not included in this size.
  • The log-full-policy attribute defines the policy of a trace log associated with an active trace stream to be POSIX_TRACE_LOOP, POSIX_TRACE_UNTIL_FULL, or POSIX_TRACE_APPEND.