[LITMUS^RT] implementation of new plugin -step 5 -error encountered

Björn Brandenburg bbb at mpi-sws.org
Thu Apr 6 14:55:22 CEST 2017


> On 5 Apr 2017, at 13:03, Rajarajeswari R <rajeswarirajasekar29 at gmail.com> wrote:
> I am creating a new scheduler plugin in litmus-rt for my master thesis . I am facing an error in step 5 where the P-EDF scheduling logic is implemented .
> 
> The errors are 
> 
> litmus/sched_demo.c: In function ‘demo_schedule’:
> litmus/sched_demo.c:54:10: error: implicit declaration of function ‘__get_cpu_var’ [-Werror=implicit-function-declaration]
>    struct demo_cpu_state *local_state = local_cpu_state();
>           ^
> litmus/sched_demo.c:19:28: error: lvalue required as unary ‘&’ operand
>  #define local_cpu_state() (&__get_cpu_var(demo_cpu_state))
>                             ^
> litmus/sched_demo.c:54:40: note: in expansion of macro ‘local_cpu_state’
>    struct demo_cpu_state *local_state = local_cpu_state();
>                                         ^
> litmus/sched_demo.c:68:9: error: implicit declaration of function ‘is_running’ [-Werror=implicit-function-declaration]
>          self_suspends = exists && !is_running(prev);
>          ^
> cc1: some warnings being treated as errors
> make[1]: *** [litmus/sched_demo.o] Error 1
> make: *** [litmus] Error 2
> root at raji-Latitude-E5420:~/16-gb/litmus-rt# 
> 
> 
> I tried my best solving it but there is no improvement.please help me in solving in it.


Hi Raji,

the tutorial on the wiki is unfortunately out of date. The kernel per-CPU APIs have changed in recent versions. This has been discussed on the mailing list before; please have a look at the archive.

- Björn




More information about the litmus-dev mailing list