posix_trace_eventid_equal Subroutine

Purpose

Compares two trace event type identifiers.

Library

Posix Trace Library (libposixtrace.a)

Syntax

#include <trace.h>

int posix_trace_eventid_equal(trid, event1, event2)
trace_id_t trid;
trace_event_id_t event1;
trace_event_id_t event2;

Description

The posix_trace_eventid_equal compares the event1 and event2 trace event type identifiers. If the event1 and event2 identifiers are equal (from the same trace stream, the same trace log or from different trace streams), the return value is non-zero; otherwise, a value of zero is returned.

Parameters

Item Description
trid Specifies the trace stream identifier.
event, event1, event2 Specifies the trace event identifiers.

Return Values

The posix_trace_eventid_equal subroutine returns a non-zero value if the value of the event1 and event2 parameters are equal; otherwise, a value of zero is returned.

Error

This subroutine returns no error code.

File

The trace.h file in AIX® Version 7.1 Files Reference