RTEMS | Draft: Feature/stack reporter config (!86)

Mohamed Hassan (@Hamzi) gitlab at rtems.org
Tue Jun 25 06:36:56 UTC 2024




Mohamed Hassan commented on a discussion on cpukit/include/rtems/confdefs/extensions.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/86#note_108020

 >    #include <rtems/stackchk.h>
 >  #endif
 >  
 > +#ifdef CONFIGURE_STACK_CHECKER_ENABLED
 > +  #ifdef CONFIGURE_STACK_CHECKER_REPORTER
 > +    const Stack_checker_reporter_initialize _Stack_checker_reporter_initialize =
 > +      _CONFIGURE_ASSERT_NOT_NULL(
 > +        Stack_checker_reporter_initialize,
 > +        CONFIGURE_STACK_CHECKER_REPORTER
 > +      );
 > +
 > +  #else
 > +    const Stack_checker_reporter_initialize _Stack_checker_reporter_initialize =
 > +      _CONFIGURE_ASSERT_NOT_NULL(
 > +        Stack_checker_reporter_initialize,
 > +        DEFAULT_STACK_CHECKER_REPORTER

Sorry I don't get this, I have one function pointer `_Stack_checker_reporter_initialize`:
- if `CONFIGURE_STACK_CHECKER_REPORTER` defined it will point to `CONFIGURE_STACK_CHECKER_REPORTER`
- else it will point to `DEFAULT_STACK_CHECKER_REPORTER`

this pointer is called  inside `rtems_stack_checker_switch_extension`
can you elaborate more.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/86#note_108020
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240625/bec32022/attachment-0001.htm>


More information about the bugs mailing list