- stateActionA = surf_cpu_resource->common_public->action_get_state(actionA); /* When you know actionA resource type */
- stateActionB = actionB->resource_type->common_public->action_get_state(actionB); /* If you're unsure about it's resource type */
+ stateActionA = surf_cpu_model->action_state_get(actionA); /* When you know actionA model type */
+ stateActionB = actionB->model_type->action_state_get(actionB); /* If you're unsure about it's model type */
+ stateActionC = surf_cpu_model->action_state_get(actionC); /* When you know actionA model type */
+
+ /* And just look at the state of these tasks */
+ DEBUG2("actionA : %p (%s)", actionA, string_action(stateActionA));
+ DEBUG2("actionB : %p (%s)", actionB, string_action(stateActionB));
+ DEBUG2("actionC : %p (%s)", actionB, string_action(stateActionC));
+
+ /*********************** Network *******************************/
+ DEBUG1("%p", surf_network_model);
+ cardA = surf_model_resource_by_name(surf_network_model,"Cpu A");
+ cardB = surf_model_resource_by_name(surf_network_model,"Cpu B");