#include #include #include #include #include #include #include #include #include "monano.h" #include "task_parameter.h" #include "nthread.h" #include "time_conversion.h" #include "benchmark_task_parameters.h" struct pthread_monano_attr_t param_file[NTHREAD]; /* To store task parameters */ long int pgcd(long int a, long int b) { while (b!=0){ long int temp = b; b = a % b; a = temp; } return a; } long int ppcm(long int a, long int b) { return (a*b)/pgcd(a,b); } pthread_monano_attr_t* pthread_monano_task_parameters (pthread_monano_t *t, long int* hyperperiod) { int i=0; long int hp=1; while (istatic_constraints[MONANO_STATIC_CONSTRAINTS_MONOCORE]=true; t->static_constraints[MONANO_STATIC_CONSTRAINTS_PARTITIONED]=true; t->static_constraints[MONANO_STATIC_CONSTRAINTS_PREEMPTIVE]=true; t->static_constraints[MONANO_STATIC_CONSTRAINTS_FIXED_PRIORITY]=true; t->static_constraints[MONANO_STATIC_CONSTRAINTS_SYNCHRONOUS_RELEASE]=true; t->static_constraints[MONANO_STATIC_CONSTRAINTS_PERIODIC_TASKS]=true; t->static_constraints[MONANO_STATIC_CONSTRAINTS_INDEPENDENT_TASKS]=true; }