<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">As I said a couple of time before. Please fix the compiler warnings:<br>
<br>
../misc/record/record-main.c:57:23: warning: character constant too long <br>
for its type<br>
{ "input", 1, NULL, 'input' },<br>
^~~~~~~<br>
../misc/record/record-main.c: In function ‘main’:<br>
../misc/record/record-main.c:308:12: warning: character constant too <br>
long for its type<br>
case 'input':<br>
^~~~~~~<br>
<br>
I am a bit surprised that this code compiles at all.<br>
<br>
There is a bug (from me) in the while loop.<br>
<br>
ssize_t n;<br>
<br>
n = ( input_file_flag ) ? read(fd, buf, 10) : recv( fd, buf, <br>
sizeof( buf ), 0 );<br>
- if ( n >= 0 ) {<br>
+ if ( n > 0 ) {<br>
rtems_record_client_run( &ctx, buf, (size_t) n );<br>
} else {<br>
break;<br></blockquote><div>Okay. Made some changes</div><div><a href="https://github.com/rmeena840/rtems-tools/commit/e454fec2ba42cc51bc85a53af2990645be162d77">https://github.com/rmeena840/rtems-tools/commit/e454fec2ba42cc51bc85a53af2990645be162d77</a> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Could you please give me permission to push to your repository. I would <br>
like to add a record item stream from a QorIQ T4240.<br></blockquote><div>Did you get the invite? My GitHub handle is rmeena840.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
lttng seems to create one event stream file per processor. This is your <br>
next task.<br>
<br>
1. Open a event stream file for each processor.<br></blockquote><div>The stream file which has ctf event element?</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
2. Write the events of a processor (CPU) to the corresponding file.<br></blockquote><div>Sorry, I didn't get this task? </div><div> </div><div> </div></div><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>