<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 1/15/2015 11:27 AM, Miller, Scott A.
wrote:<br>
</div>
<blockquote cite="mid:9C101EEA-E3DD-4658-AF2F-02D91BDF5197@swri.org"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
The problem was with my printk_plugin. I didn't have the the
correct variable arguments setup, and when I was printing, the
values for the format string were memory areas not assigned to the
variables. Now that I'm passing the variable arguments, the stack
checker appears to be working well.
<div class=""><br class="">
</div>
</blockquote>
I suspected something was wrong when you mentioned the plugin
version<br>
in the comment. I just couldn't conceive of how you would have
gotten<br>
that kind of output. :)<br>
<br>
FWIW The with plugin variants are handy to let you not use printk()
like<br>
the default and redirect to a file, respond to a web service, etc.<br>
<blockquote cite="mid:9C101EEA-E3DD-4658-AF2F-02D91BDF5197@swri.org"
type="cite">
<div class="">
</div>
<div class="">Thanks for the response, Joel.<br class="">
<div class=""><br class="">
</div>
</div>
</blockquote>
No problem. This one just was too weird to leave you hanging long.
:)<br>
<br>
--joel<br>
<blockquote cite="mid:9C101EEA-E3DD-4658-AF2F-02D91BDF5197@swri.org"
type="cite">
<div class="">
<div class="">
<div>
<div class="">On Jan 14, 2015, at 5:28 PM, Joel Sherrill
<<a moz-do-not-send="true"
href="mailto:Joel.Sherrill@OARcorp.com" class="">Joel.Sherrill@OARcorp.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div bgcolor="#FFFFFF" text="#000000" class=""><br
class="">
<div class="moz-cite-prefix">On 1/14/2015 5:18 PM,
Miller, Scott A. wrote:<br class="">
</div>
<blockquote
cite="mid:1CAAC8A2-751A-4DBF-A0BC-5A04B56AF3D4@swri.org"
type="cite" class="">
<div style="margin: 0px; font-family: Helvetica;"
class="">Attempting to get the stack checker in
RTEMS enabled our software.</div>
<div style="margin: 0px; font-family: Helvetica;
min-height: 14px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-family: Helvetica;"
class="">Before confdefs.h is included, along with
all of our other CONFIGURE variables, I have put:</div>
<div style="margin: 0px; font-family: Helvetica;
min-height: 14px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-family: Helvetica;"
class="">#define CONFIGURE_STACK_CHECKER_ENABLED</div>
<div style="margin: 0px; font-family: Helvetica;
min-height: 14px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-family: Helvetica;"
class="">When I later make the call to
rtems_stack_checker_report_usage_with_plugin(), I
get output (one per line) for each task running (and
the interrupt context), but the values printed
(stack begin area, used, etc..) are all the same for
each task, and the stack size doesn't seem to match
the memory area allocated for the stack. The values
don't seem trustable.</div>
<div style="margin: 0px; font-family: Helvetica;
min-height: 14px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-family: Helvetica;"
class="">Is there something I'm missing to use the
stack checker properly?</div>
<div style="margin: 0px; font-family: Helvetica;
min-height: 14px;" class="">
<br class="">
</div>
</blockquote>
That doesn't seem right at all. Calling the "with
plugin" variant requires you<br class="">
to pass something that has a signature like fprintf().
Did you call that method<br class="">
directly or via the wrapper
rtems_stack_checker_report_usage()?<br class="">
<br class="">
Can you run the fileio sample and try the stackuse
command? That test should<br class="">
just work.<br class="">
<blockquote
cite="mid:1CAAC8A2-751A-4DBF-A0BC-5A04B56AF3D4@swri.org"
type="cite" class="">
<div style="margin: 0px; font-family: Helvetica;
min-height: 14px;" class="">
</div>
<div style="margin: 0px; font-family: Helvetica;"
class="">Running RTEMS 4.10. </div>
</blockquote>
<br class="">
<pre class="moz-signature" cols="72">--
Joel Sherrill, Ph.D. Director of Research & Development
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985</pre>
</div>
</div>
</div>
<br class="">
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Joel Sherrill, Ph.D. Director of Research & Development
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985</pre>
</body>
</html>