Re: [lttng-dev] [RFC babeltrace 1/2] fs-src: add argument for metadata src dir

2018-05-01 Thread Alexander Aring
On Tue, May 01, 2018 at 11:43:32AM -0400, Alexander Aring wrote: ... > > > > Normally, a trace has a unique UUID. If you cannot ensure this, I > > suggest that you remove the UUID field from the packet header. > > > > I see, according [0]: > > Trace UUID, u

Re: [lttng-dev] [RFC babeltrace 1/2] fs-src: add argument for metadata src dir

2018-05-01 Thread Alexander Aring
Hi, On Tue, May 01, 2018 at 11:22:18AM -0400, Philippe Proulx wrote: ... > > > > I also thought about: using barectf and generate a object file linked > > to my platform who has the metadata file inside and will be created to > > my stream file when barectf init's (if it's not already exists). > >

Re: [lttng-dev] [RFC babeltrace 1/2] fs-src: add argument for metadata src dir

2018-05-01 Thread Alexander Aring
Hi, On Mon, Apr 30, 2018 at 06:36:08PM -0400, Philippe Proulx wrote: > On Mon, Apr 30, 2018 at 5:31 PM, Alexander Aring wrote: > > > > This patch adds an argument for the fs-src plugin to declare the > > directory to find the metadata file instead of placing it in every

Re: [lttng-dev] [RFC babeltrace 0/2] fs-src: add metadata-src parameter

2018-05-01 Thread Alexander Aring
Hi, On Mon, Apr 30, 2018 at 07:11:30PM -0400, Philippe Proulx wrote: > On Mon, Apr 30, 2018 at 5:31 PM, Alexander Aring wrote: > > Hi, > > > > my use-case is just... we have several application with the same metadata > > file. Currently I build a wrapper around babel

[lttng-dev] [RFC babeltrace 2/2] doc: man: babeltrace-source.ctf.fs.7: add metadata-src

2018-04-30 Thread Alexander Aring
Signed-off-by: Alexander Aring --- doc/man/babeltrace-source.ctf.fs.7.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/man/babeltrace-source.ctf.fs.7.txt b/doc/man/babeltrace-source.ctf.fs.7.txt index 74b08b67..e9da83cf 100644 --- a/doc/man/babeltrace-source.ctf.fs.7.txt +++ b

[lttng-dev] [RFC babeltrace 1/2] fs-src: add argument for metadata src dir

2018-04-30 Thread Alexander Aring
regular files will be assumed as ctf trace files. Signed-off-by: Alexander Aring --- cli/babeltrace-cfg-cli-args.c | 10 + plugins/ctf/fs-src/fs.c | 88 +++ plugins/ctf/fs-src/fs.h | 3 +- plugins/ctf/fs-src/metadata.c | 8 +++- plugins

[lttng-dev] [RFC babeltrace 0/2] fs-src: add metadata-src parameter

2018-04-30 Thread Alexander Aring
will fail. Also I think I still need to have a wrapper around babeltrace to specify the metadata dir as metadata-src then... but better than this cp in front of it. - Alex [0] http://man7.org/linux/man-pages/man7/babeltrace-source.ctf.fs.7.html See "trace naming". Alexander Aring