Skip to content

Commit f3d9bb7

Browse files
committed
some fixes more
1 parent ad36794 commit f3d9bb7

File tree

11 files changed

+31
-329
lines changed

11 files changed

+31
-329
lines changed

emulators/cbench/build.sh

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# terms of the Eclipse Public License v1.0 which accompanies this distribution,
77
# and is available at http://www.eclipse.org/legal/epl-v10.html
88

9+
910
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
1011

1112
echo "Building Cbench generator."

emulators/mt_cbench/build.sh

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
1212
echo "Building Cbench generator."
1313
echo "Building oflops/configure file"
1414
cd $SCRIPT_DIR/oflops
15-
find . -name '*.lo' | xargs rm -f
1615
./boot.sh
1716
./configure --with-openflow-src-dir=../openflow/
1817
make

emulators/mt_cbench/oflops/example_modules/oflops_debug/liboflops_debug.la

-41
This file was deleted.

emulators/mt_cbench/oflops/example_modules/openflow_action_install/libopenflow_action_install.la

-41
This file was deleted.

emulators/mt_cbench/oflops/example_modules/openflow_action_measurement/libopenflow_action_measurement.la

-41
This file was deleted.

emulators/mt_cbench/oflops/example_modules/openflow_flow_dump_test/libopenflow_flow_dump_test.la

-41
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/env perl
2+
3+
#
4+
# Process the output log for oflops when the openflow_packet_in
5+
# module is used. The script will provide the per packet delay
6+
# for each packet.
7+
#
8+
9+
if(@ARGV < 1) {
10+
print "Please provide as a param the file to be processed\n";
11+
exit 1;
12+
}
13+
14+
my $file = $ARGV[0];
15+
16+
if(! -e $file){
17+
print "Input file not found\n";
18+
exit 1;
19+
}
20+
21+
open(FILE, "grep OFPT_PACKET_IN_MSG $file | ");
22+
23+
while(!eof(FILE)) {
24+
$_ = readline(FILE);
25+
chomp();
26+
my @data = split(/:/);
27+
print "$data[4] ".int(($data[3]-$data[2])*(10**6)) ."\n"
28+
};
29+
30+
close(FILE);

emulators/mt_cbench/oflops/example_modules/openflow_packet_in/libof_packet_in.la

-41
This file was deleted.

emulators/mt_cbench/oflops/example_modules/openflow_port_status/libof_port_stat.la

-41
This file was deleted.

emulators/mt_cbench/oflops/example_modules/snmp_cpu/libof_snmp_cpu.la

-41
This file was deleted.

emulators/mt_cbench/oflops/liboflops_test.la

-41
This file was deleted.

0 commit comments

Comments
 (0)