Commit d9a21ee7 authored by Joanne Hugé's avatar Joanne Hugé

Add buffer size option to tracecmd in run-client

Change -b to -m in tracecmd
parent 25c34527
...@@ -7,7 +7,7 @@ usage() { ...@@ -7,7 +7,7 @@ usage() {
Usage: $0 QDISC_OPT [CLIENT_OPTS] BOARD Usage: $0 QDISC_OPT [CLIENT_OPTS] BOARD
QDISC_OPTS: (-e delta [-o etf_offset] | -p) QDISC_OPTS: (-e delta [-o etf_offset] | -p)
CLIENT_OPTS: -bgt -i INTERVAL -d TX_BUF_LEN [TRACE_OPTS] CLIENT_OPTS: -bgt -i INTERVAL -d TX_BUF_LEN [TRACE_OPTS]
TRACE_OPTS: [-T -P TRACER -E EVENTS] TRACE_OPTS: [-T -P TRACER -E EVENTS -B SIZE]
default tracer opts: irq, sched, net_dev_start_xmit, default tracer opts: irq, sched, net_dev_start_xmit,
net_dev_xmit, net_dev_xmit_timeout net_dev_xmit, net_dev_xmit_timeout
ENDUSAGE ENDUSAGE
...@@ -26,7 +26,7 @@ etf_offset=500 ...@@ -26,7 +26,7 @@ etf_offset=500
tracecmd_events="-e irq -e sched -e net_dev_start_xmit -e net_dev_xmit -e net_dev_xmit_timeout" tracecmd_events="-e irq -e sched -e net_dev_start_xmit -e net_dev_xmit -e net_dev_xmit_timeout"
tracecmd_opts="" tracecmd_opts=""
while getopts "bd:e:o:ghi:ptTP:E:" opt; do while getopts "bd:e:o:ghi:ptB:E:P:T" opt; do
case "${opt}" in case "${opt}" in
b ) b )
client_options+=" -b" client_options+=" -b"
...@@ -62,15 +62,18 @@ while getopts "bd:e:o:ghi:ptTP:E:" opt; do ...@@ -62,15 +62,18 @@ while getopts "bd:e:o:ghi:ptTP:E:" opt; do
use_timestamps=1 use_timestamps=1
client_options+=" -t" client_options+=" -t"
;; ;;
T ) B )
use_tracer=1 tracecmd_opts+=" -m ${OPTARG} -b ${OPTARG}"
client_options+=" -T" ;;
E )
tracecmd_events=${OPTARG}
;; ;;
P ) P )
tracecmd_opts+=" -p ${OPTARG}" tracecmd_opts+=" -p ${OPTARG}"
;; ;;
E ) T )
tracecmd_events=${OPTARG} use_tracer=1
client_options+=" -T"
;; ;;
* ) * )
usage usage
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment