trace_func_exit()

Insert a trace event for the exit from a function

Synopsis:

#include <sys/neutrino.h>
#include <sys/trace.h>

int trace_func_exit( void *this_fn,
                     void *call_site );

Arguments:

this_fn
A pointer to the function you've entered.
call_site
The address of the calling site.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The trace_func_exit() function calls TraceEvent() to insert an event of class _NTO_TRACE_SYSTEM and type _NTO_TRACE_SYS_FUNC_EXIT into the trace log.

Returns:

0
Success.
-1
An error occurred (errno is set).

Errors:

ECANCELED
The requested action has been canceled.
EFAULT
Bad internal trace buffer address. The requested action has been specified out of order.
ENOMEM
Insufficient memory to allocate the trace buffers.
ENOTSUP
The requested action isn't supported.
EPERM
The application doesn't have permission to perform the action.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

See also:

trace_func_enter(), trace_here(), trace_logb(), trace_logbc(), trace_logf(), trace_logi(), trace_nlogf(), trace_vnlogf(), TraceEvent()

tracelogger in the Utilities Reference

System Analysis Toolkit User's Guide

Analyzing Your System with Kernel Tracing chapter of the Integrated Development Environment User's Guide