GSoC Project | Basic Support for Trace Compass

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Aug 6 10:57:03 UTC 2019


On 06/08/2019 12:50, Ravindra Kumar Meena wrote:
>     Have a look at the documentation of printf
>     (http://www.cplusplus.com/reference/cstdio/printf/).
>     The format specifier "%lx" refers to unsigned long int which is most
>     likely a 32bit integer on your machine.
>     So it will only read 4 bytes regardless of how many are stored in
>     memory.
>     Try using either "%llx" or PRIx64 format specifier for printing
>     64-bit numbers.
> 
> Yes, I tried that also. I can't see the 8 char for multiple 
> RTEMS_RECORD_THREAD_NAME in print_item(). Still, I tried to follow the 
> previously mentioned algorithm.
> 
> https://github.com/rmeena840/rtems-tools/commit/33c217642e36b91926dfd823e5b3b59974790084

The code is more complicated than necessary, but it looks mostly all right.

Setting

+        cctx->thread_id_name[ item->cpu ].name_index = 0;

if the name_index was 1, is wrong. You have to increment it.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list