* Debug logging with ell
@ 2018-04-24 16:33 Stotland, Inga
2018-04-24 17:35 ` Othman, Ossama
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Stotland, Inga @ 2018-04-24 16:33 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 431 bytes --]
Hi all,
Quick question: can I use l_debug() when I am dynamically linking with
installed ell library (i.e., the one created with make install and
linked as -lell)?
Calling l_debug() generates no output, l_info() works just fine.
When I link with libell-private, l_debug works as expected. Something
to do with debug mem sections?
I would rather not write my own logging if l_debug() is
available.
Thanks,
Inga
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3266 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Debug logging with ell
2018-04-24 16:33 Debug logging with ell Stotland, Inga
@ 2018-04-24 17:35 ` Othman, Ossama
2018-04-24 19:56 ` Stotland, Inga
2018-04-24 20:30 ` Denis Kenzior
2018-04-25 20:23 ` Denis Kenzior
2 siblings, 1 reply; 10+ messages in thread
From: Othman, Ossama @ 2018-04-24 17:35 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 605 bytes --]
Hi Inga,
On Tue, Apr 24, 2018 at 9:33 AM, Stotland, Inga <inga.stotland@intel.com> wrote:
>
> Quick question: can I use l_debug() when I am dynamically linking with
> installed ell library (i.e., the one created with make install and
> linked as -lell)?
> Calling l_debug() generates no output, l_info() works just fine.
>
> When I link with libell-private, l_debug works as expected. Something
> to do with debug mem sections?
>
> I would rather not write my own logging if l_debug() is
> available.
Try enabling debug logging at run-time, e.g.: l_debug_enable("*");
HTH!
-Ossama
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Debug logging with ell
2018-04-24 17:35 ` Othman, Ossama
@ 2018-04-24 19:56 ` Stotland, Inga
2018-04-24 21:33 ` Othman, Ossama
0 siblings, 1 reply; 10+ messages in thread
From: Stotland, Inga @ 2018-04-24 19:56 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 819 bytes --]
Hi Ossama,
On Tue, 2018-04-24 at 10:35 -0700, Othman, Ossama wrote:
> Hi Inga,
>
> On Tue, Apr 24, 2018 at 9:33 AM, Stotland, Inga <inga.stotland@intel.
> com> wrote:
> >
> > Quick question: can I use l_debug() when I am dynamically linking
> > with
> > installed ell library (i.e., the one created with make install and
> > linked as -lell)?
> > Calling l_debug() generates no output, l_info() works just fine.
> >
> > When I link with libell-private, l_debug works as expected.
> > Something
> > to do with debug mem sections?
> >
> > I would rather not write my own logging if l_debug() is
> > available.
>
> Try enabling debug logging at run-time, e.g.: l_debug_enable("*");
I do have the following statements in my code:
l_log_set_stderr();
l_debug_enable("*");
Thanks,
Inga
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3266 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Debug logging with ell
2018-04-24 16:33 Debug logging with ell Stotland, Inga
2018-04-24 17:35 ` Othman, Ossama
@ 2018-04-24 20:30 ` Denis Kenzior
2018-04-24 21:35 ` Othman, Ossama
2018-04-25 20:23 ` Denis Kenzior
2 siblings, 1 reply; 10+ messages in thread
From: Denis Kenzior @ 2018-04-24 20:30 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 636 bytes --]
Hi Inga,
On 04/24/2018 11:33 AM, Stotland, Inga wrote:
> Hi all,
>
> Quick question: can I use l_debug() when I am dynamically linking with
> installed ell library (i.e., the one created with make install and
> linked as -lell)?
> Calling l_debug() generates no output, l_info() works just fine.
>
I suspect you're the first to try this, so doesn't surprise me that it
doesn't work. I imagine the current setup fails because the shared
library has its own section and the executable has its own.
Probably can be solved with some macro magic, but will require a bit of
surgery inside ell...
Regards,
-Denis
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Debug logging with ell
2018-04-24 19:56 ` Stotland, Inga
@ 2018-04-24 21:33 ` Othman, Ossama
0 siblings, 0 replies; 10+ messages in thread
From: Othman, Ossama @ 2018-04-24 21:33 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 1079 bytes --]
Hi Inga,
On Tue, Apr 24, 2018 at 12:56 PM, Stotland, Inga
<inga.stotland@intel.com> wrote:
> On Tue, 2018-04-24 at 10:35 -0700, Othman, Ossama wrote:
>> On Tue, Apr 24, 2018 at 9:33 AM, Stotland, Inga <inga.stotland@intel.
>> com> wrote:
>> >
>> > Quick question: can I use l_debug() when I am dynamically linking
>> > with
>> > installed ell library (i.e., the one created with make install and
>> > linked as -lell)?
>> > Calling l_debug() generates no output, l_info() works just fine.
>> >
>> > When I link with libell-private, l_debug works as expected.
>> > Something
>> > to do with debug mem sections?
>>
>> Try enabling debug logging at run-time, e.g.: l_debug_enable("*");
>
> I do have the following statements in my code:
> l_log_set_stderr();
> l_debug_enable("*");
I suppose l_debug() wouldn't have worked when you linked against
libell-private otherwise. Sorry. I missed that. :)
In any case, this certainly used to work. I was able to reproduce the
same problem you ran into as well, but I'm not sure what changed.
-Ossama
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Debug logging with ell
2018-04-24 20:30 ` Denis Kenzior
@ 2018-04-24 21:35 ` Othman, Ossama
2018-04-24 21:54 ` Stotland, Inga
0 siblings, 1 reply; 10+ messages in thread
From: Othman, Ossama @ 2018-04-24 21:35 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 791 bytes --]
Hi Denis,
On Tue, Apr 24, 2018 at 1:30 PM, Denis Kenzior <denkenz@gmail.com> wrote:>
>> Quick question: can I use l_debug() when I am dynamically linking with
>> installed ell library (i.e., the one created with make install and
>> linked as -lell)?
>> Calling l_debug() generates no output, l_info() works just fine.
>>
>
> I suspect you're the first to try this, so doesn't surprise me that it
> doesn't work. I imagine the current setup fails because the shared library
> has its own section and the executable has its own.
>
> Probably can be solved with some macro magic, but will require a bit of
> surgery inside ell...
This used to work for me, but prior to today the last time I tried
enabling debug logging code was probably a couple of months ago.
-Ossama
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Debug logging with ell
2018-04-24 21:35 ` Othman, Ossama
@ 2018-04-24 21:54 ` Stotland, Inga
0 siblings, 0 replies; 10+ messages in thread
From: Stotland, Inga @ 2018-04-24 21:54 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]
Hi Ossama, Denis,
A.
On Tue, 2018-04-24 at 14:35 -0700, Othman, Ossama wrote:
> Hi Denis,
>
> On Tue, Apr 24, 2018 at 1:30 PM, Denis Kenzior <denkenz@gmail.com>
> wrote:>
> > > Quick question: can I use l_debug() when I am dynamically linking
> > > with
> > > installed ell library (i.e., the one created with make install
> > > and
> > > linked as -lell)?
> > > Calling l_debug() generates no output, l_info() works just fine.
> > >
> >
> > I suspect you're the first to try this, so doesn't surprise me that
> > it
> > doesn't work. I imagine the current setup fails because the shared
> > library
> > has its own section and the executable has its own.
> >
> > Probably can be solved with some macro magic, but will require a
> > bit of
> > surgery inside ell...
>
> This used to work for me, but prior to today the last time I tried
> enabling debug logging code was probably a couple of months ago.
>
Most likely to do with memory sections. One additional piece of info in
case it's helpful:
The section denoted by __start___debug[] and __stop___debug[] appears
to be shorter by size of one struct l_debug_desc when linking with
-lell (compared when compiled with internal lib).
Inga
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3266 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Debug logging with ell
2018-04-24 16:33 Debug logging with ell Stotland, Inga
2018-04-24 17:35 ` Othman, Ossama
2018-04-24 20:30 ` Denis Kenzior
@ 2018-04-25 20:23 ` Denis Kenzior
2018-04-25 20:28 ` Othman, Ossama
2018-04-26 1:23 ` Stotland, Inga
2 siblings, 2 replies; 10+ messages in thread
From: Denis Kenzior @ 2018-04-25 20:23 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 398 bytes --]
Hi Inga,
On 04/24/2018 11:33 AM, Stotland, Inga wrote:
> Hi all,
>
> Quick question: can I use l_debug() when I am dynamically linking with
> installed ell library (i.e., the one created with make install and
> linked as -lell)?
> Calling l_debug() generates no output, l_info() works just fine.
So this should work now. I've pushed a couple of fixes upstream.
Regards,
-Denis
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Debug logging with ell
2018-04-25 20:23 ` Denis Kenzior
@ 2018-04-25 20:28 ` Othman, Ossama
2018-04-26 1:23 ` Stotland, Inga
1 sibling, 0 replies; 10+ messages in thread
From: Othman, Ossama @ 2018-04-25 20:28 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 559 bytes --]
Hi Denis,
On Wed, Apr 25, 2018 at 1:23 PM, Denis Kenzior <denkenz@gmail.com> wrote:
> On 04/24/2018 11:33 AM, Stotland, Inga wrote:
>>
>> Quick question: can I use l_debug() when I am dynamically linking with
>> installed ell library (i.e., the one created with make install and
>> linked as -lell)?
>> Calling l_debug() generates no output, l_info() works just fine.
>
> So this should work now. I've pushed a couple of fixes upstream.
Confirmed. Debug logging works against a dynamically linked libell
for my use case.
Thanks!
-Ossama
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Debug logging with ell
2018-04-25 20:23 ` Denis Kenzior
2018-04-25 20:28 ` Othman, Ossama
@ 2018-04-26 1:23 ` Stotland, Inga
1 sibling, 0 replies; 10+ messages in thread
From: Stotland, Inga @ 2018-04-26 1:23 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 524 bytes --]
Hi Denis,
On Wed, 2018-04-25 at 15:23 -0500, Denis Kenzior wrote:
> Hi Inga,
>
> On 04/24/2018 11:33 AM, Stotland, Inga wrote:
> > Hi all,
> >
> > Quick question: can I use l_debug() when I am dynamically linking
> > with
> > installed ell library (i.e., the one created with make install and
> > linked as -lell)?
> > Calling l_debug() generates no output, l_info() works just fine.
>
> So this should work now. I've pushed a couple of fixes upstream.
>
Tested and it works now.
Thank you,
Inga
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3266 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2018-04-26 1:23 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-24 16:33 Debug logging with ell Stotland, Inga
2018-04-24 17:35 ` Othman, Ossama
2018-04-24 19:56 ` Stotland, Inga
2018-04-24 21:33 ` Othman, Ossama
2018-04-24 20:30 ` Denis Kenzior
2018-04-24 21:35 ` Othman, Ossama
2018-04-24 21:54 ` Stotland, Inga
2018-04-25 20:23 ` Denis Kenzior
2018-04-25 20:28 ` Othman, Ossama
2018-04-26 1:23 ` Stotland, Inga
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.