<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 30 Jan 2014, at 08:43, Glenn Elliott <<a href="mailto:gelliott@cs.unc.edu">gelliott@cs.unc.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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;">It looks like:</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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;">1) CONFIG_RELOCATABLE must NOT be set.</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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;">… and that’s it.</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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;"><br></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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;">Björn: Is this constraint still necessary? Didn’t we move to dynamically allocated buffers over the summer?</div></blockquote><br></div><div>We did move to dynamically allocated buffers over the summer, but I believe we still need that constraint. Each instance of the ASM trigger code needs to put its address into a table at link time. Here’s the relevant code.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><a href="https://github.com/LITMUS-RT/litmus-rt/blob/master/arch/x86/include/asm/feather_trace_64.h#L30">https://github.com/LITMUS-RT/litmus-rt/blob/master/arch/x86/include/asm/feather_trace_64.h#L30</a></div><div><br></div><div>If it’s relocatable, that address is not known. Making it support relocation is theoretically feasible, but would probalby require serious hacking cycles, which I’m personally not willing to invest as long as !CONFIG_RELOCATABLE is acceptable. If someone knows how to make the events relocatable with little effort, don’t hold back…</div><div><br></div><div>Thanks,</div><div>Björn</div><div><br></div></body></html>