HPCToolkit
event_custom.c File Reference
#include "include/queue.h"
#include "sample-sources/display.h"
#include "event_custom.h"
Include dependency graph for event_custom.c:

Go to the source code of this file.

Classes

struct  events_list_s
 

Typedefs

typedef struct events_list_s events_list_t
 

Functions

static SLIST_HEAD (event_list_head, events_list_s)
 
void event_custom_display (FILE *std)
 
int event_custom_register (event_custom_t *event)
 
int event_custom_create_event (sample_source_t *self, char *name)
 
int event_custom_handler (event_handler_arg_t *args)
 

Typedef Documentation

◆ events_list_t

typedef struct events_list_s events_list_t

Function Documentation

◆ event_custom_create_event()

int event_custom_create_event ( sample_source_t self,
char *  name 
)

create and register an event if the name is part of customized event returns the number of created events returns 0 if the name is not part of custom events

Definition at line 136 of file event_custom.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ event_custom_display()

void event_custom_display ( FILE *  std)

list all registered custom events

Definition at line 86 of file event_custom.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ event_custom_handler()

int event_custom_handler ( event_handler_arg_t args)

method to be called during signal delivery. If an event is recognized, it will delivered to the custom handler.

Definition at line 151 of file event_custom.c.

Here is the caller graph for this function:

◆ event_custom_register()

int event_custom_register ( event_custom_t event)

register a new event. For the sake of simplicity, if an event already exists, it still adda it the head. The caller has to make sure the name of the event is unique

Parameters
event_custom_tevent

Definition at line 110 of file event_custom.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SLIST_HEAD()

static SLIST_HEAD ( event_list_head  ,
events_list_s   
)
static

Definition at line 66 of file event_custom.c.