Oddity with address recorded for gcc instrumentation on ARM

Ryan Long ryan.long at oarcorp.com
Fri Dec 18 19:51:36 UTC 2020


Hi,

We turned on gcc instrumentation with a test function, and got the following records.

Timestamp                         Channel               CPU       Event type          Contents             TID         Prio                        PID                Source
18:00:06.483 017 719     stream_0             0              FUNCTION_ENTRY           code=0x104ec7 167837716           0                167837716
18:00:06.483 371 019     stream_0             0              FUNCTION_EXIT               code=0x104ec7 167837716           0                167837716

Notice that the code value ends in "7". The actual address of the function is 0x104ec6.

Can someone explain this?

Thanks,
Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20201218/60cebe9a/attachment-0001.html>


More information about the devel mailing list