Changeset 99ee456 for tools/traceends/tracetopends
- Timestamp:
- 12/03/18 13:30:46 (2 years ago)
- Branches:
- develop
- Children:
- e86a0c6
- Parents:
- 50e9c6b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/traceends/tracetopends
re19ada0 r99ee456 12 12 filter="" 13 13 addr="v4" 14 threads=4 15 ignoresource="" 16 ignoredest="" 14 17 15 while getopts " f:sdn:bapA:h" opt; do18 while getopts "t:f:sdn:bapA:hSD" opt; do 16 19 case $opt in 17 20 A) … … 21 24 filter=$OPTARG 22 25 ;; 26 S) 27 ignoresource="-S" 28 ;; 29 D) 30 ignoredest="-D" 31 ;; 23 32 s) 24 33 send=1 … … 27 36 send=0 28 37 ;; 38 t) 39 threads=$OPTARG 40 ;; 29 41 n) 30 42 top_count=$OPTARG … … 118 130 119 131 if [ "$filter" = "" ]; then 120 traceends - A $addr$@ | { trap '' int; sort -n -k $sort_index -r -s; } | { trap '' int; head -n $top_count; }132 traceends -t $threads -A $addr $ignoredest $ignoresource $@ | { trap '' int; sort -n -k $sort_index -r -s; } | { trap '' int; head -n $top_count; } 121 133 else 122 traceends - A $addr -f "$filter"$@ | { trap '' int; sort -n -k $sort_index -r -s; } | { trap '' int; head -n $top_count; }134 traceends -t $threads -A $addr -f "$filter" $ignoredest $ignoresource $@ | { trap '' int; sort -n -k $sort_index -r -s; } | { trap '' int; head -n $top_count; } 123 135 fi 124 136
Note: See TracChangeset
for help on using the changeset viewer.