#include <assert.h>
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
static size_t plugin_id;
static void
print( const char* event,
struct SCOREP_Location* location,
uint64_t timestamp,
uint64_t stackdepth )
{
uint64_t i;
printf( "%" PRIu64 ": %s >%" PRIu64 " %s %s\n", timestamp, slocation, stackdepth, event, sregion );
}
static void
enter_region(
struct SCOREP_Location* location,
uint64_t timestamp,
uint64_t* metricValues )
{
print( "Enter", location, timestamp, regionHandle, *stackdepth );
( *stackdepth )++;
}
static void
exit_region(
struct SCOREP_Location* location,
uint64_t timestamp,
uint64_t* metricValues )
{
( *stackdepth )--;
print( "Exit", location, timestamp, regionHandle, *stackdepth );
}
static void
disable(
struct SCOREP_Location* location,
uint64_t timestamp,
uint64_t* metricValues )
{
printf( "--------Disabled recording (%s - %s)------------\n",
slocation,
sregion );
}
static void
enable(
struct SCOREP_Location* location,
uint64_t timestamp,
uint64_t* metricValues )
{
printf( "--------Enabled recording (%s - %s)------------\n",
slocation,
sregion );
}
static uint32_t
get_event_functions(
{
{
}
*returned = functions;
}
static void
size_t size )
{
callbacks = incoming_callbacks;
}
static void
assign_id( size_t id )
{
plugin_id = id;
}
static void
create_location( const struct SCOREP_Location* location,
const struct SCOREP_Location* parentLocation )
{
uint64_t* stackdepth = calloc( sizeof( uint64_t ), 1 );
}
{
return info;
}