Commit 3ac9a1a7 authored by Joanne Hugé's avatar Joanne Hugé

Add net events to trace cmd in server script

parent 1873d84d
...@@ -24,6 +24,7 @@ server_options="-a -p 99" ...@@ -24,6 +24,7 @@ server_options="-a -p 99"
make_opts="" make_opts=""
ip="10.100.21." ip="10.100.21."
tcpdump_interval=1000000 tcpdump_interval=1000000
tracecmd_events="-e irq -e sched -e xdp -e net -e page_pool -e preemptirq -e napi"
while getopts "b:htx:X:d:i:g:I:T:GE:" opt; do while getopts "b:htx:X:d:i:g:I:T:GE:" opt; do
case "${opt}" in case "${opt}" in
...@@ -111,7 +112,6 @@ else ...@@ -111,7 +112,6 @@ else
cd $script_dir/../packet-exchange/build;make $make_opts server;cd $script_dir cd $script_dir/../packet-exchange/build;make $make_opts server;cd $script_dir
if [ -n "${enable_xdp_events}" ]; then if [ -n "${enable_xdp_events}" ]; then
tracecmd_events="-e irq -e sched -e xdp"
echo "trace-cmd record $tracecmd_events $script_dir/../packet-exchange/build/server $server_options"; echo "trace-cmd record $tracecmd_events $script_dir/../packet-exchange/build/server $server_options";
trace-cmd record $tracecmd_events $script_dir/../packet-exchange/build/server $server_options; trace-cmd record $tracecmd_events $script_dir/../packet-exchange/build/server $server_options;
elif [ -z "${use_histogram}" ]; then elif [ -z "${use_histogram}" ]; then
......
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