<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="">Hello all,<div class=""><br class=""></div><div class="">I have been trying to add job deadlines to the control page, per the discussion at <a href="https://github.com/LITMUS-RT/liblitmus/pull/1" class="">https://github.com/LITMUS-RT/liblitmus/pull/1</a>. However, I seem to be running into a few issues.</div><div class=""><br class=""></div><div class="">To summarize my changes: </div><div class="">- Added lt_t deadline field to control_page struct in rt_param.h</div><div class="">- In setup_release() in jobs.c, check for if task t has control page, then write to the field.</div><div class=""><br class=""></div><div class="">In my user space code, I try testing the following:</div><div class=""><div class=""><div class="">struct control_page* testCtrlPage = get_ctrl_page();</div><div class="">if(testCtrlPage!=NULL)</div><div class="">{</div><div class=""> printf("IRQ: %lu\tdeadline: %llu\tirq_syscall:%lu\n",</div><div class=""> <span class="Apple-tab-span" style="white-space:pre"> </span>testCtrlPage->irq_count, </div><div class=""> <span class="Apple-tab-span" style="white-space:pre"> </span>testCtrlPage->deadline,</div><div class=""> <span class="Apple-tab-span" style="white-space:pre"> </span>testCtrlPage->ts_syscall_start);</div><div class="">}</div></div></div><div class=""><br class=""></div><div class="">The code compiles and executes, but the output for all three fields are always 0:</div><div class="">“…</div><div class="">IRQ: 0 deadline: 0 irq_syscall:0</div><div class="">IRQ: 0 deadline: 0 irq_syscall:0</div><div class="">…"</div><div class=""><br class=""></div><div class="">I’m not very familiar with this, so there might be something obvious that’s missing. Any feedback is welcome!</div><div class=""><br class=""></div><div class="">Finally, if I wanted to compare to the time written to the control page, I should use the time from clock_gettime(CLOCK_MONOTONIC), right? Just wanted to double check this. </div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Geoffrey</div></body></html>