[lttng-dev] Minor documentation issue with 2.4.0

Amit Margalit AMITM at il.ibm.com
Wed Apr 2 05:23:42 EDT 2014


Hello,

I ran a command that included an error, and noticed that 'lttng' mentions 
-j in --buffers-pid and --buffers-uid, but nowhere else:

# /usr/bin/lttng enable-channel -u    
Error: Missing channel name.

usage: lttng enable-channel NAME[,NAME2,...] (-u | -k) [OPTIONS]

Options:
  -h, --help               Show this help
      --list-options       Simple listing of options
  -s, --session NAME       Apply to session name
  -k, --kernel             Apply to the kernel tracer
  -u, --userspace          Apply to the user-space tracer

Channel options:
      --discard            Discard event when buffers are full (default)
      --overwrite          Flight recorder mode
      --subbuf-size SIZE   Subbuffer size in bytes {+k,+M,+G}
                               (default UST uid: 131072, UST pid: 4096, 
kernel: 262144, metadata: 4096)
                               Rounded up to the next power of 2.
      --num-subbuf NUM     Number of subbufers
                               (default UST uid: 4, UST pid: 4, kernel: 4, 
metadata: 2)
                               Rounded up to the next power of 2.
      --switch-timer USEC  Switch timer interval in usec
                               (default UST uid: 0, UST pid: 0, kernel: 0, 
metadata: 0)
      --read-timer USEC    Read timer interval in usec.
                               (default UST uid: 0, UST pid: 0, kernel: 
200000, metadata: 0)
      --output TYPE        Channel output type (Values: mmap, splice)
                               (default UST uid: mmap, UST pid: mmap, 
kernel: splice, metadata: mmap)
      --buffers-uid        Use per UID buffer (-u/-j only)
      --buffers-pid        Use per PID buffer (-u/-j only)
      --buffers-global     Use shared buffer for the whole system (-k 
only)
  -C, --tracefile-size SIZE
                           Maximum size of each tracefile within a stream 
(in bytes). 0 means unlimited.
                               (default: 0)
  -W, --tracefile-count COUNT
                           Used in conjunction with -C option, this will 
limit the number
                           of files created to the specified count. 0 
means unlimited.
                               (default: 0)

Error: Command error

You can see these 2 lines:

      --buffers-uid        Use per UID buffer (-u/-j only)
      --buffers-pid        Use per PID buffer (-u/-j only)

But -j is not explained above.

Amit Margalit
IBM XIV - Storage Reinvented
XIV-NAS Development Team
Tel. 03-689-7774
Fax. 03-689-7230
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140402/7609c542/attachment-0001.html>


More information about the lttng-dev mailing list