On 23/07/2019 12:34, Ravindra Kumar Meena wrote:
    All your state must be per-CPU otherwise you mix data from different
    CPUs.

Have made changes.

https://github.com/rmeena840/rtems-tools/commit/fac873672d5cd8fe3605ea7ac817ebaa4e8e4cdc

This makes no sense:

static void print_item( client_context *cctx, const client_item *item )
{
  if( cctx->event_counter % 2 == 0 ){

1. event_counter is not per CPU.

2. You don't care about the record event. You have to do this for specific events as I already wrote in the description of this task.

--
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