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() {
Usage: $0 QDISC_OPT [CLIENT_OPTS] BOARD
QDISC_OPTS: (-e delta [-o etf_offset] | -p)
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,
net_dev_xmit, net_dev_xmit_timeout
ENDUSAGE
......@@ -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_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
b )
client_options+=" -b"
......@@ -62,15 +62,18 @@ while getopts "bd:e:o:ghi:ptTP:E:" opt; do
use_timestamps=1
client_options+=" -t"
;;
T )
use_tracer=1
client_options+=" -T"
B )
tracecmd_opts+=" -m ${OPTARG} -b ${OPTARG}"
;;
E )
tracecmd_events=${OPTARG}
;;
P )
tracecmd_opts+=" -p ${OPTARG}"
;;
E )
tracecmd_events=${OPTARG}
T )
use_tracer=1
client_options+=" -T"
;;
* )
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