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

Rajarajeswari R rajeswarirajasekar29 at gmail.com
Fri Apr 7 07:22:58 CEST 2017


@Andrea yes these are compilation errors when I just copied the scheduling
logic of P-EDF under wiki tutorial step 5 in sched_demo.c

And as Bjorn said the tutorail in wiki is outdated.thanks for the reply.


https://wiki.litmus-rt.org/litmus/CreateAPluginTutorial/Step5

On Thu, Apr 6, 2017 at 6:25 PM, Björn Brandenburg <bbb at mpi-sws.org> wrote:

>
> > 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
>
>
> _______________________________________________
> litmus-dev mailing list
> litmus-dev at lists.litmus-rt.org
> https://lists.litmus-rt.org/listinfo/litmus-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.litmus-rt.org/pipermail/litmus-dev/attachments/20170407/fe0d60f1/attachment.html>


More information about the litmus-dev mailing list