<div dir="ltr">Sorry for sending the wrong file. Please try this rtspin.c with the chunktest.sh .</div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-11 18:42 GMT+02:00 Björn Brandenburg <span dir="ltr"><<a href="mailto:bbb@mpi-sws.org" target="_blank">bbb@mpi-sws.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On 11 Aug 2016, at 18:12, 施俊杰 <<a href="mailto:shijunjie92@gmail.com">shijunjie92@gmail.com</a>> wrote:<br>
><br>
> <br>
> rtspin.c<br>
<span class="">> <br>
> chunktest.sh<br>
> <br>
> I have rewritten to make sure that I can simulate more than one critical section within one task. Also there is one bash file to show how I allocate the tasks. When I change the protocol to DFLP, the task doesn't migrate to different cpu when it come to the critical section. Thanks for your help!<br>
><br>
><br>
> 2016-08-11 18:04 GMT+02:00 Björn Brandenburg <<a href="mailto:bbb@mpi-sws.org">bbb@mpi-sws.org</a>>:<br>
><br>
> > On 11 Aug 2016, at 18:55, shijunjie92 <<a href="mailto:shijunjie92@gmail.com">shijunjie92@gmail.com</a>> wrote:<br>
> ><br>
> > Hello all:<br>
> ><br>
> > I am trying to simulate the migration operation using DFLP_SEM included in P-FP. I have rewritten the 'chunk_lock_od = litmus_open_lock (different cpu)' in rtspin.c. The critical section's migration is working if I use DPCP, but it doesn't work when I using DFLP.<br>
> > Could anyone can tell me, how to test the migration using DFLP_SEM<br>
> > In my opinion, the -p option just allocate one cpu for the task(partition) , it doesn't matter to the migration of critical section. The migratiom of critical section can be set when the lock is opened.<br>
><br>
> Mh, it’s difficult to say much based on your description. Can you please provide more details? Can you post your source code?<br>
<br>
<br>
</span>I cannot reproduce your problem. First, the script that you sent does not work with the version of rtspin.c that you sent (your custom options -N and -D are not supported).<br>
<br>
Second, after editing your launch script to work with the provided rtspin.c (edited script attached), I could not see any problems. I’m attaching two traces, one recorded with the DFLP and one recorded with the DPCP. Both show the expected migrations.<br>
<br>
So, looks like the kernel works as expected.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Björn<br>
<br>
</font></span><br><br>
<br>
<br><br>
<br>
<br>
<br><br>
<br>
<br>______________________________<wbr>_________________<br>
litmus-dev mailing list<br>
<a href="mailto:litmus-dev@lists.litmus-rt.org">litmus-dev@lists.litmus-rt.org</a><br>
<a href="https://lists.litmus-rt.org/listinfo/litmus-dev" rel="noreferrer" target="_blank">https://lists.litmus-rt.org/<wbr>listinfo/litmus-dev</a><br>
<br></blockquote></div><br></div>