<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This makes no sense:<br>
<br>
static void print_item( client_context *cctx, const client_item *item )<br>
{<br>
   if( cctx->event_counter % 2 == 0 ){<br>
<br>
1. event_counter is not per CPU.<br>
<br>
2. You don't care about the record event. You have to do this for <br>
specific events as I already wrote in the description of this task.<br></blockquote><div><br></div><div>I forgot to remove the modular operator. </div><div><br></div><div><a href="https://github.com/rmeena840/rtems-tools/commit/c278c48abab1d5ea93cf36823bd24af07633f35f">https://github.com/rmeena840/rtems-tools/commit/c278c48abab1d5ea93cf36823bd24af07633f35f</a><br></div><div><br></div><div>The logic behind this is that when the first time program enters in print_item() it initializes the </div><div>prev_* values and after this, it will enter in else part recursively initializing prev_* and next_* values for the same CPU and write it in the file.</div></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font size="4"><b>Ravindra Kumar Meena</b></font>,<div><span style="color:rgb(102,102,102)">B. Tech. Computer Science and Engineering,<br></span></div><div><span style="color:rgb(102,102,102)"><a href="https://www.iitism.ac.in/" style="color:rgb(17,85,204)" target="_blank">Indian Institute of Technology (Indian School of Mines)</a>, Dhanbad</span></div></div></div></div></div></div>