Multi-ApplicationOnlineProfiling  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
MALP_Blackboard.c File Reference
#include "MALP_Blackboard.h"
#include <string.h>
Include dependency graph for MALP_Blackboard.c:

Go to the source code of this file.

Data Structures

struct  MALP_BB_submit
 Temporary datastructure. More...
 

Functions

void MALP_blackboard_init (struct MALP_blackboard *bb, uint32_t workers_count, void *context)
 MALP_blackboard initialisation. More...
 
void free_ks (void *pks)
 
void free_key_ent (void *pke)
 
void free_name (void *pn)
 
void MALP_blackboard_release (struct MALP_blackboard *bb)
 MALP_blackboard release. More...
 
void MALP_blackboard_wait (struct MALP_blackboard *bb)
 MALP_blackboard_wait Function to call the wait function for the Pbb workers of a MALP blackboard. More...
 
int knowledge_system_test_func (void *pks, uint64_t key, void *arg)
 knowledge_system_test_func More...
 
int empty_knowledge_system_test_func (void *pks, uint64_t key, void *arg)
 empty_knowledge_system_test_func More...
 
int key_entry_test_func (void *pke, uint64_t key, void *arg)
 key_entry_test_func More...
 
int empty_key_entry_test_func (void *pke, uint64_t key, void *arg)
 empty_key_entry_test_func More...
 
struct Key_entryMALP_Blackboard_get_ke (struct MALP_blackboard *bb, uint64_t key)
 
struct Key_entryMALP_Blackboard_push_unique_ke (struct MALP_blackboard *bb, uint64_t key)
 
struct Knowledge_systemMALP_Blackboard_push_ks (struct MALP_blackboard *bb, struct Knowledge_system *ks)
 
int MALP_Blackboard_ks_present (struct MALP_blackboard *bb, uint64_t type)
 test if a knowledge system is available in a MALP_Blackboard Test if a knowledge system of a specific type, defined by its key, is available in a MALP_Blackboard More...
 
struct Knowledge_systemMALP_Blackboard_new_ks (struct MALP_blackboard *bb, uint64_t type, uint64_t *sensivities, uint32_t sensivities_count, void(*process)(struct MALP_blackboard *bb, struct Data_entry **de, uint32_t entry_count, void *arg), void *arg)
 Create a new Knowledge system while associating a key (used as an id and a type) and a handler (process) More...
 
void __MALP_Blackboard_delete_ks (void *pke, void *pks)
 
void MALP_Blackboard_delete_ks (struct MALP_blackboard *bb, uint64_t type)
 MALP_Blackboard_delete_ks. More...
 
void MALP_Blackboard_compute_de_refcount (struct Key_entry *ke, struct Data_entry *de)
 
int ke_submit_handler (struct Knowledge_system *ks, void *pbbsb)
 
void MALP_Blackboard_submit_to_ke_ks (struct MALP_blackboard *bb, struct Key_entry *ke, struct Data_entry *de)
 
int MALP_Blackboard_resubmit_data_entry (struct MALP_blackboard *bb, struct Data_entry *de)
 MALP_Blackboard_resubmit_data_entry. More...
 
int MALP_Blackboard_submit_data_entry (struct MALP_blackboard *bb, struct Data_entry *de)
 MALP_Blackboard_submit_data_entry. More...
 
int MALP_Blackboard_submit_data (struct MALP_blackboard *bb, uint64_t key, void *payload, size_t payload_size)
 MALP_Blackboard_submit_data. More...
 

Function Documentation

void __MALP_Blackboard_delete_ks ( void *  pke,
void *  pks 
)

Definition at line 218 of file MALP_Blackboard.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void free_key_ent ( void *  pke)

Definition at line 49 of file MALP_Blackboard.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void free_ks ( void *  pks)

Definition at line 43 of file MALP_Blackboard.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void free_name ( void *  pn)

Definition at line 55 of file MALP_Blackboard.c.

Here is the caller graph for this function:

int ke_submit_handler ( struct Knowledge_system ks,
void *  pbbsb 
)

Definition at line 266 of file MALP_Blackboard.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void MALP_Blackboard_compute_de_refcount ( struct Key_entry ke,
struct Data_entry de 
)

Definition at line 251 of file MALP_Blackboard.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct Key_entry* MALP_Blackboard_get_ke ( struct MALP_blackboard bb,
uint64_t  key 
)

Definition at line 120 of file MALP_Blackboard.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct Knowledge_system* MALP_Blackboard_push_ks ( struct MALP_blackboard bb,
struct Knowledge_system ks 
)

Definition at line 156 of file MALP_Blackboard.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct Key_entry* MALP_Blackboard_push_unique_ke ( struct MALP_blackboard bb,
uint64_t  key 
)

Definition at line 126 of file MALP_Blackboard.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int MALP_Blackboard_resubmit_data_entry ( struct MALP_blackboard bb,
struct Data_entry de 
)

MALP_Blackboard_resubmit_data_entry.

Parameters
bb
de
Returns

Definition at line 283 of file MALP_Blackboard.c.

Here is the call graph for this function:

void MALP_Blackboard_submit_to_ke_ks ( struct MALP_blackboard bb,
struct Key_entry ke,
struct Data_entry de 
)

Definition at line 276 of file MALP_Blackboard.c.

Here is the call graph for this function:

Here is the caller graph for this function: