Filter based on procname
[lttngtop.git] / utils / lttngtrace
index 835cb8d4b1fe308fc26bb0d47dc043370bf168d7..5486d9059cff05db09262ed636bb802515795a55 100755 (executable)
@@ -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 <filename>  In textdump, output the log in <filename>"
+       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 <filename>  In textdump, output the log in <filename>"
        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
This page took 0.022801 seconds and 4 git commands to generate.