finstrument-functions issues
Joel Sherrill
joel at rtems.org
Fri Jun 4 19:31:46 UTC 2021
On Fri, Jun 4, 2021 at 9:16 AM Matthew J Fletcher <amimjf at gmail.com> wrote:
> Replying to myself.
>
> Seems various interrupt and other rtems routines need to be excluded, with
> "-finstrument-functions-exclude-file-list=/rtems
> -finstrument-functions-exclude-function-list=arm_interrupt_,rtems_"
> stability resumes.
>
Thank you for posting the solution even though you had to find it on your
own.
There is a section in the users guide which discusses this option without
mentioning the exclude option at all. Could you kindly provide a patch to
mention that option and give any advice you have along with your example
above? It would be certainly be appreciated by the next person to follow
this path.
I would bet that not every rtems_ method needs to be excluded but the
rules for what needs to be excluded are unclear to me. I expect it depends
on what the profiling methods actually do.
--joel
>
>
> On Wed, 2 Jun 2021 at 15:34, Matthew J Fletcher <amimjf at gmail.com> wrote:
>
>> Hi
>>
>> Has anyone tried with -finstrument-functions with the rtems-5 branch a
>> (gcc 7.5.0) ? even with a minimal stub (shown), i get random crashes,
>> normally in the heap allocate/free code paths
>>
>> __attribute__((no_instrument_function)) void __cyg_profile_func_enter
>> (void *this_fn, void *call_site)
>> {
>> }
>> __attribute__((no_instrument_function)) void __cyg_profile_func_exit
>> (void *this_fn, void *call_site)
>> {
>> }
>>
>> Removing -finstrument-functions from the makefiles removes the crashes.
>>
>>
>> regards
>> ---
>> Matthew J Fletcher
>>
>>
>
> --
>
> regards
> ---
> Matthew J Fletcher
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20210604/59b40d8d/attachment.html>
More information about the users
mailing list