HPCToolkit
|
#include "sample_event.h"
#include <lib/prof-lean/hpcrun-fmt.h>
#include "sample-sources/perf/perf-util.h"
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_t * | event_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 struct event_custom_s event_custom_t |
Definition at line 69 of file event_custom.h.
typedef enum event_handle_type_e event_handle_type_t |
typedef struct event_handler_arg_s event_handler_arg_t |
typedef void event_handler_t(event_handler_arg_t *args) |
Definition at line 76 of file event_custom.h.
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.
enum event_handle_type_e |
Enumerator | |
---|---|
EXCLUSIVE | |
INCLUSIVE |
Definition at line 78 of file event_custom.h.
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.
void event_custom_display | ( | FILE * | std | ) |
list all registered custom events
Definition at line 86 of file event_custom.c.
event_custom_t* event_custom_find | ( | const char * | name | ) |
find an event custom based on its event name.
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.
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
event_custom_t | event |
Definition at line 110 of file event_custom.c.