GSOC2016: Improvements in RTEMS Tracing Framework

vivek kukreja vivekkukreja5 at gmail.com
Sat Jun 11 07:04:37 UTC 2016


Hello Chris,

> On 30-May-2016, at 10:38, Chris Johns <chrisj at rtems.org> wrote:
> 
>> On 30/05/2016 13:51, vivek kukreja wrote:
>> 
>> The init.c file for capture example doesnt include confdefs.h. Are there any other examples i can look at?
> 
> The capture init.c in the testsuite includes system.h. I suggest you take a look in that file.

In system.h file i tried increasing minimum stack size, number of tasks etc but the problem persists.

>> The ctrace command(specifically rtems_capture_print_trace_records function) calls rtems_capture_read to read records from cpu buffers which returns RTEMS_UNSATISFIED.
> 
> Why does that function return that status code?

Because RTEMS_CAPTURE_ON flag is set in capture_flags_global.

First we set the flag when we run cenable command but while running ctrace command we want the flag to be unset. This made no sense to me. I tried looking up solutions online but couldn't find since many links are for RTEMS 4.11 or before.
I'm looking at older versions of capture engine now to better understand the problem.
If you have any thoughts please share.

> Chris


More information about the devel mailing list