HPCToolkit
event_custom.h File Reference
Include dependency graph for event_custom.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  event_handler_arg_s
 
struct  event_custom_s
 

Typedefs

typedef struct event_handler_arg_s event_handler_arg_t
 
typedef struct event_custom_s event_custom_t
 
typedef int register_event_t(sample_source_t *self, event_custom_t *event, struct event_threshold_s *period)
 
typedef void event_handler_t(event_handler_arg_t *args)
 
typedef enum event_handle_type_e event_handle_type_t
 

Enumerations

enum  event_handle_type_e { EXCLUSIVE, INCLUSIVE }
 

Functions

int event_custom_create_event (sample_source_t *self, char *name)
 
event_custom_tevent_custom_find (const char *name)
 
int event_custom_register (event_custom_t *event)
 
void event_custom_display (FILE *std)
 
int event_custom_handler (event_handler_arg_t *args)
 

Typedef Documentation

◆ event_custom_t

Definition at line 69 of file event_custom.h.

◆ event_handle_type_t

◆ event_handler_arg_t

◆ event_handler_t

typedef void event_handler_t(event_handler_arg_t *args)

Definition at line 76 of file event_custom.h.

◆ register_event_t

typedef int register_event_t(sample_source_t *self, event_custom_t *event, struct event_threshold_s *period)

Definition at line 72 of file event_custom.h.

Enumeration Type Documentation

◆ event_handle_type_e

Enumerator
EXCLUSIVE 
INCLUSIVE 

Definition at line 78 of file event_custom.h.

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_find()

event_custom_t* event_custom_find ( const char *  name)

find an event custom based on its event name.

Returns
event_custom_t if exists, NULL otherwise.
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: