YAC 3.21.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_instrument.c File Reference
#include <string.h>
#include "tests.h"
#include "instrument.h"
#include "instrument_internal.h"
Include dependency graph for test_instrument.c:

Go to the source code of this file.

Data Structures

struct  instr_counters
 

Enumerations

enum  { CREATE_TAG = 0 , START_TAG = 100 , STOP_TAG = 200 , DESTROY_TAG = 300 }
 

Variables

static int dummy_handle_storage [YAC_INSTR_REGION_COUNT]
 

Detailed Description

Test
Tests for the region instrumentation API: yac_instrument_region_name, yac_instrument_set_callbacks/clear_callbacks and the YAC_INSTRUMENT_START/STOP macros.

Definition in file test_instrument.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CREATE_TAG 
START_TAG 
STOP_TAG 
DESTROY_TAG 

Definition at line 68 of file test_instrument.c.

Variable Documentation

◆ dummy_handle_storage

int dummy_handle_storage[YAC_INSTR_REGION_COUNT]
static

dummy per-region handles returned by the create callbacks below, so tests can check that the exact handle created for a region ID is the one handed back to the start/stop/destroy callbacks for that ID

Definition at line 44 of file test_instrument.c.