On 15/07/2019 13:39, Ravindra Kumar Meena wrote:
     > I added the dummy data at the starting of the file. So that only
    this
     > part of the file can be overwritten later after obtaining the
    relevant
     > values.

    You need timestamps per-CPU. Please don't use global variables. Add the
    data you need to client_context.


Have made changes:
https://github.com/rmeena840/rtems-tools/commit/dcc4e814d5dd8ec2cbd6fc018a92c52e96f7851c

This is also a global variable:

+ static bool ts_recevied[ RTEMS_RECORD_CLIENT_MAXIMUM_CPU_COUNT ] = { false };

Please don't modify flush_items(), add everything to print_item().

You don't need this extra boolean flag, just use

if (timestamp_begin == 0) {
  timestamp_begin = item->ns;
}

timestamp_end = item->ns;

--
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.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to