* [lttng-dev] [PULL REQUEST babeltrace] Python bindings update
@ 2013-11-13 3:06 Jérémie Galarneau
2013-11-13 14:17 ` Mathieu Desnoyers
0 siblings, 1 reply; 4+ messages in thread
From: Jérémie Galarneau @ 2013-11-13 3:06 UTC (permalink / raw)
Hi all,
Here are some patches to add read support of every CTF type using the
Babeltrace Python bindings. It is now possible to retrieve fields and
access their values using a single get_value() method returning native
Python objects. This is made possible using the work contributed by
one of our GSoC students, Xiaona Han.
These patches also make it possible to generate CTF from Python code,
based on the CTF Writer API that was merged recently.
The patches are available here:
https://github.com/jgalar/babeltrace/commits/bindings/python
7a30a66 Return event fields by field name
db551f2 Remove the unnecessary underscore prefix
4191bcd Support getting the value of enums
3c2ce77 Add a generic get_value() implementation
786207e Support for the sequence type
810a97b Add a python bindings sequence test
3043ee0 Remove Python 2 specific examples
90131a3 Fix: Throw a FieldError exception when get_value() fails
e5a73b9 Add support for floating point fields in the Python bindings
812e668 Add support for variant fields in the Python bindings
3a06891 Add support for structure fields in the Python bindings
cebae8c Fix: Python bindings array access functions write out of bounds
24d5c94 Rename the ctf class to CTFReader
ec8c88d Add CTF Writer Python bindings
033fb0a Add a usage example for the CTF Writer Python bindings
94a6cea Don't generate Python bindings by default
5491476 Expose text arrays the same way as regular arrays
Looking forward to your comments,
J?r?mie
--
J?r?mie Galarneau
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [lttng-dev] [PULL REQUEST babeltrace] Python bindings update
2013-11-13 3:06 [lttng-dev] [PULL REQUEST babeltrace] Python bindings update Jérémie Galarneau
@ 2013-11-13 14:17 ` Mathieu Desnoyers
2013-11-14 9:48 ` [lttng-dev] " Michael Lausch
0 siblings, 1 reply; 4+ messages in thread
From: Mathieu Desnoyers @ 2013-11-13 14:17 UTC (permalink / raw)
----- Original Message -----
> From: "J?r?mie Galarneau" <jeremie.galarneau@efficios.com>
> To: lttng-dev at lists.lttng.org
> Cc: "Mathieu Desnoyers" <mathieu.desnoyers at efficios.com>
> Sent: Tuesday, November 12, 2013 10:06:41 PM
> Subject: [PULL REQUEST babeltrace] Python bindings update
>
> Hi all,
>
> Here are some patches to add read support of every CTF type using the
> Babeltrace Python bindings. It is now possible to retrieve fields and
> access their values using a single get_value() method returning native
> Python objects. This is made possible using the work contributed by
> one of our GSoC students, Xiaona Han.
>
> These patches also make it possible to generate CTF from Python code,
> based on the CTF Writer API that was merged recently.
Merged into bindings/python branch. Please let me know if I should merge these into master.
Thanks,
Mathieu
>
> The patches are available here:
> https://github.com/jgalar/babeltrace/commits/bindings/python
>
> 7a30a66 Return event fields by field name
> db551f2 Remove the unnecessary underscore prefix
> 4191bcd Support getting the value of enums
> 3c2ce77 Add a generic get_value() implementation
> 786207e Support for the sequence type
> 810a97b Add a python bindings sequence test
> 3043ee0 Remove Python 2 specific examples
> 90131a3 Fix: Throw a FieldError exception when get_value() fails
> e5a73b9 Add support for floating point fields in the Python bindings
> 812e668 Add support for variant fields in the Python bindings
> 3a06891 Add support for structure fields in the Python bindings
> cebae8c Fix: Python bindings array access functions write out of bounds
> 24d5c94 Rename the ctf class to CTFReader
> ec8c88d Add CTF Writer Python bindings
> 033fb0a Add a usage example for the CTF Writer Python bindings
> 94a6cea Don't generate Python bindings by default
> 5491476 Expose text arrays the same way as regular arrays
>
> Looking forward to your comments,
> J?r?mie
>
> --
> J?r?mie Galarneau
> EfficiOS Inc.
> http://www.efficios.com
>
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [lttng-dev] Python bindings update
2013-11-13 14:17 ` Mathieu Desnoyers
@ 2013-11-14 9:48 ` Michael Lausch
2013-11-18 16:31 ` Mathieu Desnoyers
0 siblings, 1 reply; 4+ messages in thread
From: Michael Lausch @ 2013-11-14 9:48 UTC (permalink / raw)
Hi,
I just finished a setup.py.in. It needs some testing (i can do ubuntu, fedora tests).
If you are interested, I can provide a patch on the mailing list.
-----Original Message-----
From: Mathieu Desnoyers [mailto:mathieu.desnoyers@efficios.com]
Sent: Wednesday, November 13, 2013 3:18 PM
To: J?r?mie Galarneau
Cc: lttng-dev at lists.lttng.org
Subject: Re: [lttng-dev] [PULL REQUEST babeltrace] Python bindings update
----- Original Message -----
> From: "J?r?mie Galarneau" <jeremie.galarneau@efficios.com>
> To: lttng-dev at lists.lttng.org
> Cc: "Mathieu Desnoyers" <mathieu.desnoyers at efficios.com>
> Sent: Tuesday, November 12, 2013 10:06:41 PM
> Subject: [PULL REQUEST babeltrace] Python bindings update
>
> Hi all,
>
> Here are some patches to add read support of every CTF type using the
> Babeltrace Python bindings. It is now possible to retrieve fields and
> access their values using a single get_value() method returning native
> Python objects. This is made possible using the work contributed by
> one of our GSoC students, Xiaona Han.
>
> These patches also make it possible to generate CTF from Python code,
> based on the CTF Writer API that was merged recently.
Merged into bindings/python branch. Please let me know if I should merge these into master.
Thanks,
Mathieu
>
> The patches are available here:
> https://github.com/jgalar/babeltrace/commits/bindings/python
>
> 7a30a66 Return event fields by field name
> db551f2 Remove the unnecessary underscore prefix
> 4191bcd Support getting the value of enums
> 3c2ce77 Add a generic get_value() implementation
> 786207e Support for the sequence type
> 810a97b Add a python bindings sequence test
> 3043ee0 Remove Python 2 specific examples
> 90131a3 Fix: Throw a FieldError exception when get_value() fails
> e5a73b9 Add support for floating point fields in the Python bindings
> 812e668 Add support for variant fields in the Python bindings
> 3a06891 Add support for structure fields in the Python bindings
> cebae8c Fix: Python bindings array access functions write out of bounds
> 24d5c94 Rename the ctf class to CTFReader
> ec8c88d Add CTF Writer Python bindings
> 033fb0a Add a usage example for the CTF Writer Python bindings
> 94a6cea Don't generate Python bindings by default
> 5491476 Expose text arrays the same way as regular arrays
>
> Looking forward to your comments,
> J?r?mie
>
> --
> J?r?mie Galarneau
> EfficiOS Inc.
> http://www.efficios.com
>
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev at lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
* [lttng-dev] Python bindings update
2013-11-14 9:48 ` [lttng-dev] " Michael Lausch
@ 2013-11-18 16:31 ` Mathieu Desnoyers
0 siblings, 0 replies; 4+ messages in thread
From: Mathieu Desnoyers @ 2013-11-18 16:31 UTC (permalink / raw)
Not sure what it provides, but by all means send it to the ML.
Thanks,
Mathieu
----- Original Message -----
> From: "Michael Lausch" <michael.lausch@omicron.at>
> To: lttng-dev at lists.lttng.org
> Sent: Thursday, November 14, 2013 4:48:49 AM
> Subject: Re: [lttng-dev] Python bindings update
>
> Hi,
> I just finished a setup.py.in. It needs some testing (i can do ubuntu, fedora
> tests).
> If you are interested, I can provide a patch on the mailing list.
>
> -----Original Message-----
> From: Mathieu Desnoyers [mailto:mathieu.desnoyers@efficios.com]
> Sent: Wednesday, November 13, 2013 3:18 PM
> To: J?r?mie Galarneau
> Cc: lttng-dev at lists.lttng.org
> Subject: Re: [lttng-dev] [PULL REQUEST babeltrace] Python bindings update
>
> ----- Original Message -----
> > From: "J?r?mie Galarneau" <jeremie.galarneau@efficios.com>
> > To: lttng-dev at lists.lttng.org
> > Cc: "Mathieu Desnoyers" <mathieu.desnoyers at efficios.com>
> > Sent: Tuesday, November 12, 2013 10:06:41 PM
> > Subject: [PULL REQUEST babeltrace] Python bindings update
> >
> > Hi all,
> >
> > Here are some patches to add read support of every CTF type using the
> > Babeltrace Python bindings. It is now possible to retrieve fields and
> > access their values using a single get_value() method returning native
> > Python objects. This is made possible using the work contributed by
> > one of our GSoC students, Xiaona Han.
> >
> > These patches also make it possible to generate CTF from Python code,
> > based on the CTF Writer API that was merged recently.
>
> Merged into bindings/python branch. Please let me know if I should merge
> these into master.
>
> Thanks,
>
> Mathieu
>
> >
> > The patches are available here:
> > https://github.com/jgalar/babeltrace/commits/bindings/python
> >
> > 7a30a66 Return event fields by field name
> > db551f2 Remove the unnecessary underscore prefix
> > 4191bcd Support getting the value of enums
> > 3c2ce77 Add a generic get_value() implementation
> > 786207e Support for the sequence type
> > 810a97b Add a python bindings sequence test
> > 3043ee0 Remove Python 2 specific examples
> > 90131a3 Fix: Throw a FieldError exception when get_value() fails
> > e5a73b9 Add support for floating point fields in the Python bindings
> > 812e668 Add support for variant fields in the Python bindings
> > 3a06891 Add support for structure fields in the Python bindings
> > cebae8c Fix: Python bindings array access functions write out of bounds
> > 24d5c94 Rename the ctf class to CTFReader
> > ec8c88d Add CTF Writer Python bindings
> > 033fb0a Add a usage example for the CTF Writer Python bindings
> > 94a6cea Don't generate Python bindings by default
> > 5491476 Expose text arrays the same way as regular arrays
> >
> > Looking forward to your comments,
> > J?r?mie
> >
> > --
> > J?r?mie Galarneau
> > EfficiOS Inc.
> > http://www.efficios.com
> >
>
> --
> Mathieu Desnoyers
> EfficiOS Inc.
> http://www.efficios.com
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-18 16:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-13 3:06 [lttng-dev] [PULL REQUEST babeltrace] Python bindings update Jérémie Galarneau
2013-11-13 14:17 ` Mathieu Desnoyers
2013-11-14 9:48 ` [lttng-dev] " Michael Lausch
2013-11-18 16:31 ` Mathieu Desnoyers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox