GSoC Project | Basic Support for Trace Compass

2019-05-12 Thread Ravindra Kumar Meena
the generation of trace data in Common Trace Format(CTF). I will try to figure out a convenient method for it. Thanks -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, D

Re: GSoC Project | Basic Support for Trace Compass

2019-05-13 Thread Ravindra Kumar Meena
On Tue, May 14, 2019 at 11:24 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 13/05/2019 08:24, Ravindra Kumar Meena wrote: > > > > *The goal of this week:* > > > > The goal of phase 1 of my GSoC proposal is to generate the trace > >

Re: GSoC Project | Basic Support for Trace Compass

2019-05-15 Thread Ravindra Kumar Meena
just directly produce trace data in CTF using LTTng. https://lttng.org/docs/v2.10/#doc-tracing-your-own-user-application On Tue, May 14, 2019 at 12:45 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 14/05/2019 08:34, Ravindra Kumar Meena wrote: > > On Tue, May

Re: GSoC Project | Basic Support for Trace Compass

2019-05-15 Thread Ravindra Kumar Meena
On Wed, May 15, 2019 at 5:27 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 15/05/2019 13:50, Ravindra Kumar Meena wrote: > > Is lttng under a suitable license (I think no) and portable to RTEMS? > I found this at the bottom of LTTng website. https:/

Re: GSoC Project | Basic Support for Trace Compass

2019-05-16 Thread Ravindra Kumar Meena
lude/rtems/confdefs.h:#include Thanks On Thu, May 16, 2019 at 12:14 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 15/05/2019 18:45, Ravindra Kumar Meena wrote: > > > > On Wed, May 15, 2019 at 5:27 PM Sebastian Huber > > > <mailto

Re: GSoC Project | Basic Support for Trace Compass

2019-05-16 Thread Ravindra Kumar Meena
you > have any questions regarding Trace Compass or CTF! > > [1] https://github.com/lttng/lttng-tools > [2] https://github.com/lttng/lttng-modules > [3] https://diamon.org/ctf/#examples > [4] https://github.com/gchamp20/rtems/commits/ctf > > Guillaume > > Ravindra Kumar Meena

Re: GSoC Project | Basic Support for Trace Compass

2019-05-19 Thread Ravindra Kumar Meena
On Thu, May 16, 2019 at 2:54 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 16/05/2019 11:05, Ravindra Kumar Meena wrote: > > The record data format is described in > cpukit/include/rtems/recorddata.h. If you think this documentation is > insufficient,

Re: GSoC Project | Basic Support for Trace Compass

2019-05-21 Thread Ravindra Kumar Meena
on, May 20, 2019 at 11:23 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 20/05/2019 07:46, Ravindra Kumar Meena wrote: > > On Thu, May 16, 2019 at 2:54 PM Sebastian Huber > > > <mailto:sebastian.hu...@embedded-brains.de>> wrote: > > > &

Re: GSoC Project | Basic Support for Trace Compass

2019-05-24 Thread Ravindra Kumar Meena
On Fri, May 24, 2019 at 4:51 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello Ravindra, > > - Am 22. Mai 2019 um 7:40 schrieb Sebastian Huber > sebastian.hu...@embedded-brains.de: > > > On 21/05/2019 20:21, Ravindra Kumar Meena wrote: >

Re: GSoC Project | Basic Support for Trace Compass

2019-05-24 Thread Ravindra Kumar Meena
> > > > Please clone the repository and look at it a bit more closely. > Which repository? I have already cloned the rtems-libbsd. > > > > > Do I have to code in python to trace the C/C++ application? > > No, that would be to slow. > Okay > ___ devel m

Re: GSoC Project | Basic Support for Trace Compass

2019-05-27 Thread Ravindra Kumar Meena
On Mon, May 27, 2019 at 7:51 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 26/05/2019 13:49, Ravindra Kumar Meena wrote: > > Hi Sebastian, Gedare > > > > On Fri, May 24, 2019 at 8:11 PM Gedare Bloom > <mailto:ged...@gwmail.gwu.edu>>

Re: GSoC Project | Basic Support for Trace Compass

2019-05-27 Thread Ravindra Kumar Meena
On Tue, May 28, 2019, 10:36 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 27/05/2019 20:24, Ravindra Kumar Meena wrote: > > > > On Mon, May 27, 2019 at 7:51 PM Sebastian Huber > > > <mailto:sebastian.hu...@embedded-brains.de>>

Re: GSoC Project | Basic Support for Trace Compass

2019-05-28 Thread Ravindra Kumar Meena
://lttng.org/docs/v2.10/#doc-tracing-your-own-user-application Without the help of LTTng-UST how we will be able to define tracepoints in the program? -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.ii

Re: GSoC Project | Basic Support for Trace Compass

2019-05-30 Thread Ravindra Kumar Meena
current traces in the disk then I think we convert it to CTF later. Thanks On Tue, May 28, 2019 at 1:49 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 28/05/2019 10:14, Ravindra Kumar Meena wrote: > > On Tue, May 28, 2019 at 12:51 PM Sebastian Huber > > &

Re: GSoC Project | Basic Support for Trace Compass

2019-06-04 Thread Ravindra Kumar Meena
should stick with the post-processing method. We should store the traces in the disk and then convert it to CTF. Thanks -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, D

CTF example

2019-06-05 Thread Ravindra Kumar Meena
Hi Gedare, This is with reference to meeting we recently conducted on freenode. You had suggested that you have working examples on CTF. Can you please share them all here? If possible, please share anything other related to decoder(source plugin) which would help in converting current trace data

Re: GSoC Project | Basic Support for Trace Compass

2019-06-06 Thread Ravindra Kumar Meena
On Wed, Jun 5, 2019 at 11:03 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 04/06/2019 19:26, Ravindra Kumar Meena wrote: > > Hi Sebastian, > > > > I am in regular touch with Babeltrace community to figure out the > > solution for conversion

Re: [PATCH] adding basic support for trace compass

2019-06-06 Thread Ravindra Kumar Meena
; I cover installing the tools on FreeBSD and Joel has added CentOS. > > I cannot remember what happens with git when regenerating the images. I > suggest > only adding the ones you create and add them. We add the .png files to > avoid > everyone needing to install the tools t

Re: [PATCH] adding basic support for trace compass

2019-06-06 Thread Ravindra Kumar Meena
rote: > On 06/06/2019 13:09, Ravindra Kumar Meena wrote: > > Hi Sebastian, Chris > > > > I created the Image online on https://www.draw.io/. Is it necessary to > > use Ditaa and PlantUML? > > Yes, this makes it easier to change the image later. > > -- &

Re: CTF example

2019-06-07 Thread Ravindra Kumar Meena
re the barectf examples. Thanks -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] Basic Support for Trace Compass

2019-06-09 Thread Ravindra Kumar Meena
ent proceeds. > > Thank you for clarifying this. > > Chris > -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___ de

Re: GSoC Project | Basic Support for Trace Compass

2019-06-10 Thread Ravindra Kumar Meena
understanding the current rtems trace format and codebase. I will also try out the decoder(source plugin) example shared by the babeltrace community. Thanks On Thu, Jun 6, 2019 at 2:42 PM Ravindra Kumar Meena wrote: > > > On Wed, Jun 5, 2019 at 11:03 AM Sebastian Huber < &g

Re: [PATCH] Basic Support for Trace Compass

2019-06-10 Thread Ravindra Kumar Meena
No newline at end of file > > > > A worked out Qemu example should move to another section. > Are you talking about the current trace stream which is generated by QEMU target? > > -- > Sebastian Huber, embedded brains GmbH > > Address : Dornierstr. 4, D-82178 Puchheim

Re: [PATCH] Basic Support for Trace Compass

2019-06-11 Thread Ravindra Kumar Meena
not from the master branch of these two repositories. These patches are not the production side. Is it good to talk about patches here? -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.a

Re: [PATCH] Basic Support for Trace Compass

2019-06-11 Thread Ravindra Kumar Meena
ing example and made a push on forked repository https://github.com/rmeena840/rtems-docs/commit/68e2239548dac48f533572152a5c8033ff2122b6 Please have a look. The GitHub has a comment feature too. Please let me if there any changes needed. Thanks -- *Ravindra Kumar Meena*, B. Tech. Computer Scie

Re: GSoC Project | Basic Support for Trace Compass

2019-06-12 Thread Ravindra Kumar Meena
of the format? > Sorry. I don't know what TSDL is? > > > -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] CTF TSDL

2019-06-16 Thread Ravindra Kumar Meena
y > 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. > -- *Ravindra Kumar Meena*, B. Tech. Computer Sci

GSoC Project | Basic Support for Trace Compass

2019-06-17 Thread Ravindra Kumar Meena
indra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH v2] Comment added

2019-06-17 Thread Ravindra Kumar Meena
ot;ctf_event"; > > -stream_id = 0; > > +id = 0; /* event id > > +name = "ctf_event"; /* event name */ > > + stream_id = 0; /* signifies stream id which event is supposed to > concat with events */ > > fields := struct {

Re: [PATCH v2] Comment added

2019-06-17 Thread Ravindra Kumar Meena
The tools currently in rtems-tools.git can be run with the same command > line > options from a built repo with an absolute path or when installed under a > prefix. This is something to consider when referencing configuration files. > > Okay, Chris. Thanks for the review. -- *Ravind

Re: GSoC Project | Basic Support for Trace Compass

2019-06-17 Thread Ravindra Kumar Meena
metadata" command to open the file. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___ devel mailing list devel@rtems.org ht

Re: GSoC Project | Basic Support for Trace Compass

2019-06-17 Thread Ravindra Kumar Meena
t is the SHA512 checksum of the file you can edit? > > 9556e2f193ed6075ac5f7642c4d83b9a60dfe80bdb2952b2a43675c49dbad00620c7c673982e79a0a03801ea83261b56e5200456ba0751222d4a28e32e34870c -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (India

Re: GSoC Project | Basic Support for Trace Compass

2019-06-17 Thread Ravindra Kumar Meena
metadata file residing in "101-trace-navigation-in-tracecompass" folder. [1] https://github.com/tuxology/tracevizlab/blob/master/labs/TraceCompassTutorialTraces.tgz -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology

Re: GSoC Project | Basic Support for Trace Compass

2019-06-17 Thread Ravindra Kumar Meena
17th June work Summary: I sent a patch containing commented code. I had a discussion about metadata file with Sebastian. Raised a query on lttng asking about the file format of metadata. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology

Re: GSoC Project | Basic Support for Trace Compass

2019-06-17 Thread Ravindra Kumar Meena
e. The community is very active. This is what they said: https://lists.lttng.org/pipermail/lttng-dev/2019-June/029056.html Please have a look -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://

Re: GSoC Project | Basic Support for Trace Compass

2019-06-17 Thread Ravindra Kumar Meena
-dev/2019-June/029057.html Please have a look -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___ devel mailing list devel@rtems.or

Re: GSoC Project | Basic Support for Trace Compass

2019-06-17 Thread Ravindra Kumar Meena
f/#spec7.4 [3] https://diamon.org/ctf/#specC [4] https://github.com/efficios/barectf/blob/a3ebf5855c025a86ebc2d62cbda1338461e84c5a/barectf/tsdl182gen.py [5] https://github.com/lttng/lttng-tools/blob/c8e0c5f5d94fb574f4e5d7518f0f8e6f984dfe3d/src/bin/lttng-sessiond/ust-metadata.c -- *Ravindra Kumar

Re: GSoC Project | Basic Support for Trace Compass

2019-06-17 Thread Ravindra Kumar Meena
> Creating the metadata is one of the first actions a plugin must do > Okay. I sent you one metadata file which had 1160 events. So should I add the rtems 512 events in metadata? The problem I am facing here is how to relate the metadata file with rtems event record item? -- *Ravind

Re: GSoC Project | Basic Support for Trace Compass

2019-06-18 Thread Ravindra Kumar Meena
Hi I found the metadata packet image online. However, packet information is also given on https://diamon.org/ctf/ but I find it more clear. I have attached the file. Please have a look at it. > -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute

Re: GSoC Project | Basic Support for Trace Compass

2019-06-18 Thread Ravindra Kumar Meena
a TSDL metadata. Save this metadata file. > I have tried babeltrace example [1]. The babeltrace was using generated metadata file. We can also try barectf. It just needs yaml file which generated c code. > > Import the metadata and event stream in babeltrace and let it print a > huma

Re: GSoC Project | Basic Support for Trace Compass

2019-06-18 Thread Ravindra Kumar Meena
generate the metadata file. Discussed about metadata file. [1] https://rmeena840.github.io/ -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, D

Re: GSoC Project | Basic Support for Trace Compass

2019-06-19 Thread Ravindra Kumar Meena
here? Is it not sufficient to generate > the metadata in plain text format and save the event stream as binary data? > I was just trying barectf yesterday. I was able to generate metadata file with it. YAML file is very easy to write. I used "barectf config.yaml -m ctf" command. >

Re: GSoC Project | Basic Support for Trace Compass

2019-06-19 Thread Ravindra Kumar Meena
Hi, I asked the babeltrace community about the difference between binary packetized and the simple text metadata file. They say both will work the way. Here is the response: https://lists.lttng.org/pipermail/lttng-dev/2019-June/029059.html -- *Ravindra Kumar Meena*, B. Tech. Computer Science

Re: GSoC Project | Basic Support for Trace Compass

2019-06-19 Thread Ravindra Kumar Meena
4_t data; } ctf_event; This is just one event. We have to append this item one by one in a file. This file will be called event stream file. If everything goes well then the next step would be just importing the metadata and event stream in babeltrace and print its human-reada

Re: GSoC Project | Basic Support for Trace Compass

2019-06-19 Thread Ravindra Kumar Meena
*19th June work summary:* Forwarded the response received from babeltrace community. Tried to improve the metadata and sent the patch for the same for review. Attended the meeting on Freenode. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology

Re: GSoC Project | Basic Support for Trace Compass

2019-06-20 Thread Ravindra Kumar Meena
ams. Here is the response: https://lists.lttng.org/pipermail/lttng-dev/2019-June/029062.html They have explained it with example Have a look Thanks -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www

Re: GSoC Project | Basic Support for Trace Compass

2019-06-20 Thread Ravindra Kumar Meena
as of now. We just need the event stream. I used "babeltrace ctf/" command to read the metadata. Here metadata file is residing in ctf/ folder. Thanks -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Min

Re: GSoC Project | Basic Support for Trace Compass

2019-06-20 Thread Ravindra Kumar Meena
ols build is failing because I think some part of the codebase is dependent on union { SLIST_ENTRY( client_item ) free_node; RB_ENTRY( client_item )active_node; }; How should I deal with it? -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute o

Re: GSoC Project | Basic Support for Trace Compass

2019-06-20 Thread Ravindra Kumar Meena
> > > >> This is very good news. Writing the event stream is the easy part. Just > >> fwrite() the events in the modified print_item(). Your TSDL in the > metadata > >> file must describe this event stream. > >> > > Yes. That's what I am trying today. You suggested that I have to convert > > client

Re: GSoC Project | Basic Support for Trace Compass

2019-06-20 Thread Ravindra Kumar Meena
*20 June work summary:* Forwarded the response received from babeltrace community. Tried to parse metadata through. It was working fine. Wrote code for storing the event stream in a file and sent the patch for the same. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering

Re: [PATCH] Write event stream in file

2019-06-20 Thread Ravindra Kumar Meena
> > To which object points the the ctf_item pointer here? > Are you expecting pointer here? > > > + ctf_item->event=item->event; > > + ctf_item->data=item->data; > > + ctf_item->ns=ns; > > + > > + fprintf(fptr,ctf_item); > > + fclose

Re: [PATCH] Write event stream in file

2019-06-21 Thread Ravindra Kumar Meena
lient_context; In this case, I have to create global client_context variable to store the file pointer in it. Is that good? -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines)

Re: [PATCH] Write event stream in file

2019-06-21 Thread Ravindra Kumar Meena
; ^ ../misc/record/record-main.c:147:12: note: ‘ns’ was declared here uint32_t ns; The ns value is uninitialized because it is not able to receive the value from if block. Should I make uint32_t seconds; uint32_t nanoseconds; above the block? Thanks -- *Ravindra Kumar Meena*, B. Tech

Re: [PATCH] Write event stream in file

2019-06-21 Thread Ravindra Kumar Meena
ent stream generated. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] Write event stream in file

2019-06-21 Thread Ravindra Kumar Meena
tem.event = item->event; > ctf_item.data = item->data; > >fwrite( &ctf_item, sizeof( ctf_item ), 1, f ); > } > Okay -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iiti

Re: [PATCH] Write event stream in file

2019-06-21 Thread Ravindra Kumar Meena
struct ctf_item. > Yes. It needs research. I am not sure how I can make event stream generated compatible with metadata. I have raised a query for the same on lttng. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of M

Re: [PATCH] Write event stream in file

2019-06-21 Thread Ravindra Kumar Meena
27;t describe the event > > stream. The metadata should describe the struct ctf_item. > > In your current version you have also calls to fprintf() mixed into the > fwrite() in print_item(). > Should I comment the fprintf() and leave it there or

Re: GSoC Project | Basic Support for Trace Compass

2019-06-21 Thread Ravindra Kumar Meena
research. > -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman

Re: CTF example

2019-06-21 Thread Ravindra Kumar Meena
Hi, Thanks for sharing the example. I managed to store the RTEMs event stream in a file. I have also written the metada for the same but babeltrace is not able to read CTF because metadata is not compatible with it. Do you have any example or approach to make metadata compatible with events? Th

GSoC Project | Basic Support for Trace Compass

2019-06-23 Thread Ravindra Kumar Meena
*Plan of the week:* Last I was able to store the event stream in the disk. Now, I plan to convert the native stream into CTF format. Once the conversion is done then I will make the metadata for the converted CTF format. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering

Re: GSoC Project | Basic Support for Trace Compass

2019-06-24 Thread Ravindra Kumar Meena
On Mon, Jun 24, 2019 at 12:06 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 24/06/2019 08:24, Ravindra Kumar Meena wrote: > > *Plan of the week:* > > Last I was able to store the event stream in the disk. Now, I plan to > > convert the native s

Re: GSoC Project | Basic Support for Trace Compass

2019-06-24 Thread Ravindra Kumar Meena
I am using Ghex software to read and modify the binary file in hexadecimal. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___

Re: GSoC Project | Basic Support for Trace Compass

2019-06-24 Thread Ravindra Kumar Meena
he example on [1] have this thing in common. I modified the stream file and added magic number(0xc11fcc1) in it. Then, I parsed both stream file and metadata. Babeltrace was able to read the stream file. [1] https://diamon.org/ctf/ -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering,

Re: GSoC Project | Basic Support for Trace Compass

2019-06-24 Thread Ravindra Kumar Meena
*24th June work summary:* Studied the CTF documentation and tried its example. Tried to modify the HEX values of the stream file generated by the QEMU target. Improved the metadata file. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian

Re: [PATCH] Write event stream in file

2019-06-24 Thread Ravindra Kumar Meena
> > > Do you get compiler warnings with this version? > No I didn't get any compiler warning or error. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iit

Re: GSoC Project | Basic Support for Trace Compass

2019-06-24 Thread Ravindra Kumar Meena
l be able to see that babeltrace is able to read the events. I have cross-checked the the values it is printing. All values(ns,cpu,data) are correct accept the value of events(rtems_record_event). I am currently figuring out why rtems_record_event is giving wrong value. Thanks -- *Ravindra Kum

Re: GSoC Project | Basic Support for Trace Compass

2019-06-24 Thread Ravindra Kumar Meena
th metadata and stream file. The babeltrace was able to read the events. Thanks -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___ dev

Re: GSoC Project | Basic Support for Trace Compass

2019-06-25 Thread Ravindra Kumar Meena
/rmeena840/rtems-docs/tree/ravindra-rtems Thanks -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___ devel mailing list devel@rtems.or

Re: [PATCH] Write event stream in file

2019-06-25 Thread Ravindra Kumar Meena
warnings after reconfiguring again. This can be resolved if we remove the if block. I think there is no need for it now. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanba

Re: GSoC Project | Basic Support for Trace Compass

2019-06-25 Thread Ravindra Kumar Meena
I have cross-checked the the values it is printing. All > > values(ns,cpu,data) are correct accept the value of > > events(rtems_record_event). > > > > I am currently figuring out why rtems_record_event is giving wrong value. > >

Re: [PATCH] Write event stream in file

2019-06-25 Thread Ravindra Kumar Meena
solved if we remove the if block. I think there is no need for it now. > > No, sorry, please fix these warnings immediately. Warnings about > uninitialized variables are very likely a hard error. > Okay. I have resolved the issue. https://github.com/rmeena840/rtems-tools/commit/23aeaa0251

Re: GSoC Project | Basic Support for Trace Compass

2019-06-25 Thread Ravindra Kumar Meena
;event;" then it will work fine. I intentionally tried to pass 897648164864 directly to "ctf_item.data=item->event;" and it was working fine because its byte order is changed and its new value will be 215. I tried a few approaches but didn't work for me. Any idea how to de

Re: [PATCH] Generated event stream metadata file

2019-06-25 Thread Ravindra Kumar Meena
estamp_t ns; > > + uint32_t cpu; > > +rtems_record_event events; > Is the rtems_record_event in a stream 64-bits? > Yes. I am really stuck here. I am trying every possible way but only one variable is printing t

Re: GSoC Project | Basic Support for Trace Compass

2019-06-25 Thread Ravindra Kumar Meena
25th June work summary: I sent the two patches today. One is for trace stream file generation and another one is metadata file for the same. Babeltrace is printing only one value wrong rest all values are correct. I think there is byte order issue with it. -- *Ravindra Kumar Meena*, B. Tech

Re: GSoC Project | Basic Support for Trace Compass

2019-06-25 Thread Ravindra Kumar Meena
for me :). I was really struggling with it. Thanks -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: GSoC Project | Basic Support for Trace Compass

2019-06-25 Thread Ravindra Kumar Meena
0, events = ( "RTEMS_RECORD_THREAD_SWITCH_IN" : container = 215 ), data = 167837711 } I am happy to say this completes phase 1 of my GSoC project. :) :) Thanks -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.

Re: [PATCH v2] Write event stream in file

2019-06-25 Thread Ravindra Kumar Meena
-endian value so that babeltrace can read it in little-endian. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___ devel mailin

Re: GSoC Project | Basic Support for Trace Compass

2019-06-25 Thread Ravindra Kumar Meena
rom this point, there will be four values (ns, cpu, events, data). Once the babeltrace has read the last value(data). It will again see event id equal 0 stating that new event has begun and again it will read four values. It will become more clear if you see the generated trace in HEX format. I u

Re: [PATCH v2] Generated event stream metadata file

2019-06-25 Thread Ravindra Kumar Meena
hen it looks for the traces matching its description in the same directory. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad _

Re: GSoC Project | Basic Support for Trace Compass

2019-06-25 Thread Ravindra Kumar Meena
| head for like 5 seconds. Have a look -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___ devel mailing list devel@rtems.or

Re: GSoC Project | Basic Support for Trace Compass

2019-06-26 Thread Ravindra Kumar Meena
dify the record-client program to read from a file if a > --input= command line option is given > Okay. Are you suggesting to add --input= flag to the following command? ./build/misc/rtems-record -H 169.254.159.156 -p 1234 | head -- *Ravindra Kumar Meena*, B. Tech. Computer Science

Re: GSoC Project | Basic Support for Trace Compass

2019-06-26 Thread Ravindra Kumar Meena
/f68b5031f4e6f847239effe677701635316b12fb Attended the weekly meeting on Freenode. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, D

Re: GSoC Project | Basic Support for Trace Compass

2019-06-26 Thread Ravindra Kumar Meena
On Thu, Jun 27, 2019 at 10:53 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 26/06/2019 17:58, Ravindra Kumar Meena wrote: > > 26th June Work Summary: > > > > Updated the file generation code in rtems-tools with required changes. > > Impr

Re: GSoC Project | Basic Support for Trace Compass

2019-06-26 Thread Ravindra Kumar Meena
ile count=131072 > Okay. It worked. I have placed it in mis/record directory. It is a binary file. So I directly made a push to my GitHub rtems-tools repository workplace. https://github.com/rmeena840/rtems-tools/commit/70d527dcf8ae8a5026dd1af79e4d27c5adcbdade Have a look. -- *Ravindr

Re: GSoC Project | Basic Support for Trace Compass

2019-06-27 Thread Ravindra Kumar Meena
t event; uint64_t data; uint64_t counter; } client_item; I am getting wrong value here? I tested with stream data. I am getting the right values from the binary file. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Techno

Re: GSoC Project | Basic Support for Trace Compass

2019-06-27 Thread Ravindra Kumar Meena
ecord; while(fread(&record, sizeof(record), 1, input_file)) printf ("CPU=%d\n",record.cpu); Here input_file is a file provided through the command. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of T

Re: GSoC Project | Basic Support for Trace Compass

2019-06-27 Thread Ravindra Kumar Meena
record_client_run( &ctx, buf, (size_t) n ); > } else { >break; > } >} > > First you should refactor the code and move the TCP relates stuff into > separate functions. The command line should like this right? ./build/misc/rtems-record --input= | he

Re: GSoC Project | Basic Support for Trace Compass

2019-06-27 Thread Ravindra Kumar Meena
he raw data created today. The babeltrace is able to print all values. I used "./build/misc/rtems-record --input raw_data | head" command generating ctf events from raw data Thanks -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology

GSoC Project | Basic support for Trace Compass

2019-06-27 Thread Ravindra Kumar Meena
27th June Work Summary: Stored compressed version of raw data of size 98 KB generated from QEMU target in misc/record directory. Modified RTEMs client program for --input= flag. It's working fine. ___ devel mailing list devel@rtems.org http://lists.rtems

Re: GSoC Project | Basic Support for Trace Compass

2019-06-28 Thread Ravindra Kumar Meena
ub handle is rmeena840. > > lttng seems to create one event stream file per processor. This is your > next task. > > 1. Open a event stream file for each processor. > The stream file which has ctf event element? > > 2. Write the events of a processor (CPU) to the correspo

GSoC Project | Basic Support for Trace Compass

2019-06-30 Thread Ravindra Kumar Meena
*Plan of the week:* I will continue to work on the new tasks assigned. https://lists.rtems.org/pipermail/devel/2019-June/026410.html I will update my GSoC blog [1]. [1] https://rmeena840.github.io/ -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of

Re: GSoC Project | Basic Support for Trace Compass

2019-07-01 Thread Ravindra Kumar Meena
Have made changes for task writing the events of a processor (CPU) to the corresponding file. https://github.com/rmeena840/rtems-tools/commit/111ee2f3f92a0371241d31542d28687431d18097 Have a look -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of

Re: GSoC Project | Basic Support for Trace Compass

2019-07-01 Thread Ravindra Kumar Meena
*1st July work summary:* Updated the GSoC blog. Worked on the assigned task. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>, Dhanbad ___

Re: GSoC Project | Basic Support for Trace Compass

2019-07-01 Thread Ravindra Kumar Meena
binary file but with the new file(qoriq_e6500_32), it is generating multiple files. > -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines) <https://www.iitism.ac.in/>

Re: GSoC Project | Basic Support for Trace Compass

2019-07-01 Thread Ravindra Kumar Meena
and for the input file, we should have as many files as there stored in variable RTEMS_RECORD_CLIENT_MAXIMUM_CPU_COUNT right? > > For each CPU you have exactly one output file. > > Please don't use sprintf(). Use snprintf() instead. Check the return > value of all functions at least

Re: GSoC Project | Basic Support for Trace Compass

2019-07-01 Thread Ravindra Kumar Meena
or read from a file. Why do you think we have many input files? I > really would like to know this. > I mean that for TCP input we should have one output binary file generated and for file input, we should have multiple binary files generated as output. -- *Ravindra Kumar Meena*, B. Tech. Co

Re: GSoC Project | Basic Support for Trace Compass

2019-07-02 Thread Ravindra Kumar Meena
the medium which delivers your input? > Okay. Have made some changes: https://github.com/rmeena840/rtems-tools/commit/6fb677ce9da9055c904cb89b5b3612557ed995fd Have a look. -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of

Re: GSoC Project | Basic Support for Trace Compass

2019-07-02 Thread Ravindra Kumar Meena
ECORD_CLIENT_MAXIMUM_CPU_COUNT. for( i = 0; i < RTEMS_RECORD_CLIENT_MAXIMUM_CPU_COUNT ; i++ ){ fd[ i ] = ( input_file_flag ) ? open( input_file, O_RDONLY ) : socket( PF_INET, SOCK_STREAM, 0 ); assert( fd[i] >= 0 ); } -- *Ravindra Kumar Meena*, B. Tech. Computer Science

Re: GSoC Project | Basic Support for Trace Compass

2019-07-02 Thread Ravindra Kumar Meena
t; miracle to me, why you try to use multiple input files. It makes not > sense at all from my point of view. > Okay. I have used only one file descriptor. https://github.com/rmeena840/rtems-tools/commit/a67decf3882db81970d88d3507763bf12627cbb6 Have a look. -- *Ravindra Kumar Meena*, B. Tech

Re: GSoC Project | Basic Support for Trace Compass

2019-07-02 Thread Ravindra Kumar Meena
2nd July work summary: Completed assigned task to open an event stream file for each processor. Tried to modify metadata for the new event stream file(not complete). -- *Ravindra Kumar Meena*, B. Tech. Computer Science and Engineering, Indian Institute of Technology (Indian School of Mines

  1   2   3   >