|
void | set_dfg (struct dedos_dfg *dfg_in) |
| Sets the local copy of the DFG, so it doesn't have to be passed in for each call. More...
|
|
struct db_info * | get_db_info () |
| Returns DB info. More...
|
|
int | get_dfg_n_runtimes () |
| Returns the number of registered runtime. More...
|
|
struct dfg_runtime * | get_dfg_runtime (unsigned int runtime_id) |
| Returns the runtime with the given ID. More...
|
|
struct dfg_msu_type * | get_dfg_msu_type (unsigned int id) |
| Returns the MSU type with the given ID. More...
|
|
struct dfg_route * | get_dfg_runtime_route (struct dfg_runtime *rt, unsigned int id) |
|
struct dfg_route * | get_dfg_route (unsigned int id) |
| Returns the route with the given ID. More...
|
|
struct dfg_msu * | get_dfg_msu (unsigned int id) |
| Returns the MSU with the given ID. More...
|
|
struct dfg_route * | get_dfg_rt_route_by_type (struct dfg_runtime *rt, struct dfg_msu_type *type) |
| Returns the route on the given runtime with the specified MSU type. More...
|
|
struct dfg_route * | get_dfg_msu_route_by_type (struct dfg_msu *msu, struct dfg_msu_type *route_type) |
| Returns the route which the given MSU sends to of the specified MSU type. More...
|
|
struct dfg_thread * | get_dfg_thread (struct dfg_runtime *rt, unsigned int id) |
| Returns the thread on the given runtime with the specified ID. More...
|
|
struct dfg_route_endpoint * | get_dfg_route_endpoint (struct dfg_route *route, unsigned int msu_id) |
| Returns the endpoint within the given route which has the specified MSU ID. More...
|
|
int | msu_has_route (struct dfg_msu *msu, struct dfg_route *route) |
| Returns 1 if the given MSU has the route as an endpoint. More...
|
|
struct dfg_msu * | msu_type_on_runtime (struct dfg_runtime *rt, struct dfg_msu_type *type) |
| Returns 1 if the given MSU type is present on the provided runtime. More...
|
|
enum thread_mode | str_to_thread_mode (char *mode_str) |
| Converts a string of pinned/unpinned to the corresponding enumerator. More...
|
|
enum blocking_mode | str_to_blocking_mode (char *mode_str) |
| Converts a string of blocking/non-blocking to the correct enumerator. More...
|
|
uint8_t | str_to_vertex_type (char *str_type) |
| Converts a string containing exit and/or entry to the correct bitmask. More...
|
|
static void | set_msu_properties (struct dfg_msu *template, struct dfg_msu *target) |
| Sets the non-scheduling properties of the MSU to be equal to those of the passed in target. More...
|
|
struct dfg_msu * | copy_dfg_msu (struct dfg_msu *input) |
| Allocates a new MSU with the same fields as the input MSU (though unscheduled) More...
|
|
struct dfg_msu * | init_dfg_msu (unsigned int id, struct dfg_msu_type *type, uint8_t vertex_type, enum blocking_mode mode, struct msu_init_data *init_data) |
| Allocates a new MSU with the given parameters. More...
|
|
int | free_dfg_msu (struct dfg_msu *input) |
| Frees an MSU structure. More...
|
|
static int | schedule_msu_on_thread (struct dfg_msu *msu, struct dfg_thread *thread, struct dfg_runtime *rt) |
| Adds the MSU to the thread, runtime, and instance, and adds the thread and runtime to the MSU. More...
|
|
int | schedule_dfg_msu (struct dfg_msu *msu, unsigned int runtime_id, unsigned int thread_id) |
| Places the given MSU on the correct runtime and thread. More...
|
|
static int | remove_msu_from_thread (struct dfg_msu *msu) |
| Removes the msu from it's thread, runtime, and instance, and removes the thread and runtime from the MSU. More...
|
|
int | unschedule_dfg_msu (struct dfg_msu *msu) |
| Removes the given MSU from its runtime and thread. More...
|
|
struct dfg_route * | create_dfg_route (unsigned int id, struct dfg_msu_type *type, unsigned int runtime_id) |
| Creates a route with the specified parameters. More...
|
|
int | delete_dfg_route (struct dfg_route *route) |
| Deletes the provided route from the DFG. More...
|
|
int | add_dfg_route_to_msu (struct dfg_route *route, struct dfg_msu *msu) |
| Subscribes an MSU to a route, so it can send to the route's endpoints. More...
|
|
struct dfg_route_endpoint * | add_dfg_route_endpoint (struct dfg_msu *msu, uint32_t key, struct dfg_route *route) |
| Adds an MSU as an endpoint to a route. More...
|
|
int | del_dfg_route_endpoint (struct dfg_route *route, struct dfg_route_endpoint *ep) |
| Removes an MSU as a route endpoint. More...
|
|
int | mod_dfg_route_endpoint (struct dfg_route *route, struct dfg_route_endpoint *ep, uint32_t new_key) |
| Modifies the key associated with an MSU endpoint. More...
|
|
struct dfg_thread * | create_dfg_thread (struct dfg_runtime *rt, int thread_id, enum thread_mode mode) |
| Creates a new thread on the given runtime. More...
|
|
static void | free_dfg_msu_type (struct dfg_msu_type *type) |
| Frees elements in the MSU type structure. More...
|
|
static void | free_dfg_runtime (struct dfg_runtime *rt) |
| Frees the runtime and all threads and routes associated with it. More...
|
|
void | free_dfg (struct dedos_dfg *dfg) |
| Frees the entirety of the DFG structure. More...
|
|
Code for the creation and modifcation of the data-flow graph.
Definition in file dfg.c.