Project

General

Profile

Bug #487

Per UID buffer: Can not see any data being logged

Added by Tan le tran about 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Critical
Target version:
-
Start date:
03/27/2013
Due date:
% Done:

100%

Estimated time:

Description

Problem Description:
====================
 * After the session is activated and instrumented app launched, no
   log can be obtained. Only metadata file contain "seem to be valid" data.
   Babeltrace the session directory gives nothing.

Is problem reproducible ?
=========================
  * yes 100%

How to reproduce (if reproducible):
===================================
  1)_
      export TC=ses1
      ps -ef |egrep 'lttng'
      netstat -etanp | head -n 2 ; netstat -etanp |egrep lttng
      lttng-relayd  -C tcp://0.0.0.0:53000 -D tcp://0.0.0.0:53001  -o /cluster/temp/log/$TC &
      netstat -etanp | head -n 2 ; netstat -etanp |egrep lttng
      time lttng list
      time lttng create $TC -U net://192.168.0.1:53000:53001/./
      time lttng list
      sleep 1
      time lttng enable-channel -u --buffers-uid chan1
      sleep 1
      time lttng enable-event -s $TC "com*"  -u -c chan1
      sleep 1
      time lttng list $TC
       sleep 1
       time lttng start;
       sleep 1
       time lttng list
  2)_ Launch the application 
       /home/test_apps/TestApp_type1 50000 np &
       lttng list -u
           #-- shows that the instr app has registered and sessionD sees all their tracepoints
           #   all tracepoints start with com_....
  3)_ dir ses1/SC-1/ust/uid/0/64-bit/   (current directory is : /cluster/temp/log/)
        total 0
        -rwxr-xr-x 1 root root 0 Mar 26 17:54 metadata
        -rwxr-xr-x 1 root root 0 Mar 26 17:54 chan1_3
        -rwxr-xr-x 1 root root 0 Mar 26 17:54 chan1_2
        -rwxr-xr-x 1 root root 0 Mar 26 17:54 chan1_1
        -rwxr-xr-x 1 root root 0 Mar 26 17:54 chan1_0

      Repeat the above command  again and again, but still see all filesize 0.
      The above instr app should produce about 10000 events per sec, and
      we are expecting to get about 600KB/s of data.

  4)_ lttng stop
      lttng destroy
      pkill relayd

  5)_ dir ses1/SC-1/ust/uid/0/64-bit/
        total 44
        -rwxr-xr-x 1 root root 12288 Mar 26 17:55 metadata
        -rwxr-xr-x 1 root root  8192 Mar 26 17:55 chan1_3
        -rwxr-xr-x 1 root root  8192 Mar 26 17:55 chan1_2
        -rwxr-xr-x 1 root root  8192 Mar 26 17:55 chan1_1
        -rwxr-xr-x 1 root root  8192 Mar 26 17:55 chan1_0

   6)_ more ses1/SC-1/ust/uid/0/64-bit/metadata    #-- shows that the tracepoints are present

   7)_ babeltrace ses1/SC-1/ust/uid/0/64-bit/
       babeltrace ses1/SC-1/ust/uid/0/64-bit/
       babeltrace ses1/SC-1/ust/uid/0/
       babeltrace ses1/SC-1/ust/
       babeltrace ses1/SC-1/
       babeltrace ses1/

       #--- get nothing in printout

Commit used:
============
  userspace   : d107390 (HEAD, origin/master, origin/HEAD, globalBuffer) Add tab to output in ...
  lttng-ust   : e2ad3b4 (HEAD, origin/master, origin/HEAD, globalBuffer) Add demo README
  lttng-tools : 9f9ee9c (HEAD, origin/master, origin/HEAD, globalBuffer) Fix: UST context activation
  babeltrace  : c99b191 (HEAD, tag: v1.1.0) Version 1.1.0

Any other information:
======================
- The above terminal log are attached.
- The corresponding session directory is also attached


Files

Terminal.log (38.2 KB) Terminal.log Terminal log when TC is executed Tan le tran, 03/27/2013 11:46 AM
ses1.tar (1.94 KB) ses1.tar ses1 directory after the session has been destroyed Tan le tran, 03/27/2013 11:46 AM
ses9_terminal_log.log (21.2 KB) ses9_terminal_log.log log file for session "ses9" Tan le tran, 03/27/2013 03:20 PM
ses9_sessionD_verbose.log (141 KB) ses9_sessionD_verbose.log Corresponding "sessiond -vvv" while ses9 is run Tan le tran, 03/27/2013 03:20 PM
TestApp_type1.tar (790 KB) TestApp_type1.tar Tarball of TestApp_type1 Tan le tran, 03/27/2013 03:20 PM
ses13_withUST_DEBUG.log (40.8 KB) ses13_withUST_DEBUG.log terminal log Tan le tran, 03/27/2013 05:44 PM
ses13_sessionD_consumerD_verbose.log (1.21 MB) ses13_sessionD_consumerD_verbose.log Output of sessiond -vvv --verbose-consumer Tan le tran, 03/27/2013 05:44 PM

Also available in: Atom PDF