All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Help-lttng-ust-pyhton
       [not found] <20151106225909.Horde.ZKUBbt2vnWaMa-0QDzy6txy@www.imp.polymtl.ca>
@ 2015-11-12 15:20 ` Jérémie Galarneau
       [not found] ` <CA+jJMxvgz2D=ga+7fC4FTdnJ0obQLz1K38G7sUrnuqhCMKXg7g@mail.gmail.com>
  1 sibling, 0 replies; 10+ messages in thread
From: Jérémie Galarneau @ 2015-11-12 15:20 UTC (permalink / raw)
  To: Yves Junior Bationo; +Cc: lttng-dev, Philippe Proulx

2015-11-06 17:59 GMT-05:00 Yves Junior Bationo <yves-junior.bationo@polymtl.ca>:
>
> j'ai un souci avec lltngust pour les application python
> Pour l'exemple de la Doc
>         https://lttng.org/docs/#doc-python-application
> j'ai l'erreur:
>         No handlers could be found for logger "hello-logger"
>

Hi Yves,

We try to stick to English on this mailing list so the questions and
answers remain easily searchable.

The example in the docs uses "time" without importing it, I have sent
a Pull Request to address that.
However, addressing the problem you are encountering, where does
"hello-logger" come from?

Can you post the code and versions of the components you are using?

Thanks,
Jérémie


> la commande "lttng list -u -a" me retourne bien la liste des trace point:
>
>         PID: 5228 - Name: python
>       lttng_python:event (loglevel: TRACE_DEBUG_LINE (13)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG (loglevel: TRACE_DEBUG (14)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG_LINE (loglevel: TRACE_DEBUG_LINE (13))
> (type: tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG_FUNCTION (loglevel:
> TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG_UNIT (loglevel: TRACE_DEBUG_UNIT (11))
> (type: tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG_MODULE (loglevel: TRACE_DEBUG_MODULE
> (10)) (type: tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG_PROCESS (loglevel: TRACE_DEBUG_PROCESS
> (9)) (type: tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG_PROGRAM (loglevel: TRACE_DEBUG_PROGRAM
> (8)) (type: tracepoint)
>       lttng_ust_tracelog:TRACE_DEBUG_SYSTEM (loglevel: TRACE_DEBUG_SYSTEM
> (7)) (type: tracepoint)
>       lttng_ust_tracelog:TRACE_INFO (loglevel: TRACE_INFO (6)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_NOTICE (loglevel: TRACE_NOTICE (5)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_WARNING (loglevel: TRACE_WARNING (4)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_ERR (loglevel: TRACE_ERR (3)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_CRIT (loglevel: TRACE_CRIT (2)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_ALERT (loglevel: TRACE_ALERT (1)) (type:
> tracepoint)
>       lttng_ust_tracelog:TRACE_EMERG (loglevel: TRACE_EMERG (0)) (type:
> tracepoint)
>       lttng_ust_tracef:event (loglevel: TRACE_DEBUG (14)) (type: tracepoint)
>       lttng_ust_statedump:end (loglevel: TRACE_DEBUG_LINE (13)) (type:
> tracepoint)
>       lttng_ust_statedump:debug_link (loglevel: TRACE_DEBUG_LINE (13))
> (type: tracepoint)
>       lttng_ust_statedump:build_id (loglevel: TRACE_DEBUG_LINE (13)) (type:
> tracepoint)
>       lttng_ust_statedump:soinfo (loglevel: TRACE_DEBUG_LINE (13)) (type:
> tracepoint)
>       lttng_ust_statedump:start (loglevel: TRACE_DEBUG_LINE (13)) (type:
> tracepoint)
>
> Mais pas de resultats dans le repertoire des evenements lorsque j'active le
> tracage lttng.
>
> Resumé
>         Probleme 1 :No handlers could be found for logger
>                 je croyais que "import lttngust" devait gerer cette
> situation
>
>         Probleme 2: pas de resultats au tracage
> Merci.
>
>
>
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev



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

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: Help-lttng-ust-pyhton
       [not found] ` <CA+jJMxvgz2D=ga+7fC4FTdnJ0obQLz1K38G7sUrnuqhCMKXg7g@mail.gmail.com>
@ 2015-11-12 16:43   ` Yves Junior Bationo
       [not found]   ` <20151112164332.Horde.29NGfz3UJ4wgzaNFRJRqxf-@www.imp.polymtl.ca>
  1 sibling, 0 replies; 10+ messages in thread
From: Yves Junior Bationo @ 2015-11-12 16:43 UTC (permalink / raw)
  To: Jérémie Galarneau; +Cc: lttng-dev, Philippe Proulx

[-- Attachment #1: Type: text/plain, Size: 5383 bytes --]

Hi, i my script i just change "my-logger" by "hello-logger" (hello.py  
in attachment).
I try to figure out the probem by
		export LTTNG_UST_PYTHON_DEBUG=1
and i found this:
#####
[0.019155] LTTng-UST debug: <module>(): debug is enabled
[0.024447] LTTng-UST debug: _init_threads(): entering
[0.024710] LTTng-UST debug: _get_port_from_file(): reading port from  
file "/var/run/lttng/agent.port"
[0.025745] LTTng-UST debug: _get_port_from_file(): reading port from  
file "/root/.lttng/agent.port"
[0.025942] LTTng-UST debug: _init_threads(): system session daemon port: 5345
[0.026117] LTTng-UST debug: _init_threads(): user session daemon port: None
[0.026280] LTTng-UST debug: _init_threads(): creating system client thread
[0.026762] LTTng-UST debug: _init_threads(): created and started  
system client thread
[0.026973] LTTng-UST debug: _init_threads(): waiting for registration  
done (expecting 1, timeout is 5.0 s)
[0.027721] LTTng-UST debug: _client_thread_target(): creating client  
"system" using TCP port 5345
[0.029745] LTTng-UST debug: _client_thread_target(): starting client "system"
[0.029896] LTTng-UST debug: run(): client "system": connecting to  
session daemon
[0.030117] LTTng-UST debug: run(): client "system": registering to  
session daemon
[0.030370] LTTng-UST debug: _recv_server_cmd_header(): client  
"system": received empty server command header
[0.030532] LTTng-UST debug: _handle_server_cmd(): client "system": bad  
server command
[0.030667] LTTng-UST debug: run(): client "system": got exception:  
'module' object has no attribute '_ClientCmdReply'
####
You can see 'bad server command' and 'exception' in the last lines.

Jérémie Galarneau <jeremie.galarneau@efficios.com> a écrit :

> 2015-11-06 17:59 GMT-05:00 Yves Junior Bationo  
> <yves-junior.bationo@polymtl.ca>:
>>
>> j'ai un souci avec lltngust pour les application python
>> Pour l'exemple de la Doc
>>         https://lttng.org/docs/#doc-python-application
>> j'ai l'erreur:
>>         No handlers could be found for logger "hello-logger"
>>
>
> Hi Yves,
>
> We try to stick to English on this mailing list so the questions and
> answers remain easily searchable.
>
> The example in the docs uses "time" without importing it, I have sent
> a Pull Request to address that.
> However, addressing the problem you are encountering, where does
> "hello-logger" come from?
>
> Can you post the code and versions of the components you are using?
>
> Thanks,
> Jérémie
>
>
>> la commande "lttng list -u -a" me retourne bien la liste des trace point:
>>
>>         PID: 5228 - Name: python
>>       lttng_python:event (loglevel: TRACE_DEBUG_LINE (13)) (type:
>> tracepoint)
>>       lttng_ust_tracelog:TRACE_DEBUG (loglevel: TRACE_DEBUG (14)) (type:
>> tracepoint)
>>       lttng_ust_tracelog:TRACE_DEBUG_LINE (loglevel: TRACE_DEBUG_LINE (13))
>> (type: tracepoint)
>>       lttng_ust_tracelog:TRACE_DEBUG_FUNCTION (loglevel:
>> TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
>>       lttng_ust_tracelog:TRACE_DEBUG_UNIT (loglevel: TRACE_DEBUG_UNIT (11))
>> (type: tracepoint)
>>       lttng_ust_tracelog:TRACE_DEBUG_MODULE (loglevel: TRACE_DEBUG_MODULE
>> (10)) (type: tracepoint)
>>       lttng_ust_tracelog:TRACE_DEBUG_PROCESS (loglevel: TRACE_DEBUG_PROCESS
>> (9)) (type: tracepoint)
>>       lttng_ust_tracelog:TRACE_DEBUG_PROGRAM (loglevel: TRACE_DEBUG_PROGRAM
>> (8)) (type: tracepoint)
>>       lttng_ust_tracelog:TRACE_DEBUG_SYSTEM (loglevel: TRACE_DEBUG_SYSTEM
>> (7)) (type: tracepoint)
>>       lttng_ust_tracelog:TRACE_INFO (loglevel: TRACE_INFO (6)) (type:
>> tracepoint)
>>       lttng_ust_tracelog:TRACE_NOTICE (loglevel: TRACE_NOTICE (5)) (type:
>> tracepoint)
>>       lttng_ust_tracelog:TRACE_WARNING (loglevel: TRACE_WARNING (4)) (type:
>> tracepoint)
>>       lttng_ust_tracelog:TRACE_ERR (loglevel: TRACE_ERR (3)) (type:
>> tracepoint)
>>       lttng_ust_tracelog:TRACE_CRIT (loglevel: TRACE_CRIT (2)) (type:
>> tracepoint)
>>       lttng_ust_tracelog:TRACE_ALERT (loglevel: TRACE_ALERT (1)) (type:
>> tracepoint)
>>       lttng_ust_tracelog:TRACE_EMERG (loglevel: TRACE_EMERG (0)) (type:
>> tracepoint)
>>       lttng_ust_tracef:event (loglevel: TRACE_DEBUG (14)) (type: tracepoint)
>>       lttng_ust_statedump:end (loglevel: TRACE_DEBUG_LINE (13)) (type:
>> tracepoint)
>>       lttng_ust_statedump:debug_link (loglevel: TRACE_DEBUG_LINE (13))
>> (type: tracepoint)
>>       lttng_ust_statedump:build_id (loglevel: TRACE_DEBUG_LINE (13)) (type:
>> tracepoint)
>>       lttng_ust_statedump:soinfo (loglevel: TRACE_DEBUG_LINE (13)) (type:
>> tracepoint)
>>       lttng_ust_statedump:start (loglevel: TRACE_DEBUG_LINE (13)) (type:
>> tracepoint)
>>
>> Mais pas de resultats dans le repertoire des evenements lorsque j'active le
>> tracage lttng.
>>
>> Resumé
>>         Probleme 1 :No handlers could be found for logger
>>                 je croyais que "import lttngust" devait gerer cette
>> situation
>>
>>         Probleme 2: pas de resultats au tracage
>> Merci.
>>
>>
>>
>>
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev@lists.lttng.org
>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
>
>
> --
> Jérémie Galarneau
> EfficiOS Inc.
> http://www.efficios.com


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: hello.py --]
[-- Type: text/x-java; name=hello.py, Size: 378 bytes --]

import lttngust
import logging
import time

def example():
    logger = logging.getLogger('hello-logger')

    while True:
        logger.debug('debug message')
        logger.info('info message')
        logger.warn('warn message')
        logger.error('error message')
        logger.critical('critical message')
        time.sleep(1)

if __name__ == '__main__':
    example()

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: Help-lttng-ust-pyhton
       [not found]   ` <20151112164332.Horde.29NGfz3UJ4wgzaNFRJRqxf-@www.imp.polymtl.ca>
@ 2015-11-12 18:19     ` Jérémie Galarneau
  2015-11-12 18:21     ` Help-lttng-ust-pyhton Yves Junior Bationo
       [not found]     ` <20151112182108.Horde.F8RA5lZI0Cb6x7TqbxzXVzB@www.imp.polymtl.ca>
  2 siblings, 0 replies; 10+ messages in thread
From: Jérémie Galarneau @ 2015-11-12 18:19 UTC (permalink / raw)
  To: Yves Junior Bationo; +Cc: lttng-dev, Philippe Proulx

The bad server command makes me wonder if you are using the official
LTTng 2.7.0 release.

Are you sure you don't have a stale UST or tools installation from master?
Also, the lttng-sessiond logs in verbose mode (-vvv) would be useful here.

Jérémie

On Thu, Nov 12, 2015 at 11:43 AM, Yves Junior Bationo
<yves-junior.bationo@polymtl.ca> wrote:
> Hi, i my script i just change "my-logger" by "hello-logger" (hello.py in
> attachment).
> I try to figure out the probem by
>                 export LTTNG_UST_PYTHON_DEBUG=1
> and i found this:
> #####
> [0.019155] LTTng-UST debug: <module>(): debug is enabled
> [0.024447] LTTng-UST debug: _init_threads(): entering
> [0.024710] LTTng-UST debug: _get_port_from_file(): reading port from file
> "/var/run/lttng/agent.port"
> [0.025745] LTTng-UST debug: _get_port_from_file(): reading port from file
> "/root/.lttng/agent.port"
> [0.025942] LTTng-UST debug: _init_threads(): system session daemon port:
> 5345
> [0.026117] LTTng-UST debug: _init_threads(): user session daemon port: None
> [0.026280] LTTng-UST debug: _init_threads(): creating system client thread
> [0.026762] LTTng-UST debug: _init_threads(): created and started system
> client thread
> [0.026973] LTTng-UST debug: _init_threads(): waiting for registration done
> (expecting 1, timeout is 5.0 s)
> [0.027721] LTTng-UST debug: _client_thread_target(): creating client
> "system" using TCP port 5345
> [0.029745] LTTng-UST debug: _client_thread_target(): starting client
> "system"
> [0.029896] LTTng-UST debug: run(): client "system": connecting to session
> daemon
> [0.030117] LTTng-UST debug: run(): client "system": registering to session
> daemon
> [0.030370] LTTng-UST debug: _recv_server_cmd_header(): client "system":
> received empty server command header
> [0.030532] LTTng-UST debug: _handle_server_cmd(): client "system": bad
> server command
> [0.030667] LTTng-UST debug: run(): client "system": got exception: 'module'
> object has no attribute '_ClientCmdReply'
> ####
> You can see 'bad server command' and 'exception' in the last lines.
>
> Jérémie Galarneau <jeremie.galarneau@efficios.com> a écrit :
>
>
>> 2015-11-06 17:59 GMT-05:00 Yves Junior Bationo
>> <yves-junior.bationo@polymtl.ca>:
>>>
>>>
>>> j'ai un souci avec lltngust pour les application python
>>> Pour l'exemple de la Doc
>>>         https://lttng.org/docs/#doc-python-application
>>> j'ai l'erreur:
>>>         No handlers could be found for logger "hello-logger"
>>>
>>
>> Hi Yves,
>>
>> We try to stick to English on this mailing list so the questions and
>> answers remain easily searchable.
>>
>> The example in the docs uses "time" without importing it, I have sent
>> a Pull Request to address that.
>> However, addressing the problem you are encountering, where does
>> "hello-logger" come from?
>>
>> Can you post the code and versions of the components you are using?
>>
>> Thanks,
>> Jérémie
>>
>>
>>> la commande "lttng list -u -a" me retourne bien la liste des trace point:
>>>
>>>         PID: 5228 - Name: python
>>>       lttng_python:event (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>> tracepoint)
>>>       lttng_ust_tracelog:TRACE_DEBUG (loglevel: TRACE_DEBUG (14)) (type:
>>> tracepoint)
>>>       lttng_ust_tracelog:TRACE_DEBUG_LINE (loglevel: TRACE_DEBUG_LINE
>>> (13))
>>> (type: tracepoint)
>>>       lttng_ust_tracelog:TRACE_DEBUG_FUNCTION (loglevel:
>>> TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
>>>       lttng_ust_tracelog:TRACE_DEBUG_UNIT (loglevel: TRACE_DEBUG_UNIT
>>> (11))
>>> (type: tracepoint)
>>>       lttng_ust_tracelog:TRACE_DEBUG_MODULE (loglevel: TRACE_DEBUG_MODULE
>>> (10)) (type: tracepoint)
>>>       lttng_ust_tracelog:TRACE_DEBUG_PROCESS (loglevel:
>>> TRACE_DEBUG_PROCESS
>>> (9)) (type: tracepoint)
>>>       lttng_ust_tracelog:TRACE_DEBUG_PROGRAM (loglevel:
>>> TRACE_DEBUG_PROGRAM
>>> (8)) (type: tracepoint)
>>>       lttng_ust_tracelog:TRACE_DEBUG_SYSTEM (loglevel: TRACE_DEBUG_SYSTEM
>>> (7)) (type: tracepoint)
>>>       lttng_ust_tracelog:TRACE_INFO (loglevel: TRACE_INFO (6)) (type:
>>> tracepoint)
>>>       lttng_ust_tracelog:TRACE_NOTICE (loglevel: TRACE_NOTICE (5)) (type:
>>> tracepoint)
>>>       lttng_ust_tracelog:TRACE_WARNING (loglevel: TRACE_WARNING (4))
>>> (type:
>>> tracepoint)
>>>       lttng_ust_tracelog:TRACE_ERR (loglevel: TRACE_ERR (3)) (type:
>>> tracepoint)
>>>       lttng_ust_tracelog:TRACE_CRIT (loglevel: TRACE_CRIT (2)) (type:
>>> tracepoint)
>>>       lttng_ust_tracelog:TRACE_ALERT (loglevel: TRACE_ALERT (1)) (type:
>>> tracepoint)
>>>       lttng_ust_tracelog:TRACE_EMERG (loglevel: TRACE_EMERG (0)) (type:
>>> tracepoint)
>>>       lttng_ust_tracef:event (loglevel: TRACE_DEBUG (14)) (type:
>>> tracepoint)
>>>       lttng_ust_statedump:end (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>> tracepoint)
>>>       lttng_ust_statedump:debug_link (loglevel: TRACE_DEBUG_LINE (13))
>>> (type: tracepoint)
>>>       lttng_ust_statedump:build_id (loglevel: TRACE_DEBUG_LINE (13))
>>> (type:
>>> tracepoint)
>>>       lttng_ust_statedump:soinfo (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>> tracepoint)
>>>       lttng_ust_statedump:start (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>> tracepoint)
>>>
>>> Mais pas de resultats dans le repertoire des evenements lorsque j'active
>>> le
>>> tracage lttng.
>>>
>>> Resumé
>>>         Probleme 1 :No handlers could be found for logger
>>>                 je croyais que "import lttngust" devait gerer cette
>>> situation
>>>
>>>         Probleme 2: pas de resultats au tracage
>>> Merci.
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> lttng-dev mailing list
>>> lttng-dev@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

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: Help-lttng-ust-pyhton
       [not found]   ` <20151112164332.Horde.29NGfz3UJ4wgzaNFRJRqxf-@www.imp.polymtl.ca>
  2015-11-12 18:19     ` Help-lttng-ust-pyhton Jérémie Galarneau
@ 2015-11-12 18:21     ` Yves Junior Bationo
       [not found]     ` <20151112182108.Horde.F8RA5lZI0Cb6x7TqbxzXVzB@www.imp.polymtl.ca>
  2 siblings, 0 replies; 10+ messages in thread
From: Yves Junior Bationo @ 2015-11-12 18:21 UTC (permalink / raw)
  To: lttng-dev

I installed liblttng-ust-dev from ppa:lttng/ppa
lttng version: (LTTng Trace Control) 2.7.0 - Herbe à Détourne

Yves Junior Bationo <yves-junior.bationo@polymtl.ca> a écrit :

> Hi, i my script i just change "my-logger" by "hello-logger"  
> (hello.py in attachment).
> I try to figure out the probem by
> 		export LTTNG_UST_PYTHON_DEBUG=1
> and i found this:
> #####
> [0.019155] LTTng-UST debug: <module>(): debug is enabled
> [0.024447] LTTng-UST debug: _init_threads(): entering
> [0.024710] LTTng-UST debug: _get_port_from_file(): reading port from  
> file "/var/run/lttng/agent.port"
> [0.025745] LTTng-UST debug: _get_port_from_file(): reading port from  
> file "/root/.lttng/agent.port"
> [0.025942] LTTng-UST debug: _init_threads(): system session daemon port: 5345
> [0.026117] LTTng-UST debug: _init_threads(): user session daemon port: None
> [0.026280] LTTng-UST debug: _init_threads(): creating system client thread
> [0.026762] LTTng-UST debug: _init_threads(): created and started  
> system client thread
> [0.026973] LTTng-UST debug: _init_threads(): waiting for  
> registration done (expecting 1, timeout is 5.0 s)
> [0.027721] LTTng-UST debug: _client_thread_target(): creating client  
> "system" using TCP port 5345
> [0.029745] LTTng-UST debug: _client_thread_target(): starting client "system"
> [0.029896] LTTng-UST debug: run(): client "system": connecting to  
> session daemon
> [0.030117] LTTng-UST debug: run(): client "system": registering to  
> session daemon
> [0.030370] LTTng-UST debug: _recv_server_cmd_header(): client  
> "system": received empty server command header
> [0.030532] LTTng-UST debug: _handle_server_cmd(): client "system":  
> bad server command
> [0.030667] LTTng-UST debug: run(): client "system": got exception:  
> 'module' object has no attribute '_ClientCmdReply'
> ####
> You can see 'bad server command' and 'exception' in the last lines.
>
> Jérémie Galarneau <jeremie.galarneau@efficios.com> a écrit :
>
>> 2015-11-06 17:59 GMT-05:00 Yves Junior Bationo  
>> <yves-junior.bationo@polymtl.ca>:
>>>
>>> j'ai un souci avec lltngust pour les application python
>>> Pour l'exemple de la Doc
>>>        https://lttng.org/docs/#doc-python-application
>>> j'ai l'erreur:
>>>        No handlers could be found for logger "hello-logger"
>>>
>>
>> Hi Yves,
>>
>> We try to stick to English on this mailing list so the questions and
>> answers remain easily searchable.
>>
>> The example in the docs uses "time" without importing it, I have sent
>> a Pull Request to address that.
>> However, addressing the problem you are encountering, where does
>> "hello-logger" come from?
>>
>> Can you post the code and versions of the components you are using?
>>
>> Thanks,
>> Jérémie
>>
>>
>>> la commande "lttng list -u -a" me retourne bien la liste des trace point:
>>>
>>>        PID: 5228 - Name: python
>>>      lttng_python:event (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>> tracepoint)
>>>      lttng_ust_tracelog:TRACE_DEBUG (loglevel: TRACE_DEBUG (14)) (type:
>>> tracepoint)
>>>      lttng_ust_tracelog:TRACE_DEBUG_LINE (loglevel: TRACE_DEBUG_LINE (13))
>>> (type: tracepoint)
>>>      lttng_ust_tracelog:TRACE_DEBUG_FUNCTION (loglevel:
>>> TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
>>>      lttng_ust_tracelog:TRACE_DEBUG_UNIT (loglevel: TRACE_DEBUG_UNIT (11))
>>> (type: tracepoint)
>>>      lttng_ust_tracelog:TRACE_DEBUG_MODULE (loglevel: TRACE_DEBUG_MODULE
>>> (10)) (type: tracepoint)
>>>      lttng_ust_tracelog:TRACE_DEBUG_PROCESS (loglevel: TRACE_DEBUG_PROCESS
>>> (9)) (type: tracepoint)
>>>      lttng_ust_tracelog:TRACE_DEBUG_PROGRAM (loglevel: TRACE_DEBUG_PROGRAM
>>> (8)) (type: tracepoint)
>>>      lttng_ust_tracelog:TRACE_DEBUG_SYSTEM (loglevel: TRACE_DEBUG_SYSTEM
>>> (7)) (type: tracepoint)
>>>      lttng_ust_tracelog:TRACE_INFO (loglevel: TRACE_INFO (6)) (type:
>>> tracepoint)
>>>      lttng_ust_tracelog:TRACE_NOTICE (loglevel: TRACE_NOTICE (5)) (type:
>>> tracepoint)
>>>      lttng_ust_tracelog:TRACE_WARNING (loglevel: TRACE_WARNING (4)) (type:
>>> tracepoint)
>>>      lttng_ust_tracelog:TRACE_ERR (loglevel: TRACE_ERR (3)) (type:
>>> tracepoint)
>>>      lttng_ust_tracelog:TRACE_CRIT (loglevel: TRACE_CRIT (2)) (type:
>>> tracepoint)
>>>      lttng_ust_tracelog:TRACE_ALERT (loglevel: TRACE_ALERT (1)) (type:
>>> tracepoint)
>>>      lttng_ust_tracelog:TRACE_EMERG (loglevel: TRACE_EMERG (0)) (type:
>>> tracepoint)
>>>      lttng_ust_tracef:event (loglevel: TRACE_DEBUG (14)) (type: tracepoint)
>>>      lttng_ust_statedump:end (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>> tracepoint)
>>>      lttng_ust_statedump:debug_link (loglevel: TRACE_DEBUG_LINE (13))
>>> (type: tracepoint)
>>>      lttng_ust_statedump:build_id (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>> tracepoint)
>>>      lttng_ust_statedump:soinfo (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>> tracepoint)
>>>      lttng_ust_statedump:start (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>> tracepoint)
>>>
>>> Mais pas de resultats dans le repertoire des evenements lorsque j'active le
>>> tracage lttng.
>>>
>>> Resumé
>>>        Probleme 1 :No handlers could be found for logger
>>>                je croyais que "import lttngust" devait gerer cette
>>> situation
>>>
>>>        Probleme 2: pas de resultats au tracage
>>> Merci.
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> lttng-dev mailing list
>>> lttng-dev@lists.lttng.org
>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>
>>
>>
>> --
>> Jérémie Galarneau
>> EfficiOS Inc.
>> http://www.efficios.com




_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: Help-lttng-ust-pyhton
       [not found]     ` <20151112182108.Horde.F8RA5lZI0Cb6x7TqbxzXVzB@www.imp.polymtl.ca>
@ 2015-11-13 15:19       ` Jonathan Rajotte Julien
       [not found]       ` <5645FF8C.2080401@efficios.com>
  1 sibling, 0 replies; 10+ messages in thread
From: Jonathan Rajotte Julien @ 2015-11-13 15:19 UTC (permalink / raw)
  To: lttng-dev

Hi Yves,

We are currently looking a little bit more into it. It might be an error 
in the documentation.

The example report the same error without the 'import lttngust'. If you 
use python 3 it seems to work.

This seems related to the logging.basicConfig() which provide as basic 
configuration for the root handler. See [1] for more info.

For now you can simply add the logging.basicConfig() before everything.
I'm not sure if this is a workaround or simply how logging in python 
works in general.

Cheers!

[1] https://docs.python.org/2/library/logging.html#logging.basicConfig

On 2015-11-12 01:21 PM, Yves Junior Bationo wrote:
> I installed liblttng-ust-dev from ppa:lttng/ppa
> lttng version: (LTTng Trace Control) 2.7.0 - Herbe à Détourne
>
> Yves Junior Bationo <yves-junior.bationo@polymtl.ca> a écrit :
>
>> Hi, i my script i just change "my-logger" by "hello-logger" (hello.py 
>> in attachment).
>> I try to figure out the probem by
>>         export LTTNG_UST_PYTHON_DEBUG=1
>> and i found this:
>> #####
>> [0.019155] LTTng-UST debug: <module>(): debug is enabled
>> [0.024447] LTTng-UST debug: _init_threads(): entering
>> [0.024710] LTTng-UST debug: _get_port_from_file(): reading port from 
>> file "/var/run/lttng/agent.port"
>> [0.025745] LTTng-UST debug: _get_port_from_file(): reading port from 
>> file "/root/.lttng/agent.port"
>> [0.025942] LTTng-UST debug: _init_threads(): system session daemon 
>> port: 5345
>> [0.026117] LTTng-UST debug: _init_threads(): user session daemon 
>> port: None
>> [0.026280] LTTng-UST debug: _init_threads(): creating system client 
>> thread
>> [0.026762] LTTng-UST debug: _init_threads(): created and started 
>> system client thread
>> [0.026973] LTTng-UST debug: _init_threads(): waiting for registration 
>> done (expecting 1, timeout is 5.0 s)
>> [0.027721] LTTng-UST debug: _client_thread_target(): creating client 
>> "system" using TCP port 5345
>> [0.029745] LTTng-UST debug: _client_thread_target(): starting client 
>> "system"
>> [0.029896] LTTng-UST debug: run(): client "system": connecting to 
>> session daemon
>> [0.030117] LTTng-UST debug: run(): client "system": registering to 
>> session daemon
>> [0.030370] LTTng-UST debug: _recv_server_cmd_header(): client 
>> "system": received empty server command header
>> [0.030532] LTTng-UST debug: _handle_server_cmd(): client "system": 
>> bad server command
>> [0.030667] LTTng-UST debug: run(): client "system": got exception: 
>> 'module' object has no attribute '_ClientCmdReply'
>> ####
>> You can see 'bad server command' and 'exception' in the last lines.
>>
>> Jérémie Galarneau <jeremie.galarneau@efficios.com> a écrit :
>>
>>> 2015-11-06 17:59 GMT-05:00 Yves Junior Bationo 
>>> <yves-junior.bationo@polymtl.ca>:
>>>>
>>>> j'ai un souci avec lltngust pour les application python
>>>> Pour l'exemple de la Doc
>>>>        https://lttng.org/docs/#doc-python-application
>>>> j'ai l'erreur:
>>>>        No handlers could be found for logger "hello-logger"
>>>>
>>>
>>> Hi Yves,
>>>
>>> We try to stick to English on this mailing list so the questions and
>>> answers remain easily searchable.
>>>
>>> The example in the docs uses "time" without importing it, I have sent
>>> a Pull Request to address that.
>>> However, addressing the problem you are encountering, where does
>>> "hello-logger" come from?
>>>
>>> Can you post the code and versions of the components you are using?
>>>
>>> Thanks,
>>> Jérémie
>>>
>>>
>>>> la commande "lttng list -u -a" me retourne bien la liste des trace 
>>>> point:
>>>>
>>>>        PID: 5228 - Name: python
>>>>      lttng_python:event (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>> tracepoint)
>>>>      lttng_ust_tracelog:TRACE_DEBUG (loglevel: TRACE_DEBUG (14)) 
>>>> (type:
>>>> tracepoint)
>>>>      lttng_ust_tracelog:TRACE_DEBUG_LINE (loglevel: 
>>>> TRACE_DEBUG_LINE (13))
>>>> (type: tracepoint)
>>>>      lttng_ust_tracelog:TRACE_DEBUG_FUNCTION (loglevel:
>>>> TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
>>>>      lttng_ust_tracelog:TRACE_DEBUG_UNIT (loglevel: 
>>>> TRACE_DEBUG_UNIT (11))
>>>> (type: tracepoint)
>>>>      lttng_ust_tracelog:TRACE_DEBUG_MODULE (loglevel: 
>>>> TRACE_DEBUG_MODULE
>>>> (10)) (type: tracepoint)
>>>>      lttng_ust_tracelog:TRACE_DEBUG_PROCESS (loglevel: 
>>>> TRACE_DEBUG_PROCESS
>>>> (9)) (type: tracepoint)
>>>>      lttng_ust_tracelog:TRACE_DEBUG_PROGRAM (loglevel: 
>>>> TRACE_DEBUG_PROGRAM
>>>> (8)) (type: tracepoint)
>>>>      lttng_ust_tracelog:TRACE_DEBUG_SYSTEM (loglevel: 
>>>> TRACE_DEBUG_SYSTEM
>>>> (7)) (type: tracepoint)
>>>>      lttng_ust_tracelog:TRACE_INFO (loglevel: TRACE_INFO (6)) (type:
>>>> tracepoint)
>>>>      lttng_ust_tracelog:TRACE_NOTICE (loglevel: TRACE_NOTICE (5)) 
>>>> (type:
>>>> tracepoint)
>>>>      lttng_ust_tracelog:TRACE_WARNING (loglevel: TRACE_WARNING (4)) 
>>>> (type:
>>>> tracepoint)
>>>>      lttng_ust_tracelog:TRACE_ERR (loglevel: TRACE_ERR (3)) (type:
>>>> tracepoint)
>>>>      lttng_ust_tracelog:TRACE_CRIT (loglevel: TRACE_CRIT (2)) (type:
>>>> tracepoint)
>>>>      lttng_ust_tracelog:TRACE_ALERT (loglevel: TRACE_ALERT (1)) (type:
>>>> tracepoint)
>>>>      lttng_ust_tracelog:TRACE_EMERG (loglevel: TRACE_EMERG (0)) (type:
>>>> tracepoint)
>>>>      lttng_ust_tracef:event (loglevel: TRACE_DEBUG (14)) (type: 
>>>> tracepoint)
>>>>      lttng_ust_statedump:end (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>> tracepoint)
>>>>      lttng_ust_statedump:debug_link (loglevel: TRACE_DEBUG_LINE (13))
>>>> (type: tracepoint)
>>>>      lttng_ust_statedump:build_id (loglevel: TRACE_DEBUG_LINE (13)) 
>>>> (type:
>>>> tracepoint)
>>>>      lttng_ust_statedump:soinfo (loglevel: TRACE_DEBUG_LINE (13)) 
>>>> (type:
>>>> tracepoint)
>>>>      lttng_ust_statedump:start (loglevel: TRACE_DEBUG_LINE (13)) 
>>>> (type:
>>>> tracepoint)
>>>>
>>>> Mais pas de resultats dans le repertoire des evenements lorsque 
>>>> j'active le
>>>> tracage lttng.
>>>>
>>>> Resumé
>>>>        Probleme 1 :No handlers could be found for logger
>>>>                je croyais que "import lttngust" devait gerer cette
>>>> situation
>>>>
>>>>        Probleme 2: pas de resultats au tracage
>>>> Merci.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> lttng-dev mailing list
>>>> lttng-dev@lists.lttng.org
>>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>>
>>>
>>>
>>> -- 
>>> Jérémie Galarneau
>>> EfficiOS Inc.
>>> http://www.efficios.com
>
>
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Jonathan R. Julien
Efficios


_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: Help-lttng-ust-pyhton
       [not found]       ` <5645FF8C.2080401@efficios.com>
@ 2015-11-13 15:46         ` Yves Junior Bationo
       [not found]         ` <20151113154637.Horde.Sp6jqlYe3x3lcfEfnNAF7wW@www.imp.polymtl.ca>
  1 sibling, 0 replies; 10+ messages in thread
From: Yves Junior Bationo @ 2015-11-13 15:46 UTC (permalink / raw)
  To: Jonathan Rajotte Julien; +Cc: lttng-dev

Hi,
Adding "logging.basicConfig()" seems to work well. "lttng list -u -a"  
return the list of all python log
BUT
after enabling all event trace (lttng enable-event -u -a)
the trace contain only  "lttng_ust_statedump" event, and not a single  
event from the script (warning,error... )
THKs!
Yves

Jonathan Rajotte Julien <Jonathan.rajotte-julien@efficios.com> a écrit :

> Hi Yves,
>
> We are currently looking a little bit more into it. It might be an  
> error in the documentation.
>
> The example report the same error without the 'import lttngust'. If  
> you use python 3 it seems to work.
>
> This seems related to the logging.basicConfig() which provide as  
> basic configuration for the root handler. See [1] for more info.
>
> For now you can simply add the logging.basicConfig() before everything.
> I'm not sure if this is a workaround or simply how logging in python  
> works in general.
>
> Cheers!
>
> [1] https://docs.python.org/2/library/logging.html#logging.basicConfig
>
> On 2015-11-12 01:21 PM, Yves Junior Bationo wrote:
>> I installed liblttng-ust-dev from ppa:lttng/ppa
>> lttng version: (LTTng Trace Control) 2.7.0 - Herbe à Détourne
>>
>> Yves Junior Bationo <yves-junior.bationo@polymtl.ca> a écrit :
>>
>>> Hi, i my script i just change "my-logger" by "hello-logger"  
>>> (hello.py in attachment).
>>> I try to figure out the probem by
>>>        export LTTNG_UST_PYTHON_DEBUG=1
>>> and i found this:
>>> #####
>>> [0.019155] LTTng-UST debug: <module>(): debug is enabled
>>> [0.024447] LTTng-UST debug: _init_threads(): entering
>>> [0.024710] LTTng-UST debug: _get_port_from_file(): reading port  
>>> from file "/var/run/lttng/agent.port"
>>> [0.025745] LTTng-UST debug: _get_port_from_file(): reading port  
>>> from file "/root/.lttng/agent.port"
>>> [0.025942] LTTng-UST debug: _init_threads(): system session daemon  
>>> port: 5345
>>> [0.026117] LTTng-UST debug: _init_threads(): user session daemon port: None
>>> [0.026280] LTTng-UST debug: _init_threads(): creating system client thread
>>> [0.026762] LTTng-UST debug: _init_threads(): created and started  
>>> system client thread
>>> [0.026973] LTTng-UST debug: _init_threads(): waiting for  
>>> registration done (expecting 1, timeout is 5.0 s)
>>> [0.027721] LTTng-UST debug: _client_thread_target(): creating  
>>> client "system" using TCP port 5345
>>> [0.029745] LTTng-UST debug: _client_thread_target(): starting  
>>> client "system"
>>> [0.029896] LTTng-UST debug: run(): client "system": connecting to  
>>> session daemon
>>> [0.030117] LTTng-UST debug: run(): client "system": registering to  
>>> session daemon
>>> [0.030370] LTTng-UST debug: _recv_server_cmd_header(): client  
>>> "system": received empty server command header
>>> [0.030532] LTTng-UST debug: _handle_server_cmd(): client "system":  
>>> bad server command
>>> [0.030667] LTTng-UST debug: run(): client "system": got exception:  
>>> 'module' object has no attribute '_ClientCmdReply'
>>> ####
>>> You can see 'bad server command' and 'exception' in the last lines.
>>>
>>> Jérémie Galarneau <jeremie.galarneau@efficios.com> a écrit :
>>>
>>>> 2015-11-06 17:59 GMT-05:00 Yves Junior Bationo  
>>>> <yves-junior.bationo@polymtl.ca>:
>>>>>
>>>>> j'ai un souci avec lltngust pour les application python
>>>>> Pour l'exemple de la Doc
>>>>>       https://lttng.org/docs/#doc-python-application
>>>>> j'ai l'erreur:
>>>>>       No handlers could be found for logger "hello-logger"
>>>>>
>>>>
>>>> Hi Yves,
>>>>
>>>> We try to stick to English on this mailing list so the questions and
>>>> answers remain easily searchable.
>>>>
>>>> The example in the docs uses "time" without importing it, I have sent
>>>> a Pull Request to address that.
>>>> However, addressing the problem you are encountering, where does
>>>> "hello-logger" come from?
>>>>
>>>> Can you post the code and versions of the components you are using?
>>>>
>>>> Thanks,
>>>> Jérémie
>>>>
>>>>
>>>>> la commande "lttng list -u -a" me retourne bien la liste des trace point:
>>>>>
>>>>>       PID: 5228 - Name: python
>>>>>     lttng_python:event (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>>> tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_DEBUG (loglevel: TRACE_DEBUG (14)) (type:
>>>>> tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_DEBUG_LINE (loglevel: TRACE_DEBUG_LINE (13))
>>>>> (type: tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_DEBUG_FUNCTION (loglevel:
>>>>> TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_DEBUG_UNIT (loglevel: TRACE_DEBUG_UNIT (11))
>>>>> (type: tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_DEBUG_MODULE (loglevel: TRACE_DEBUG_MODULE
>>>>> (10)) (type: tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_DEBUG_PROCESS (loglevel: TRACE_DEBUG_PROCESS
>>>>> (9)) (type: tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_DEBUG_PROGRAM (loglevel: TRACE_DEBUG_PROGRAM
>>>>> (8)) (type: tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_DEBUG_SYSTEM (loglevel: TRACE_DEBUG_SYSTEM
>>>>> (7)) (type: tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_INFO (loglevel: TRACE_INFO (6)) (type:
>>>>> tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_NOTICE (loglevel: TRACE_NOTICE (5)) (type:
>>>>> tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_WARNING (loglevel: TRACE_WARNING (4)) (type:
>>>>> tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_ERR (loglevel: TRACE_ERR (3)) (type:
>>>>> tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_CRIT (loglevel: TRACE_CRIT (2)) (type:
>>>>> tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_ALERT (loglevel: TRACE_ALERT (1)) (type:
>>>>> tracepoint)
>>>>>     lttng_ust_tracelog:TRACE_EMERG (loglevel: TRACE_EMERG (0)) (type:
>>>>> tracepoint)
>>>>>     lttng_ust_tracef:event (loglevel: TRACE_DEBUG (14)) (type:  
>>>>> tracepoint)
>>>>>     lttng_ust_statedump:end (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>>> tracepoint)
>>>>>     lttng_ust_statedump:debug_link (loglevel: TRACE_DEBUG_LINE (13))
>>>>> (type: tracepoint)
>>>>>     lttng_ust_statedump:build_id (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>>> tracepoint)
>>>>>     lttng_ust_statedump:soinfo (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>>> tracepoint)
>>>>>     lttng_ust_statedump:start (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>>> tracepoint)
>>>>>
>>>>> Mais pas de resultats dans le repertoire des evenements lorsque  
>>>>> j'active le
>>>>> tracage lttng.
>>>>>
>>>>> Resumé
>>>>>       Probleme 1 :No handlers could be found for logger
>>>>>               je croyais que "import lttngust" devait gerer cette
>>>>> situation
>>>>>
>>>>>       Probleme 2: pas de resultats au tracage
>>>>> Merci.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> lttng-dev mailing list
>>>>> lttng-dev@lists.lttng.org
>>>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>>>
>>>>
>>>>
>>>> -- 
>>>> Jérémie Galarneau
>>>> EfficiOS Inc.
>>>> http://www.efficios.com
>>
>>
>>
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev@lists.lttng.org
>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
> -- 
> Jonathan R. Julien
> Efficios




_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: Help-lttng-ust-pyhton
       [not found]         ` <20151113154637.Horde.Sp6jqlYe3x3lcfEfnNAF7wW@www.imp.polymtl.ca>
@ 2015-11-13 16:21           ` Jonathan Rajotte
       [not found]           ` <CAF4oYfG6VaGS62MF_D83ojtZVbUo9+7KXr7Y+yUeVsY7eCb-BA@mail.gmail.com>
  1 sibling, 0 replies; 10+ messages in thread
From: Jonathan Rajotte @ 2015-11-13 16:21 UTC (permalink / raw)
  To: Yves Junior Bationo; +Cc: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 8024 bytes --]

Hi Yves,

You might want to enable all the python events via
'lttng enable-event -p -a'.

Cheers!

On Fri, Nov 13, 2015 at 10:46 AM, Yves Junior Bationo <
yves-junior.bationo@polymtl.ca> wrote:

> Hi,
> Adding "logging.basicConfig()" seems to work well. "lttng list -u -a"
> return the list of all python log
> BUT
> after enabling all event trace (lttng enable-event -u -a)
> the trace contain only  "lttng_ust_statedump" event, and not a single
> event from the script (warning,error... )
> THKs!
> Yves
>
> Jonathan Rajotte Julien <Jonathan.rajotte-julien@efficios.com> a écrit :
>
>
> Hi Yves,
>>
>> We are currently looking a little bit more into it. It might be an error
>> in the documentation.
>>
>> The example report the same error without the 'import lttngust'. If you
>> use python 3 it seems to work.
>>
>> This seems related to the logging.basicConfig() which provide as basic
>> configuration for the root handler. See [1] for more info.
>>
>> For now you can simply add the logging.basicConfig() before everything.
>> I'm not sure if this is a workaround or simply how logging in python
>> works in general.
>>
>> Cheers!
>>
>> [1] https://docs.python.org/2/library/logging.html#logging.basicConfig
>>
>> On 2015-11-12 01:21 PM, Yves Junior Bationo wrote:
>>
>>> I installed liblttng-ust-dev from ppa:lttng/ppa
>>> lttng version: (LTTng Trace Control) 2.7.0 - Herbe à Détourne
>>>
>>> Yves Junior Bationo <yves-junior.bationo@polymtl.ca> a écrit :
>>>
>>> Hi, i my script i just change "my-logger" by "hello-logger" (hello.py in
>>>> attachment).
>>>> I try to figure out the probem by
>>>>        export LTTNG_UST_PYTHON_DEBUG=1
>>>> and i found this:
>>>> #####
>>>> [0.019155] LTTng-UST debug: <module>(): debug is enabled
>>>> [0.024447] LTTng-UST debug: _init_threads(): entering
>>>> [0.024710] LTTng-UST debug: _get_port_from_file(): reading port from
>>>> file "/var/run/lttng/agent.port"
>>>> [0.025745] LTTng-UST debug: _get_port_from_file(): reading port from
>>>> file "/root/.lttng/agent.port"
>>>> [0.025942] LTTng-UST debug: _init_threads(): system session daemon
>>>> port: 5345
>>>> [0.026117] LTTng-UST debug: _init_threads(): user session daemon port:
>>>> None
>>>> [0.026280] LTTng-UST debug: _init_threads(): creating system client
>>>> thread
>>>> [0.026762] LTTng-UST debug: _init_threads(): created and started system
>>>> client thread
>>>> [0.026973] LTTng-UST debug: _init_threads(): waiting for registration
>>>> done (expecting 1, timeout is 5.0 s)
>>>> [0.027721] LTTng-UST debug: _client_thread_target(): creating client
>>>> "system" using TCP port 5345
>>>> [0.029745] LTTng-UST debug: _client_thread_target(): starting client
>>>> "system"
>>>> [0.029896] LTTng-UST debug: run(): client "system": connecting to
>>>> session daemon
>>>> [0.030117] LTTng-UST debug: run(): client "system": registering to
>>>> session daemon
>>>> [0.030370] LTTng-UST debug: _recv_server_cmd_header(): client "system":
>>>> received empty server command header
>>>> [0.030532] LTTng-UST debug: _handle_server_cmd(): client "system": bad
>>>> server command
>>>> [0.030667] LTTng-UST debug: run(): client "system": got exception:
>>>> 'module' object has no attribute '_ClientCmdReply'
>>>> ####
>>>> You can see 'bad server command' and 'exception' in the last lines.
>>>>
>>>> Jérémie Galarneau <jeremie.galarneau@efficios.com> a écrit :
>>>>
>>>> 2015-11-06 17:59 GMT-05:00 Yves Junior Bationo <
>>>>> yves-junior.bationo@polymtl.ca>:
>>>>>
>>>>>>
>>>>>> j'ai un souci avec lltngust pour les application python
>>>>>> Pour l'exemple de la Doc
>>>>>>       https://lttng.org/docs/#doc-python-application
>>>>>> j'ai l'erreur:
>>>>>>       No handlers could be found for logger "hello-logger"
>>>>>>
>>>>>>
>>>>> Hi Yves,
>>>>>
>>>>> We try to stick to English on this mailing list so the questions and
>>>>> answers remain easily searchable.
>>>>>
>>>>> The example in the docs uses "time" without importing it, I have sent
>>>>> a Pull Request to address that.
>>>>> However, addressing the problem you are encountering, where does
>>>>> "hello-logger" come from?
>>>>>
>>>>> Can you post the code and versions of the components you are using?
>>>>>
>>>>> Thanks,
>>>>> Jérémie
>>>>>
>>>>>
>>>>> la commande "lttng list -u -a" me retourne bien la liste des trace
>>>>>> point:
>>>>>>
>>>>>>       PID: 5228 - Name: python
>>>>>>     lttng_python:event (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>>>> tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_DEBUG (loglevel: TRACE_DEBUG (14)) (type:
>>>>>> tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_DEBUG_LINE (loglevel: TRACE_DEBUG_LINE
>>>>>> (13))
>>>>>> (type: tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_DEBUG_FUNCTION (loglevel:
>>>>>> TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_DEBUG_UNIT (loglevel: TRACE_DEBUG_UNIT
>>>>>> (11))
>>>>>> (type: tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_DEBUG_MODULE (loglevel:
>>>>>> TRACE_DEBUG_MODULE
>>>>>> (10)) (type: tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_DEBUG_PROCESS (loglevel:
>>>>>> TRACE_DEBUG_PROCESS
>>>>>> (9)) (type: tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_DEBUG_PROGRAM (loglevel:
>>>>>> TRACE_DEBUG_PROGRAM
>>>>>> (8)) (type: tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_DEBUG_SYSTEM (loglevel:
>>>>>> TRACE_DEBUG_SYSTEM
>>>>>> (7)) (type: tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_INFO (loglevel: TRACE_INFO (6)) (type:
>>>>>> tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_NOTICE (loglevel: TRACE_NOTICE (5))
>>>>>> (type:
>>>>>> tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_WARNING (loglevel: TRACE_WARNING (4))
>>>>>> (type:
>>>>>> tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_ERR (loglevel: TRACE_ERR (3)) (type:
>>>>>> tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_CRIT (loglevel: TRACE_CRIT (2)) (type:
>>>>>> tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_ALERT (loglevel: TRACE_ALERT (1)) (type:
>>>>>> tracepoint)
>>>>>>     lttng_ust_tracelog:TRACE_EMERG (loglevel: TRACE_EMERG (0)) (type:
>>>>>> tracepoint)
>>>>>>     lttng_ust_tracef:event (loglevel: TRACE_DEBUG (14)) (type:
>>>>>> tracepoint)
>>>>>>     lttng_ust_statedump:end (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>>>> tracepoint)
>>>>>>     lttng_ust_statedump:debug_link (loglevel: TRACE_DEBUG_LINE (13))
>>>>>> (type: tracepoint)
>>>>>>     lttng_ust_statedump:build_id (loglevel: TRACE_DEBUG_LINE (13))
>>>>>> (type:
>>>>>> tracepoint)
>>>>>>     lttng_ust_statedump:soinfo (loglevel: TRACE_DEBUG_LINE (13))
>>>>>> (type:
>>>>>> tracepoint)
>>>>>>     lttng_ust_statedump:start (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>>>> tracepoint)
>>>>>>
>>>>>> Mais pas de resultats dans le repertoire des evenements lorsque
>>>>>> j'active le
>>>>>> tracage lttng.
>>>>>>
>>>>>> Resumé
>>>>>>       Probleme 1 :No handlers could be found for logger
>>>>>>               je croyais que "import lttngust" devait gerer cette
>>>>>> situation
>>>>>>
>>>>>>       Probleme 2: pas de resultats au tracage
>>>>>> Merci.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> lttng-dev mailing list
>>>>>> lttng-dev@lists.lttng.org
>>>>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Jérémie Galarneau
>>>>> EfficiOS Inc.
>>>>> http://www.efficios.com
>>>>>
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> lttng-dev mailing list
>>> lttng-dev@lists.lttng.org
>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>>
>>
>> --
>> Jonathan R. Julien
>> Efficios
>>
>
>
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>



-- 
Jonathan Rajotte Julien

[-- Attachment #1.2: Type: text/html, Size: 10236 bytes --]

[-- Attachment #2: Type: text/plain, Size: 155 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: Help-lttng-ust-pyhton
       [not found]           ` <CAF4oYfG6VaGS62MF_D83ojtZVbUo9+7KXr7Y+yUeVsY7eCb-BA@mail.gmail.com>
@ 2015-11-13 18:02             ` Yves Junior Bationo
       [not found]             ` <20151113180259.Horde.tR4p6Ox7ACO6FQd18AjFiJA@www.imp.polymtl.ca>
  1 sibling, 0 replies; 10+ messages in thread
From: Yves Junior Bationo @ 2015-11-13 18:02 UTC (permalink / raw)
  To: Jonathan Rajotte; +Cc: lttng-dev


Hi,
with 'lttng enable-event -p -a' nothing is returned too.
ok i will wait for the problem to be fixed
THKs!

Jonathan Rajotte <jonathan.r.julien@gmail.com> a écrit :

> Hi Yves,
>
> You might want to enable all the python events via
> 'lttng enable-event -p -a'.
>
> Cheers!
>
> On Fri, Nov 13, 2015 at 10:46 AM, Yves Junior Bationo <
> yves-junior.bationo@polymtl.ca> wrote:
>
>> Hi,
>> Adding "logging.basicConfig()" seems to work well. "lttng list -u -a"
>> return the list of all python log
>> BUT
>> after enabling all event trace (lttng enable-event -u -a)
>> the trace contain only  "lttng_ust_statedump" event, and not a single
>> event from the script (warning,error... )
>> THKs!
>> Yves
>>
>> Jonathan Rajotte Julien <Jonathan.rajotte-julien@efficios.com> a écrit :
>>
>>
>> Hi Yves,
>>>
>>> We are currently looking a little bit more into it. It might be an error
>>> in the documentation.
>>>
>>> The example report the same error without the 'import lttngust'. If you
>>> use python 3 it seems to work.
>>>
>>> This seems related to the logging.basicConfig() which provide as basic
>>> configuration for the root handler. See [1] for more info.
>>>
>>> For now you can simply add the logging.basicConfig() before everything.
>>> I'm not sure if this is a workaround or simply how logging in python
>>> works in general.
>>>
>>> Cheers!
>>>
>>> [1] https://docs.python.org/2/library/logging.html#logging.basicConfig
>>>
>>> On 2015-11-12 01:21 PM, Yves Junior Bationo wrote:
>>>
>>>> I installed liblttng-ust-dev from ppa:lttng/ppa
>>>> lttng version: (LTTng Trace Control) 2.7.0 - Herbe à Détourne
>>>>
>>>> Yves Junior Bationo <yves-junior.bationo@polymtl.ca> a écrit :
>>>>
>>>> Hi, i my script i just change "my-logger" by "hello-logger" (hello.py in
>>>>> attachment).
>>>>> I try to figure out the probem by
>>>>>        export LTTNG_UST_PYTHON_DEBUG=1
>>>>> and i found this:
>>>>> #####
>>>>> [0.019155] LTTng-UST debug: <module>(): debug is enabled
>>>>> [0.024447] LTTng-UST debug: _init_threads(): entering
>>>>> [0.024710] LTTng-UST debug: _get_port_from_file(): reading port from
>>>>> file "/var/run/lttng/agent.port"
>>>>> [0.025745] LTTng-UST debug: _get_port_from_file(): reading port from
>>>>> file "/root/.lttng/agent.port"
>>>>> [0.025942] LTTng-UST debug: _init_threads(): system session daemon
>>>>> port: 5345
>>>>> [0.026117] LTTng-UST debug: _init_threads(): user session daemon port:
>>>>> None
>>>>> [0.026280] LTTng-UST debug: _init_threads(): creating system client
>>>>> thread
>>>>> [0.026762] LTTng-UST debug: _init_threads(): created and started system
>>>>> client thread
>>>>> [0.026973] LTTng-UST debug: _init_threads(): waiting for registration
>>>>> done (expecting 1, timeout is 5.0 s)
>>>>> [0.027721] LTTng-UST debug: _client_thread_target(): creating client
>>>>> "system" using TCP port 5345
>>>>> [0.029745] LTTng-UST debug: _client_thread_target(): starting client
>>>>> "system"
>>>>> [0.029896] LTTng-UST debug: run(): client "system": connecting to
>>>>> session daemon
>>>>> [0.030117] LTTng-UST debug: run(): client "system": registering to
>>>>> session daemon
>>>>> [0.030370] LTTng-UST debug: _recv_server_cmd_header(): client "system":
>>>>> received empty server command header
>>>>> [0.030532] LTTng-UST debug: _handle_server_cmd(): client "system": bad
>>>>> server command
>>>>> [0.030667] LTTng-UST debug: run(): client "system": got exception:
>>>>> 'module' object has no attribute '_ClientCmdReply'
>>>>> ####
>>>>> You can see 'bad server command' and 'exception' in the last lines.
>>>>>
>>>>> Jérémie Galarneau <jeremie.galarneau@efficios.com> a écrit :
>>>>>
>>>>> 2015-11-06 17:59 GMT-05:00 Yves Junior Bationo <
>>>>>> yves-junior.bationo@polymtl.ca>:
>>>>>>
>>>>>>>
>>>>>>> j'ai un souci avec lltngust pour les application python
>>>>>>> Pour l'exemple de la Doc
>>>>>>>       https://lttng.org/docs/#doc-python-application
>>>>>>> j'ai l'erreur:
>>>>>>>       No handlers could be found for logger "hello-logger"
>>>>>>>
>>>>>>>
>>>>>> Hi Yves,
>>>>>>
>>>>>> We try to stick to English on this mailing list so the questions and
>>>>>> answers remain easily searchable.
>>>>>>
>>>>>> The example in the docs uses "time" without importing it, I have sent
>>>>>> a Pull Request to address that.
>>>>>> However, addressing the problem you are encountering, where does
>>>>>> "hello-logger" come from?
>>>>>>
>>>>>> Can you post the code and versions of the components you are using?
>>>>>>
>>>>>> Thanks,
>>>>>> Jérémie
>>>>>>
>>>>>>
>>>>>> la commande "lttng list -u -a" me retourne bien la liste des trace
>>>>>>> point:
>>>>>>>
>>>>>>>       PID: 5228 - Name: python
>>>>>>>     lttng_python:event (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>>>>> tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_DEBUG (loglevel: TRACE_DEBUG (14)) (type:
>>>>>>> tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_DEBUG_LINE (loglevel: TRACE_DEBUG_LINE
>>>>>>> (13))
>>>>>>> (type: tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_DEBUG_FUNCTION (loglevel:
>>>>>>> TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_DEBUG_UNIT (loglevel: TRACE_DEBUG_UNIT
>>>>>>> (11))
>>>>>>> (type: tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_DEBUG_MODULE (loglevel:
>>>>>>> TRACE_DEBUG_MODULE
>>>>>>> (10)) (type: tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_DEBUG_PROCESS (loglevel:
>>>>>>> TRACE_DEBUG_PROCESS
>>>>>>> (9)) (type: tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_DEBUG_PROGRAM (loglevel:
>>>>>>> TRACE_DEBUG_PROGRAM
>>>>>>> (8)) (type: tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_DEBUG_SYSTEM (loglevel:
>>>>>>> TRACE_DEBUG_SYSTEM
>>>>>>> (7)) (type: tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_INFO (loglevel: TRACE_INFO (6)) (type:
>>>>>>> tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_NOTICE (loglevel: TRACE_NOTICE (5))
>>>>>>> (type:
>>>>>>> tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_WARNING (loglevel: TRACE_WARNING (4))
>>>>>>> (type:
>>>>>>> tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_ERR (loglevel: TRACE_ERR (3)) (type:
>>>>>>> tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_CRIT (loglevel: TRACE_CRIT (2)) (type:
>>>>>>> tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_ALERT (loglevel: TRACE_ALERT (1)) (type:
>>>>>>> tracepoint)
>>>>>>>     lttng_ust_tracelog:TRACE_EMERG (loglevel: TRACE_EMERG (0)) (type:
>>>>>>> tracepoint)
>>>>>>>     lttng_ust_tracef:event (loglevel: TRACE_DEBUG (14)) (type:
>>>>>>> tracepoint)
>>>>>>>     lttng_ust_statedump:end (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>>>>> tracepoint)
>>>>>>>     lttng_ust_statedump:debug_link (loglevel: TRACE_DEBUG_LINE (13))
>>>>>>> (type: tracepoint)
>>>>>>>     lttng_ust_statedump:build_id (loglevel: TRACE_DEBUG_LINE (13))
>>>>>>> (type:
>>>>>>> tracepoint)
>>>>>>>     lttng_ust_statedump:soinfo (loglevel: TRACE_DEBUG_LINE (13))
>>>>>>> (type:
>>>>>>> tracepoint)
>>>>>>>     lttng_ust_statedump:start (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>>>>> tracepoint)
>>>>>>>
>>>>>>> Mais pas de resultats dans le repertoire des evenements lorsque
>>>>>>> j'active le
>>>>>>> tracage lttng.
>>>>>>>
>>>>>>> Resumé
>>>>>>>       Probleme 1 :No handlers could be found for logger
>>>>>>>               je croyais que "import lttngust" devait gerer cette
>>>>>>> situation
>>>>>>>
>>>>>>>       Probleme 2: pas de resultats au tracage
>>>>>>> Merci.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> lttng-dev mailing list
>>>>>>> lttng-dev@lists.lttng.org
>>>>>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Jérémie Galarneau
>>>>>> EfficiOS Inc.
>>>>>> http://www.efficios.com
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> lttng-dev mailing list
>>>> lttng-dev@lists.lttng.org
>>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>>>
>>>
>>> --
>>> Jonathan R. Julien
>>> Efficios
>>>
>>
>>
>>
>>
>> _______________________________________________
>> lttng-dev mailing list
>> lttng-dev@lists.lttng.org
>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>
>
>
>
> --
> Jonathan Rajotte Julien



_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Re: Help-lttng-ust-pyhton
       [not found]             ` <20151113180259.Horde.tR4p6Ox7ACO6FQd18AjFiJA@www.imp.polymtl.ca>
@ 2015-11-25 16:29               ` Yves Junior Bationo
  0 siblings, 0 replies; 10+ messages in thread
From: Yves Junior Bationo @ 2015-11-25 16:29 UTC (permalink / raw)
  To: lttng-dev

Hi,
i finaly found the solution of my problem
First in the exemple of the documentation  
(https://lttng.org/docs/#doc-python-application),
	we must add "logging.basicConfig()" to handle the log (or other handler)
As lttng UST python doesn't work when installing from ppa repository
download bash script (from http://paste.ubuntu.com/10816886/) and  
replace (line 18) by "./configure --enable-python-agent" for lttng-ust  
compilation
install and enjoy
THKS.
Yves Junior Bationo <yves-junior.bationo@polymtl.ca> a écrit :

> Hi,
> with 'lttng enable-event -p -a' nothing is returned too.
> ok i will wait for the problem to be fixed
> THKs!
>
> Jonathan Rajotte <jonathan.r.julien@gmail.com> a écrit :
>
>> Hi Yves,
>>
>> You might want to enable all the python events via
>> 'lttng enable-event -p -a'.
>>
>> Cheers!
>>
>> On Fri, Nov 13, 2015 at 10:46 AM, Yves Junior Bationo <
>> yves-junior.bationo@polymtl.ca> wrote:
>>
>>> Hi,
>>> Adding "logging.basicConfig()" seems to work well. "lttng list -u -a"
>>> return the list of all python log
>>> BUT
>>> after enabling all event trace (lttng enable-event -u -a)
>>> the trace contain only  "lttng_ust_statedump" event, and not a single
>>> event from the script (warning,error... )
>>> THKs!
>>> Yves
>>>
>>> Jonathan Rajotte Julien <Jonathan.rajotte-julien@efficios.com> a écrit :
>>>
>>>
>>> Hi Yves,
>>>>
>>>> We are currently looking a little bit more into it. It might be an error
>>>> in the documentation.
>>>>
>>>> The example report the same error without the 'import lttngust'. If you
>>>> use python 3 it seems to work.
>>>>
>>>> This seems related to the logging.basicConfig() which provide as basic
>>>> configuration for the root handler. See [1] for more info.
>>>>
>>>> For now you can simply add the logging.basicConfig() before everything.
>>>> I'm not sure if this is a workaround or simply how logging in python
>>>> works in general.
>>>>
>>>> Cheers!
>>>>
>>>> [1] https://docs.python.org/2/library/logging.html#logging.basicConfig
>>>>
>>>> On 2015-11-12 01:21 PM, Yves Junior Bationo wrote:
>>>>
>>>>> I installed liblttng-ust-dev from ppa:lttng/ppa
>>>>> lttng version: (LTTng Trace Control) 2.7.0 - Herbe à Détourne
>>>>>
>>>>> Yves Junior Bationo <yves-junior.bationo@polymtl.ca> a écrit :
>>>>>
>>>>> Hi, i my script i just change "my-logger" by "hello-logger" (hello.py in
>>>>>> attachment).
>>>>>> I try to figure out the probem by
>>>>>>       export LTTNG_UST_PYTHON_DEBUG=1
>>>>>> and i found this:
>>>>>> #####
>>>>>> [0.019155] LTTng-UST debug: <module>(): debug is enabled
>>>>>> [0.024447] LTTng-UST debug: _init_threads(): entering
>>>>>> [0.024710] LTTng-UST debug: _get_port_from_file(): reading port from
>>>>>> file "/var/run/lttng/agent.port"
>>>>>> [0.025745] LTTng-UST debug: _get_port_from_file(): reading port from
>>>>>> file "/root/.lttng/agent.port"
>>>>>> [0.025942] LTTng-UST debug: _init_threads(): system session daemon
>>>>>> port: 5345
>>>>>> [0.026117] LTTng-UST debug: _init_threads(): user session daemon port:
>>>>>> None
>>>>>> [0.026280] LTTng-UST debug: _init_threads(): creating system client
>>>>>> thread
>>>>>> [0.026762] LTTng-UST debug: _init_threads(): created and started system
>>>>>> client thread
>>>>>> [0.026973] LTTng-UST debug: _init_threads(): waiting for registration
>>>>>> done (expecting 1, timeout is 5.0 s)
>>>>>> [0.027721] LTTng-UST debug: _client_thread_target(): creating client
>>>>>> "system" using TCP port 5345
>>>>>> [0.029745] LTTng-UST debug: _client_thread_target(): starting client
>>>>>> "system"
>>>>>> [0.029896] LTTng-UST debug: run(): client "system": connecting to
>>>>>> session daemon
>>>>>> [0.030117] LTTng-UST debug: run(): client "system": registering to
>>>>>> session daemon
>>>>>> [0.030370] LTTng-UST debug: _recv_server_cmd_header(): client "system":
>>>>>> received empty server command header
>>>>>> [0.030532] LTTng-UST debug: _handle_server_cmd(): client "system": bad
>>>>>> server command
>>>>>> [0.030667] LTTng-UST debug: run(): client "system": got exception:
>>>>>> 'module' object has no attribute '_ClientCmdReply'
>>>>>> ####
>>>>>> You can see 'bad server command' and 'exception' in the last lines.
>>>>>>
>>>>>> Jérémie Galarneau <jeremie.galarneau@efficios.com> a écrit :
>>>>>>
>>>>>> 2015-11-06 17:59 GMT-05:00 Yves Junior Bationo <
>>>>>>> yves-junior.bationo@polymtl.ca>:
>>>>>>>
>>>>>>>>
>>>>>>>> j'ai un souci avec lltngust pour les application python
>>>>>>>> Pour l'exemple de la Doc
>>>>>>>>      https://lttng.org/docs/#doc-python-application
>>>>>>>> j'ai l'erreur:
>>>>>>>>      No handlers could be found for logger "hello-logger"
>>>>>>>>
>>>>>>>>
>>>>>>> Hi Yves,
>>>>>>>
>>>>>>> We try to stick to English on this mailing list so the questions and
>>>>>>> answers remain easily searchable.
>>>>>>>
>>>>>>> The example in the docs uses "time" without importing it, I have sent
>>>>>>> a Pull Request to address that.
>>>>>>> However, addressing the problem you are encountering, where does
>>>>>>> "hello-logger" come from?
>>>>>>>
>>>>>>> Can you post the code and versions of the components you are using?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Jérémie
>>>>>>>
>>>>>>>
>>>>>>> la commande "lttng list -u -a" me retourne bien la liste des trace
>>>>>>>> point:
>>>>>>>>
>>>>>>>>      PID: 5228 - Name: python
>>>>>>>>    lttng_python:event (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>>>>>> tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_DEBUG (loglevel: TRACE_DEBUG (14)) (type:
>>>>>>>> tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_DEBUG_LINE (loglevel: TRACE_DEBUG_LINE
>>>>>>>> (13))
>>>>>>>> (type: tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_DEBUG_FUNCTION (loglevel:
>>>>>>>> TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_DEBUG_UNIT (loglevel: TRACE_DEBUG_UNIT
>>>>>>>> (11))
>>>>>>>> (type: tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_DEBUG_MODULE (loglevel:
>>>>>>>> TRACE_DEBUG_MODULE
>>>>>>>> (10)) (type: tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_DEBUG_PROCESS (loglevel:
>>>>>>>> TRACE_DEBUG_PROCESS
>>>>>>>> (9)) (type: tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_DEBUG_PROGRAM (loglevel:
>>>>>>>> TRACE_DEBUG_PROGRAM
>>>>>>>> (8)) (type: tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_DEBUG_SYSTEM (loglevel:
>>>>>>>> TRACE_DEBUG_SYSTEM
>>>>>>>> (7)) (type: tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_INFO (loglevel: TRACE_INFO (6)) (type:
>>>>>>>> tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_NOTICE (loglevel: TRACE_NOTICE (5))
>>>>>>>> (type:
>>>>>>>> tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_WARNING (loglevel: TRACE_WARNING (4))
>>>>>>>> (type:
>>>>>>>> tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_ERR (loglevel: TRACE_ERR (3)) (type:
>>>>>>>> tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_CRIT (loglevel: TRACE_CRIT (2)) (type:
>>>>>>>> tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_ALERT (loglevel: TRACE_ALERT (1)) (type:
>>>>>>>> tracepoint)
>>>>>>>>    lttng_ust_tracelog:TRACE_EMERG (loglevel: TRACE_EMERG (0)) (type:
>>>>>>>> tracepoint)
>>>>>>>>    lttng_ust_tracef:event (loglevel: TRACE_DEBUG (14)) (type:
>>>>>>>> tracepoint)
>>>>>>>>    lttng_ust_statedump:end (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>>>>>> tracepoint)
>>>>>>>>    lttng_ust_statedump:debug_link (loglevel: TRACE_DEBUG_LINE (13))
>>>>>>>> (type: tracepoint)
>>>>>>>>    lttng_ust_statedump:build_id (loglevel: TRACE_DEBUG_LINE (13))
>>>>>>>> (type:
>>>>>>>> tracepoint)
>>>>>>>>    lttng_ust_statedump:soinfo (loglevel: TRACE_DEBUG_LINE (13))
>>>>>>>> (type:
>>>>>>>> tracepoint)
>>>>>>>>    lttng_ust_statedump:start (loglevel: TRACE_DEBUG_LINE (13)) (type:
>>>>>>>> tracepoint)
>>>>>>>>
>>>>>>>> Mais pas de resultats dans le repertoire des evenements lorsque
>>>>>>>> j'active le
>>>>>>>> tracage lttng.
>>>>>>>>
>>>>>>>> Resumé
>>>>>>>>      Probleme 1 :No handlers could be found for logger
>>>>>>>>              je croyais que "import lttngust" devait gerer cette
>>>>>>>> situation
>>>>>>>>
>>>>>>>>      Probleme 2: pas de resultats au tracage
>>>>>>>> Merci.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> lttng-dev mailing list
>>>>>>>> lttng-dev@lists.lttng.org
>>>>>>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Jérémie Galarneau
>>>>>>> EfficiOS Inc.
>>>>>>> http://www.efficios.com
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> lttng-dev mailing list
>>>>> lttng-dev@lists.lttng.org
>>>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>>>>
>>>>
>>>> --
>>>> Jonathan R. Julien
>>>> Efficios
>>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> lttng-dev mailing list
>>> lttng-dev@lists.lttng.org
>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>>
>>
>>
>>
>> --
>> Jonathan Rajotte Julien
>
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev




_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

* Help-lttng-ust-pyhton
@ 2015-11-06 22:59 Yves Junior Bationo
  0 siblings, 0 replies; 10+ messages in thread
From: Yves Junior Bationo @ 2015-11-06 22:59 UTC (permalink / raw)
  To: lttng-dev


j'ai un souci avec lltngust pour les application python
Pour l'exemple de la Doc
	https://lttng.org/docs/#doc-python-application
j'ai l'erreur:
	No handlers could be found for logger "hello-logger"

la commande "lttng list -u -a" me retourne bien la liste des trace point:

	PID: 5228 - Name: python
       lttng_python:event (loglevel: TRACE_DEBUG_LINE (13)) (type: tracepoint)
       lttng_ust_tracelog:TRACE_DEBUG (loglevel: TRACE_DEBUG (14))  
(type: tracepoint)
       lttng_ust_tracelog:TRACE_DEBUG_LINE (loglevel: TRACE_DEBUG_LINE  
(13)) (type: tracepoint)
       lttng_ust_tracelog:TRACE_DEBUG_FUNCTION (loglevel:  
TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)
       lttng_ust_tracelog:TRACE_DEBUG_UNIT (loglevel: TRACE_DEBUG_UNIT  
(11)) (type: tracepoint)
       lttng_ust_tracelog:TRACE_DEBUG_MODULE (loglevel:  
TRACE_DEBUG_MODULE (10)) (type: tracepoint)
       lttng_ust_tracelog:TRACE_DEBUG_PROCESS (loglevel:  
TRACE_DEBUG_PROCESS (9)) (type: tracepoint)
       lttng_ust_tracelog:TRACE_DEBUG_PROGRAM (loglevel:  
TRACE_DEBUG_PROGRAM (8)) (type: tracepoint)
       lttng_ust_tracelog:TRACE_DEBUG_SYSTEM (loglevel:  
TRACE_DEBUG_SYSTEM (7)) (type: tracepoint)
       lttng_ust_tracelog:TRACE_INFO (loglevel: TRACE_INFO (6)) (type:  
tracepoint)
       lttng_ust_tracelog:TRACE_NOTICE (loglevel: TRACE_NOTICE (5))  
(type: tracepoint)
       lttng_ust_tracelog:TRACE_WARNING (loglevel: TRACE_WARNING (4))  
(type: tracepoint)
       lttng_ust_tracelog:TRACE_ERR (loglevel: TRACE_ERR (3)) (type:  
tracepoint)
       lttng_ust_tracelog:TRACE_CRIT (loglevel: TRACE_CRIT (2)) (type:  
tracepoint)
       lttng_ust_tracelog:TRACE_ALERT (loglevel: TRACE_ALERT (1))  
(type: tracepoint)
       lttng_ust_tracelog:TRACE_EMERG (loglevel: TRACE_EMERG (0))  
(type: tracepoint)
       lttng_ust_tracef:event (loglevel: TRACE_DEBUG (14)) (type: tracepoint)
       lttng_ust_statedump:end (loglevel: TRACE_DEBUG_LINE (13))  
(type: tracepoint)
       lttng_ust_statedump:debug_link (loglevel: TRACE_DEBUG_LINE  
(13)) (type: tracepoint)
       lttng_ust_statedump:build_id (loglevel: TRACE_DEBUG_LINE (13))  
(type: tracepoint)
       lttng_ust_statedump:soinfo (loglevel: TRACE_DEBUG_LINE (13))  
(type: tracepoint)
       lttng_ust_statedump:start (loglevel: TRACE_DEBUG_LINE (13))  
(type: tracepoint)

Mais pas de resultats dans le repertoire des evenements lorsque  
j'active le tracage lttng.

Resumé
	Probleme 1 :No handlers could be found for logger
		je croyais que "import lttngust" devait gerer cette situation

	Probleme 2: pas de resultats au tracage
Merci.





_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

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

end of thread, other threads:[~2015-11-25 16:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20151106225909.Horde.ZKUBbt2vnWaMa-0QDzy6txy@www.imp.polymtl.ca>
2015-11-12 15:20 ` Help-lttng-ust-pyhton Jérémie Galarneau
     [not found] ` <CA+jJMxvgz2D=ga+7fC4FTdnJ0obQLz1K38G7sUrnuqhCMKXg7g@mail.gmail.com>
2015-11-12 16:43   ` Help-lttng-ust-pyhton Yves Junior Bationo
     [not found]   ` <20151112164332.Horde.29NGfz3UJ4wgzaNFRJRqxf-@www.imp.polymtl.ca>
2015-11-12 18:19     ` Help-lttng-ust-pyhton Jérémie Galarneau
2015-11-12 18:21     ` Help-lttng-ust-pyhton Yves Junior Bationo
     [not found]     ` <20151112182108.Horde.F8RA5lZI0Cb6x7TqbxzXVzB@www.imp.polymtl.ca>
2015-11-13 15:19       ` Help-lttng-ust-pyhton Jonathan Rajotte Julien
     [not found]       ` <5645FF8C.2080401@efficios.com>
2015-11-13 15:46         ` Help-lttng-ust-pyhton Yves Junior Bationo
     [not found]         ` <20151113154637.Horde.Sp6jqlYe3x3lcfEfnNAF7wW@www.imp.polymtl.ca>
2015-11-13 16:21           ` Help-lttng-ust-pyhton Jonathan Rajotte
     [not found]           ` <CAF4oYfG6VaGS62MF_D83ojtZVbUo9+7KXr7Y+yUeVsY7eCb-BA@mail.gmail.com>
2015-11-13 18:02             ` Help-lttng-ust-pyhton Yves Junior Bationo
     [not found]             ` <20151113180259.Horde.tR4p6Ox7ACO6FQd18AjFiJA@www.imp.polymtl.ca>
2015-11-25 16:29               ` Help-lttng-ust-pyhton Yves Junior Bationo
2015-11-06 22:59 Help-lttng-ust-pyhton Yves Junior Bationo

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.