Re: [Qemu-devel] [PATCH] trace: teach lttng backend to use format strings

2014-03-26 Thread Mohamad Gebai
I can confirm that it works for me, I can see the disk image file name in the payload of brdv_open_common events. Mohamad On 03/26/2014 04:27 AM, Stefan Hajnoczi wrote: On Tue, Mar 25, 2014 at 02:49:42PM +, Alex Bennée wrote: Stefan Hajnoczi writes: On Mon, Mar 24, 2014 at 05:04:54PM +

Re: [Qemu-devel] [PATCH v6 0/5] Fix UST backend for LTTng 2.x

2014-01-30 Thread Mohamad Gebai
On 01/30/2014 09:02 AM, Stefan Hajnoczi wrote: Thanks for your efforts to bring the LTTng UST tracer back to life! Applied to my tracing tree: https://github.com/stefanha/qemu/commits/tracing Stefan Great, thank you! Mohamad

[Qemu-devel] [PATCH v6 5/5] Add ust generated files to .gitignore

2014-01-29 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai Reviewed-by: Alex Bennée --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 1c9d63d..bed8dcf 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,8 @@ trace/generated-tracers-dtrace.h trace/generated-tracers.dtrace

[Qemu-devel] [PATCH v6 4/5] Update documentation for LTTng ust tracing

2014-01-29 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- docs/tracing.txt | 36 1 file changed, 36 insertions(+) diff --git a/docs/tracing.txt b/docs/tracing.txt index bfc261b..bf2e15c 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt @@ -214,6 +214,42 @@ The "ust" ba

[Qemu-devel] [PATCH v6 3/5] Adapt Makefiles to the new LTTng ust interface

2014-01-29 Thread Mohamad Gebai
Add generation of new files for LTTng ust. Signed-off-by: Mohamad Gebai --- Makefile| 5 + trace/Makefile.objs | 25 + 2 files changed, 30 insertions(+) diff --git a/Makefile b/Makefile index bdff4e4..ca51193 100644 --- a/Makefile +++ b/Makefile

[Qemu-devel] [PATCH v6 1/5] Fix configure script for LTTng 2.x

2014-01-29 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- configure | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/configure b/configure index b472694..2a14014 100755 --- a/configure +++ b/configure @@ -3365,15 +3365,25 @@ fi # For 'ust' backend, test if ust h

[Qemu-devel] [PATCH v6 2/5] Modified the tracetool framework for LTTng 2.x

2014-01-29 Thread Mohamad Gebai
: Mohamad Gebai Reviewed-by: Alex Bennée --- scripts/tracetool/backend/ust.py | 101 ++- scripts/tracetool/format/ust_events_c.py | 30 + scripts/tracetool/format/ust_events_h.py | 57 + 3 files changed, 132 insertions(+), 56 deletions

[Qemu-devel] [PATCH v6 0/5] Fix UST backend for LTTng 2.x

2014-01-29 Thread Mohamad Gebai
Version 6 * Move ust specific code from tracetool/backend/events.py to tracetool/backend/ust.py Mohamad Gebai (5): Fix configure script for LTTng 2.x Modified the tracetool framework for LTTng 2.x Adapt Makefiles to the new LTTng ust interface Update documentation for LTTng ust tracing

Re: [Qemu-devel] [PATCH v5 0/5] Fix UST backend for LTTng 2.x

2013-12-10 Thread Mohamad Gebai
Ping. I just wanted to know the status of this patch. Thanks On 11/04/2013 11:41 AM, Alex Bennée wrote: mohamad.ge...@gmail.com writes: Version 5 * Use pkg-config for lttng-ust and urcu-bp libraries in configure (hard-coded libraries as a fallback) * s/Qemu/QEMU in docs/tracing.txt * Bet

Re: [Qemu-devel] [PATCH v5 1/5] Fix configure script for LTTng 2.x

2013-10-25 Thread Mohamad Gebai
On 10/25/2013 10:33 AM, Alex Bennée wrote: mohamad.ge...@polymtl.ca writes: Yes, the bug is actually only in the Ubuntu package (missing liburcu*.pc files). It is fixed everywhere else, including the LTTng PPA. There is a bug report about it on Launchpad. Either ways, this fall back avoids getti

Re: [Qemu-devel] [PATCH v5 1/5] Fix configure script for LTTng 2.x

2013-10-25 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- Tested on Ubuntu 12.04 with and without the LTTNG PPA and seems to work well enough. Reviewed-by: Alex Bennée Yes, the bug is actually only in the Ubuntu package (missing liburcu*.pc files). It is fixed everywhere else, including the LTTng PPA. There is

[Qemu-devel] [PATCH v5 2/5] Modified the tracetool framework for LTTng 2.x

2013-10-24 Thread Mohamad Gebai
: Mohamad Gebai Reviewed-by: Alex Bennée --- scripts/tracetool/backend/events.py | 44 + scripts/tracetool/backend/ust.py | 82 +++- scripts/tracetool/format/ust_events_c.py | 30 scripts/tracetool/format/ust_events_h.py | 57

[Qemu-devel] [PATCH v5 3/5] Adapt Makefiles to the new LTTng ust interface

2013-10-24 Thread Mohamad Gebai
Add generation of new files for LTTng ust. Signed-off-by: Mohamad Gebai --- Makefile| 5 + trace/Makefile.objs | 25 + 2 files changed, 30 insertions(+) diff --git a/Makefile b/Makefile index b15003f..7935d9b 100644 --- a/Makefile +++ b/Makefile

[Qemu-devel] [PATCH v5 4/5] Update documentation for LTTng ust tracing

2013-10-24 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- docs/tracing.txt | 36 1 file changed, 36 insertions(+) diff --git a/docs/tracing.txt b/docs/tracing.txt index bfc261b..bf2e15c 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt @@ -214,6 +214,42 @@ The "ust" ba

[Qemu-devel] [PATCH v5 0/5] Fix UST backend for LTTng 2.x

2013-10-24 Thread Mohamad Gebai
Version 5 * Use pkg-config for lttng-ust and urcu-bp libraries in configure (hard-coded libraries as a fallback) * s/Qemu/QEMU in docs/tracing.txt * Better dependencies for ust-generated files in trace/Makefile.obj Mohamad Gebai (5): Fix configure script for LTTng 2.x Modified the

[Qemu-devel] [PATCH v5 1/5] Fix configure script for LTTng 2.x

2013-10-24 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- configure | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 57ee62a..f20ceaa 100755 --- a/configure +++ b/configure @@ -3284,15 +3284,25 @@ fi # For 'ust' backend, test if ust h

[Qemu-devel] [PATCH v5 5/5] Add ust generated files to .gitignore

2013-10-24 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai Reviewed-by: Alex Bennée --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 8e1b73f..e024a76 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,8 @@ trace/generated-tracers-dtrace.h trace/generated-tracers.dtrace

Re: [Qemu-devel] [PATCH v4 1/5] Fix configure script for LTTng 2.x

2013-10-21 Thread Mohamad Gebai
On 13-10-18 10:05 AM, Stefan Hajnoczi wrote: On Fri, Oct 18, 2013 at 02:39:49AM -0400, Mohamad Gebai wrote: Signed-off-by: Mohamad Gebai --- configure |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 23dbaaf..627054c 100755 --- a

[Qemu-devel] [PATCH v4 5/5] Add ust generated files to .gitignore

2013-10-17 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- .gitignore |2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 8e1b73f..e024a76 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,8 @@ trace/generated-tracers-dtrace.h trace/generated-tracers.dtrace trace/generated-events.h

[Qemu-devel] [PATCH v4 3/5] Adapt Makefiles to the new LTTng ust interface.

2013-10-17 Thread Mohamad Gebai
Add generation of new files for LTTng ust. Signed-off-by: Mohamad Gebai --- Makefile|5 + trace/Makefile.objs | 29 +++-- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 60fb87e..0c797c5 100644 --- a

[Qemu-devel] [PATCH v4 4/5] Update documentation for LTTng ust tracing

2013-10-17 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- docs/tracing.txt | 36 1 file changed, 36 insertions(+) diff --git a/docs/tracing.txt b/docs/tracing.txt index bfc261b..d7be2fd 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt @@ -214,6 +214,42 @@ The "ust&quo

[Qemu-devel] [PATCH v4 0/5] Fix UST backend for LTTng 2.x

2013-10-17 Thread Mohamad Gebai
Version 4 * Update documentation Mohamad Gebai (5): Fix configure script for LTTng 2.x Modified the tracetool framework for LTTng 2.x. Adapt Makefiles to the new LTTng ust interface. Update documentation for LTTng ust tracing Add ust generated files to .gitignore .gitignore

[Qemu-devel] [PATCH v4 2/5] Modified the tracetool framework for LTTng 2.x.

2013-10-17 Thread Mohamad Gebai
: Mohamad Gebai --- scripts/tracetool/backend/events.py | 44 scripts/tracetool/backend/ust.py | 82 ++ scripts/tracetool/format/ust_events_c.py | 30 +++ scripts/tracetool/format/ust_events_h.py | 57 + 4 files

[Qemu-devel] [PATCH v4 1/5] Fix configure script for LTTng 2.x

2013-10-17 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- configure |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 23dbaaf..627054c 100755 --- a/configure +++ b/configure @@ -3287,15 +3287,14 @@ fi # For 'ust' backend, test if ust headers are presen

Re: [Qemu-devel] [RFC PATCH v3 4/5] Update documentation for LTTng ust tracing

2013-10-17 Thread Mohamad Gebai
On 13-10-17 05:20 AM, Alex Bennée wrote: mohamad.ge...@polymtl.ca writes: On 13-10-16 08:05 AM, Alex Bennée wrote: Running this gives me: UST events: - None Before or after running qemu. What is the mechanism lttng expects to find out all these events? Either the user should b

Re: [Qemu-devel] [RFC PATCH v3 3/5] Adapt Makefiles to the new LTTng ust interface.

2013-10-16 Thread Mohamad Gebai
On 13-10-16 08:08 AM, Alex Bennée wrote: Add generation of new files for LTTng ust. Signed-off-by: Mohamad Gebai I did run into problems with the first build which were solved with a make clean. But I suspect making the Makefile robust to that is more effort than it's worth. I a

Re: [Qemu-devel] [RFC PATCH v3 4/5] Update documentation for LTTng ust tracing

2013-10-16 Thread Mohamad Gebai
On 13-10-16 08:05 AM, Alex Bennée wrote: Running this gives me: UST events: - None Before or after running qemu. What is the mechanism lttng expects to find out all these events? Either the user should belong the group "tracing", or launch the lttng-sessiond daemon (lttng-session

Re: [Qemu-devel] [RFC PATCH v3 4/5] Update documentation for LTTng ust tracing

2013-10-15 Thread Mohamad Gebai
Running this gives me: UST events: - None Before or after running qemu. What is the mechanism lttng expects to find out all these events? Either the user should belong the group "tracing", or launch the lttng-sessiond daemon (lttng-sessiond -d). + +Create tracing session:

[Qemu-devel] [RFC PATCH v3 3/5] Adapt Makefiles to the new LTTng ust interface.

2013-10-14 Thread Mohamad Gebai
Add generation of new files for LTTng ust. Signed-off-by: Mohamad Gebai --- Makefile|5 + trace/Makefile.objs | 29 +++-- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 60fb87e..0c797c5 100644 --- a

[Qemu-devel] [RFC PATCH v3 2/5] Modified the tracetool framework for LTTng 2.x.

2013-10-14 Thread Mohamad Gebai
: Mohamad Gebai --- scripts/tracetool/backend/events.py | 44 scripts/tracetool/backend/ust.py | 82 ++ scripts/tracetool/format/ust_events_c.py | 30 +++ scripts/tracetool/format/ust_events_h.py | 57 + 4 files

[Qemu-devel] [RFC PATCH v3 5/5] Add ust generated files to .gitignore

2013-10-14 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- .gitignore |2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 8e1b73f..e024a76 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,8 @@ trace/generated-tracers-dtrace.h trace/generated-tracers.dtrace trace/generated-events.h

[Qemu-devel] [RFC PATCH v3 0/5] Fix UST backend for LTTng 2.x

2013-10-14 Thread Mohamad Gebai
Version 3 * Change component name to avoid potential namespace collision with another project. * Update ust documentation in docs/tracing.txt. * Add ust generated files to .gitignore. Mohamad Gebai (5): Fix configure script for LTTng 2.x Modified the tracetool framework for LTTng 2.x

[Qemu-devel] [RFC PATCH v3 1/5] Fix configure script for LTTng 2.x

2013-10-14 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- configure |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 23dbaaf..627054c 100755 --- a/configure +++ b/configure @@ -3287,15 +3287,14 @@ fi # For 'ust' backend, test if ust headers are presen

[Qemu-devel] [RFC PATCH v3 4/5] Update documentation for LTTng ust tracing

2013-10-14 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- docs/tracing.txt | 31 +++ 1 file changed, 31 insertions(+) diff --git a/docs/tracing.txt b/docs/tracing.txt index bfc261b..64683db 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt @@ -214,6 +214,37 @@ The "ust" backen

Re: [Qemu-devel] [RFC PATCH v2 0/3] Fix UST backend for LTTng 2.x

2013-10-14 Thread Mohamad Gebai
ewed-by: Alex Bennée Mohamad Mohamad Gebai (3): Fix configure script for LTTng 2.x Modified the tracetool framework for LTTng 2.x. Adapt Makefiles to the new LTTng ust interface. Makefile |5 ++ configure|9 ++-- scrip

[Qemu-devel] [RFC PATCH] Update documentation for LTTng ust tracing

2013-10-14 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- docs/tracing.txt | 31 +++ 1 file changed, 31 insertions(+) diff --git a/docs/tracing.txt b/docs/tracing.txt index bfc261b..cbb3aaf 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt @@ -214,6 +214,37 @@ The "ust" backen

[Qemu-devel] [RFC PATCH v2 1/3] Fix configure script for LTTng 2.x

2013-10-04 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- configure |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 23dbaaf..627054c 100755 --- a/configure +++ b/configure @@ -3287,15 +3287,14 @@ fi # For 'ust' backend, test if ust headers are presen

[Qemu-devel] [RFC PATCH v2 2/3] Modified the tracetool framework for LTTng 2.x.

2013-10-04 Thread Mohamad Gebai
: Mohamad Gebai --- scripts/tracetool/backend/events.py | 44 scripts/tracetool/backend/ust.py | 82 ++ scripts/tracetool/format/ust_events_c.py | 30 +++ scripts/tracetool/format/ust_events_h.py | 57 + 4 files

[Qemu-devel] [RFC PATCH v2 0/3] Fix UST backend for LTTng 2.x

2013-10-04 Thread Mohamad Gebai
hamad Mohamad Gebai (3): Fix configure script for LTTng 2.x Modified the tracetool framework for LTTng 2.x. Adapt Makefiles to the new LTTng ust interface. Makefile |5 ++ configure|9 ++-- scripts/tracetool/ba

[Qemu-devel] [RFC PATCH v2 3/3] Adapt Makefiles to the new LTTng ust interface.

2013-10-04 Thread Mohamad Gebai
Add generation of new files for LTTng ust. Signed-off-by: Mohamad Gebai --- Makefile|5 + trace/Makefile.objs | 29 +++-- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 60fb87e..0c797c5 100644 --- a

Re: [Qemu-devel] [lttng-dev] [PATCH] trace: drop LTTng Userspace Tracer backend

2013-09-30 Thread Mohamad Gebai
: On Wed, Sep 25, 2013 at 12:34:26PM -0400, Mohamad Gebai wrote: I am actually using LTTng 2.x as a backend for UST to do some performance analysis and latency investigation using Qemu/KVM. I already have all the patches ready to replace the old 0.x interface, and I am preparing them for the

[Qemu-devel] [RFC PATCH 2/3] Modified the tracetool framework for LTTng 2.x.

2013-09-30 Thread Mohamad Gebai
: Mohamad Gebai --- scripts/tracetool/backend/events.py | 44 scripts/tracetool/backend/ust.py | 82 ++ scripts/tracetool/format/ust_events_c.py | 30 +++ scripts/tracetool/format/ust_events_h.py | 39 ++ 4 files

[Qemu-devel] [RFC PATCH 0/3] Fix UST backend for LTTng 2.x

2013-09-30 Thread Mohamad Gebai
separating tracepoints into multiple providers. Of course, this would require more modifications as well as a way to specify to which provider each tracepoint belongs in file trace-events. Mohamad Mohamad Gebai (3): Fix configure script for LTTng 2.x Modified the tracetool framework for LTTng 2.

[Qemu-devel] [RFC PATCH 3/3] Adapt Makefiles to the new LTTng ust interface.

2013-09-30 Thread Mohamad Gebai
Add generation of new files for LTTng ust. Signed-off-by: Mohamad Gebai --- Makefile|5 + trace/Makefile.objs | 29 +++-- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 60fb87e..0c797c5 100644 --- a

[Qemu-devel] [RFC PATCH 1/3] Fix configure script for LTTng 2.x

2013-09-30 Thread Mohamad Gebai
Signed-off-by: Mohamad Gebai --- configure |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 05e16da..b3c9b80 100755 --- a/configure +++ b/configure @@ -3283,15 +3283,14 @@ fi # For 'ust' backend, test if ust headers are presen

Re: [Qemu-devel] [lttng-dev] [PATCH] trace: drop LTTng Userspace Tracer backend

2013-09-25 Thread Mohamad Gebai
Hi Stefan, I am actually using LTTng 2.x as a backend for UST to do some performance analysis and latency investigation using Qemu/KVM. I already have all the patches ready to replace the old 0.x interface, and I am preparing them for the merge upstream.