Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] Printing complex data types with LTTng
       [not found] <CAL1ZhONSOm9F8GkQ_z9LSkKwPGzg0C-BROu1AmxtCsZJLnzRzg@mail.gmail.com>
@ 2015-04-03 14:28 ` Jérémie Galarneau
  2015-04-03 20:26   ` Chidhu R
  0 siblings, 1 reply; 3+ messages in thread
From: Jérémie Galarneau @ 2015-04-03 14:28 UTC (permalink / raw)


On Tue, Mar 31, 2015 at 12:39 PM, Chidhu R <chid1989 at gmail.com> wrote:
> Hi,
>
> I wanted to know if there is a way to print complex data types, given the
> pointer to it.
>
> For ex,
>
> class Msg {
> int a;
> char *str
> };
>
> // Create an object for Msg
> // pass the address of the object to LTTng and make LTTng print the values
> of a and str. I do not want to dereference the pointer and send the
> individual values. Or, if there is a function which can be written to
> dereference the values and this function could be called each time I pass
> the address of the object is also fine.
>
> Is there a way to achieve this with LTTng?

Not for the moment. Genevi?ve Bastien (CC-ed) has worked on it and
proposed a patch set. However, I'm not sure of the status of this
feature. I think Mathieu wanted to go with a different approach.

Regards,
J?r?mie

>
> Thanks
> Chid
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>



-- 
J?r?mie Galarneau
EfficiOS Inc.
http://www.efficios.com



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [lttng-dev] Printing complex data types with LTTng
  2015-04-03 14:28 ` [lttng-dev] Printing complex data types with LTTng Jérémie Galarneau
@ 2015-04-03 20:26   ` Chidhu R
  2015-04-04 17:19     ` Jérémie Galarneau
  0 siblings, 1 reply; 3+ messages in thread
From: Chidhu R @ 2015-04-03 20:26 UTC (permalink / raw)


Great. Thanks for the response. I wish that patch rolls out soon.

BTW, did you mean there is a different approach with the current version of
LTTng?

-- Chid

On Fri, Apr 3, 2015 at 7:28 AM, J?r?mie Galarneau <
jeremie.galarneau at efficios.com> wrote:

> On Tue, Mar 31, 2015 at 12:39 PM, Chidhu R <chid1989 at gmail.com> wrote:
> > Hi,
> >
> > I wanted to know if there is a way to print complex data types, given the
> > pointer to it.
> >
> > For ex,
> >
> > class Msg {
> > int a;
> > char *str
> > };
> >
> > // Create an object for Msg
> > // pass the address of the object to LTTng and make LTTng print the
> values
> > of a and str. I do not want to dereference the pointer and send the
> > individual values. Or, if there is a function which can be written to
> > dereference the values and this function could be called each time I pass
> > the address of the object is also fine.
> >
> > Is there a way to achieve this with LTTng?
>
> Not for the moment. Genevi?ve Bastien (CC-ed) has worked on it and
> proposed a patch set. However, I'm not sure of the status of this
> feature. I think Mathieu wanted to go with a different approach.
>
> Regards,
> J?r?mie
>
> >
> > Thanks
> > Chid
> >
> > _______________________________________________
> > lttng-dev mailing list
> > lttng-dev at lists.lttng.org
> > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> >
>
>
>
> --
> J?r?mie Galarneau
> EfficiOS Inc.
> http://www.efficios.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150403/a4f83d1d/attachment.html>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [lttng-dev] Printing complex data types with LTTng
  2015-04-03 20:26   ` Chidhu R
@ 2015-04-04 17:19     ` Jérémie Galarneau
  0 siblings, 0 replies; 3+ messages in thread
From: Jérémie Galarneau @ 2015-04-04 17:19 UTC (permalink / raw)


On Fri, Apr 3, 2015 at 4:26 PM, Chidhu R <chid1989 at gmail.com> wrote:
> Great. Thanks for the response. I wish that patch rolls out soon.
>
> BTW, did you mean there is a different approach with the current version of
> LTTng?

No, unfortunately.

J?r?mie

>
> -- Chid
>
> On Fri, Apr 3, 2015 at 7:28 AM, J?r?mie Galarneau
> <jeremie.galarneau at efficios.com> wrote:
>>
>> On Tue, Mar 31, 2015 at 12:39 PM, Chidhu R <chid1989 at gmail.com> wrote:
>> > Hi,
>> >
>> > I wanted to know if there is a way to print complex data types, given
>> > the
>> > pointer to it.
>> >
>> > For ex,
>> >
>> > class Msg {
>> > int a;
>> > char *str
>> > };
>> >
>> > // Create an object for Msg
>> > // pass the address of the object to LTTng and make LTTng print the
>> > values
>> > of a and str. I do not want to dereference the pointer and send the
>> > individual values. Or, if there is a function which can be written to
>> > dereference the values and this function could be called each time I
>> > pass
>> > the address of the object is also fine.
>> >
>> > Is there a way to achieve this with LTTng?
>>
>> Not for the moment. Genevi?ve Bastien (CC-ed) has worked on it and
>> proposed a patch set. However, I'm not sure of the status of this
>> feature. I think Mathieu wanted to go with a different approach.
>>
>> Regards,
>> J?r?mie
>>
>> >
>> > Thanks
>> > Chid
>> >
>> > _______________________________________________
>> > lttng-dev mailing list
>> > lttng-dev at lists.lttng.org
>> > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>> >
>>
>>
>>
>> --
>> J?r?mie Galarneau
>> EfficiOS Inc.
>> http://www.efficios.com
>
>



-- 
J?r?mie Galarneau
EfficiOS Inc.
http://www.efficios.com



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-04 17:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAL1ZhONSOm9F8GkQ_z9LSkKwPGzg0C-BROu1AmxtCsZJLnzRzg@mail.gmail.com>
2015-04-03 14:28 ` [lttng-dev] Printing complex data types with LTTng Jérémie Galarneau
2015-04-03 20:26   ` Chidhu R
2015-04-04 17:19     ` Jérémie Galarneau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox