Commit cf59e0d8 authored by Xenofon Foukas's avatar Xenofon Foukas
Browse files

Added notification messages for control delegation in dl_scheduler VSF

parent 83929d42
......@@ -772,11 +772,14 @@ int load_dl_scheduler_function(mid_t mod_id, const char *function_name) {
strcpy(target, local_cache);
strcat(target, lib_name);
LOG_I(FLEXRAN_AGENT, "Opening pushed code: %s\n", target);
lib = dlopen(target, RTLD_NOW);
if (lib == NULL) {
LOG_I(FLEXRAN_AGENT, "Could not load library\n");
goto error;
LOG_I(FLEXRAN_AGENT, "Loading function: %s\n", function_name);
void *loaded_scheduler = dlsym(lib, function_name);
if (loaded_scheduler) {
if (mac_agent_registered[mod_id]) {
......@@ -785,8 +788,10 @@ int load_dl_scheduler_function(mid_t mod_id, const char *function_name) {
agent_mac_xface[mod_id]->dl_scheduler_loaded_lib = lib;
LOG_D(ENB_APP, "Delegated control for DL UE scheduler succesfully\n");
LOG_I(FLEXRAN_AGENT, "New DL UE scheduler: %s\n", function_name);
} else {
LOG_I(FLEXRAN_AGENT, "Scheduler could not be loaded\n");
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment