From: Matthew Khouzam <matthew.khouzam-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
To: Philippe Proulx
<philippe.proulx-scC8bbJcJLCw5LPnMra/2Q@public.gmane.org>
Cc: "lttng-dev-bnB2LGs2QVJ+nrgayQ7rhA@public.gmane.org"
<lttng-dev-bnB2LGs2QVJ+nrgayQ7rhA@public.gmane.org>,
Linux Tools developer discussions
<linuxtools-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org>
Subject: Re: [lttng-dev] Java code for CTF trace writing?
Date: Tue, 23 Apr 2013 11:38:34 -0400 [thread overview]
Message-ID: <5176AAFA.8060905@ericsson.com> (raw)
In-Reply-To: <CAB4xu_1zOHUD03dQ57DxKpQ1RWorocGK_0URCaxnohHB1FLEDw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi all,
Just to mention, everything Philippe said was 100% true, we just right
now are too stretched to add the trace writer to eclipse. It will be
integrated fairly soon, I think.
Matt
On 13-04-15 06:01 PM, Philippe Proulx wrote:
> Actually, that was the exact purpose of my internship at Ericsson last summer.
>
> I designed a new architecture for the CTF part of TMF, but it is still
> not merged/integrated with mainline TMF (I don't even know if it's
> still planned). See
> <http://git.dorsal.polymtl.ca/~pproulx?p=javeltrace.git;a=summary>.
>
> This new architecture is able to read _and write_ CTF packets in a
> generic way. The "Javeltrace" name is just a portmanteau of Java and
> Babeltrace, although should this refined library be integrated into
> TMF, it's not planned to be named like this. However, there exist a
> command-line tool that I made which is officially named Javeltrace and
> uses the aforementioned library. It is described here:
> <http://www.dorsal.polymtl.ca/~pproulx/javeltrace/>. As explained on
> the webpage, the main goal of this utility is to test my work
> interactively.
>
> Keep in mind that everything mentioned here is not thoroughly tested
> and for sure there are a few bugs remaining. Also, the code didn't
> evolve with the latest CTF versions, so there must be incompatibility
> at some level.
>
> The main use case at Ericsson was to synthesize a precise fake trace
> from scratch using a human readable input format that could be
> versioned. The generated CTF traces would then be used to exercise
> parts of TMF to test specific behaviours without having to produce an
> actual real trace. After a few discussions, we chose JSON as an
> interchange format. So you will see lots of JSON related code out
> there. The command-line Javeltrace utility is able to translate
> from/to binary CTF.
>
> At the end of my internship, I started writing docs for what I did.
> It's here: <http://wiki.eclipse.org/Linux_Tools_Project/TMF/CTF_guide>.
> It's not finished, but almost, so it should be up-to-date with my Git
> codebase.
>
> I also made this as a proof of concept:
> <http://git.dorsal.polymtl.ca/~pproulx?p=javeltrace.git;a=tree;f=lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/out;h=67ab3097e9f3fc52a685d29620e4c40ee26ee896;hb=47b4cef68eb4524fc9e1865f58474e0bc81eba77>
> (see all Mug*.java files). MugTracer is a simple Java tracer that
> produces native CTF without even using the rest of my library since
> CTF is so easy to *write*. It has a consumer thread and worked well,
> although I didn't run any benchmark and I believe it's really slow
> compared to UST.
>
> Feel free to contact me, should you have any question about this.
>
> On 15 April 2013 17:14, Aaron Spear <aspear-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org> wrote:
>> Hi all,
>>
>> I was wondering if anyone knew of some open source Java library that could WRITE CTF traces? I am using the linuxtools/TMF plugins to read CTF traces, but now need to write them from Java as well.
>>
>> I have a use case where I have an "event bus" in the Java app world and I would like to persist this event stream as a CTF trace. In this particular use case, the speed/low intrusiveness of LTTng UST is not as important as the portability, so a pure Java solution is ideal, though not strictly required.
>>
>> Also, please let me know if there are others out there who are interested in collaborating in writing such a library.
>>
>> regards,
>> Aaron Spear
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev-bnB2LGs2QVJ+nrgayQ7rhA@public.gmane.org
>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> _______________________________________________
> lttng-dev mailing list
> lttng-dev-bnB2LGs2QVJ+nrgayQ7rhA@public.gmane.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
next parent reply other threads:[~2013-04-23 15:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAB4xu_1zOHUD03dQ57DxKpQ1RWorocGK_0URCaxnohHB1FLEDw@mail.gmail.com>
[not found] ` <CAB4xu_1zOHUD03dQ57DxKpQ1RWorocGK_0URCaxnohHB1FLEDw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-23 15:38 ` Matthew Khouzam [this message]
[not found] ` <5176AAFA.8060905-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
2013-04-23 18:21 ` [lttng-dev] Java code for CTF trace writing? Aaron Spear
[not found] ` <1962635283.7490228.1366741297558.JavaMail.root-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
2013-04-23 18:39 ` Matthew Khouzam
[not found] ` <5176D556.8040801-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
2013-04-23 20:50 ` Aaron Spear
2013-05-06 14:33 ` Ostermueller, Erik
[not found] ` <A94B468263DDE2448A14367F590EB97301D4DA41@ltcfiswmsgmb15>
2013-05-06 15:26 ` Philippe Proulx
2013-05-06 17:53 ` Aaron Spear
[not found] ` <1670315418.908522.1367862807840.JavaMail.root-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
2013-05-08 11:38 ` Bernd Hufmann
[not found] ` <1EE6FD30D622B345AF385887190055E3085C45-37wnTBQGOYLKJFWPz4pdheaU1rCVNFv4@public.gmane.org>
2013-05-08 14:53 ` Aaron Spear
[not found] ` <1100886.2797960.1368024815323.JavaMail.root-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
2013-05-09 11:05 ` Bernd Hufmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5176AAFA.8060905@ericsson.com \
--to=matthew.khouzam-izefyvvap7pwk0htik3j/w@public.gmane.org \
--cc=linuxtools-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org \
--cc=lttng-dev-bnB2LGs2QVJ+nrgayQ7rhA@public.gmane.org \
--cc=philippe.proulx-scC8bbJcJLCw5LPnMra/2Q@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.