<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Björn<div><blockquote type="cite" class=""><div class="">On Feb 9, 2016, at 12:21 AM, Björn Brandenburg <<a href="mailto:bbb@mpi-sws.org" class="">bbb@mpi-sws.org</a>> wrote:</div><div class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></blockquote><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Hi Geoffrey,</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">none of the schedulers in LITMUS^RT supports CPU hot-plugging. The code has never been tested with CPU hot-plugging, but it is known to not work with it. Simply put, we never had the resources or the motivation to pay attention to CPU hot-plugging.<span class="Apple-converted-space"> </span></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">I’d be happy to merge patches adding CPU hot-plugging support, but any such effort will have to spearheaded by someone outside of MPI-SWS.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><br class=""></div><div>Thanks for your reply. Sorry for taking so long to get back to you.  It looks a workaround right now seems to be to switch schedulers</div><div>when no tasks are running and switch back.  </div><div><br class=""></div><div>While I was looking over the source and testing things, I was trying to look into the runtime state. To do this, I was using a module </div><div>that is built outside of the tree and loading/unloading it. However, I cannot seem to figure out how to get it to link with the litmus base.</div><div>If you have time, would you happen to know how I could do this? </div><div><br class=""></div><div>I have a directory with my module source set up as follows:</div><div>litmus-rt/      testModules/</div><div><br class=""></div><div>The makefile I am using is:</div><div><div><div><span class="Apple-tab-span" style="white-space:pre">    </span># Source: <a href="http://www.crashcourse.ca" class="">http://www.crashcourse.ca</a></div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>ifeq ($(KERNELRELEASE),)</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>KERNELDIR ?= /lib/modules/$(shell uname -r)/build</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>PWD := $(shell pwd)</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>.PHONY: build clean</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>build:</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>        $(MAKE) -C $(KERNELDIR) M=$(PWD) modules</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>clean:</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>        rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>        rm -f modules.order Module.symvers</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre">   </span>else</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>$(info Building with KERNELRELEASE = ${KERNELRELEASE})</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>obj-m := testModule</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>endif</div></div><div><br class=""></div><div>However, just trying to use the TRACE() functions warns about undefined functions/vars.  I am then unable to load the modules, although</div><div>the symbols are present in /proc/kallsyms</div><div><br class=""></div><div>Is there a way to build modules in my own directory and still link to external symbols?</div><div><br class=""></div><div>Thanks!</div><div>Geoffrey</div><div><br class=""></div></div><br class=""></body></html>