X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=utils%2Flttngtrace;h=5486d9059cff05db09262ed636bb802515795a55;hp=835cb8d4b1fe308fc26bb0d47dc043370bf168d7;hb=26e46ddee86d2de5c88997bf8362a6f27a0a2ff9;hpb=86b6b97c6bc839085cc100c7e656cadd597c37eb diff --git a/utils/lttngtrace b/utils/lttngtrace index 835cb8d..5486d90 100755 --- a/utils/lttngtrace +++ b/utils/lttngtrace @@ -14,11 +14,12 @@ destroy() if test "$1" = "-h" -o "$1" = "--help"; then echo "usage : $0 [OPTIONS] [program [program-options]]" echo "OPTIONS :" - echo " -f, --child Follow threads associated with selected PIDs" - echo " -p, --pid Comma-separated list of PIDs to display (in addition to the executed program)" - echo " -a, --all In textdump mode, display all events but write in bold the processes we are interested in (-f and -p)" - echo " -k, --kprobes kprobes to insert (same format as lttng enable-event, can be repeated)" - echo " -o, --output In textdump, output the log in " + echo " -f Follow threads associated with selected PIDs" + echo " -p Comma-separated list of PIDs to display (in addition to the eventual executed program)" + echo " -n Comma-separated list of procnames to display (in addition to the eventual executed program)" + echo " -a In textdump mode, display all events but write in bold the processes we are interested in (-f and -p)" + echo " -k kprobes to insert (same format as lttng enable-event, can be repeated)" + echo " -o In textdump, output the log in " exit 0 fi @@ -103,6 +104,10 @@ while [ "$1" != "" ]; do shift LTTNGTOPARGS="$LTTNGTOPARGS -o $1" shift + elif test "$1" = "-n"; then + shift + LTTNGTOPARGS="$LTTNGTOPARGS -n $1" + shift elif test "${1:0:1}" = "-"; then LTTNGTOPARGS="$LTTNGTOPARGS $1" shift