Skip to content

Commit

Permalink
some fixes more
Browse files Browse the repository at this point in the history
  • Loading branch information
anastop committed May 4, 2015
1 parent ad36794 commit f3d9bb7
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 329 deletions.
1 change: 1 addition & 0 deletions emulators/cbench/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# terms of the Eclipse Public License v1.0 which accompanies this distribution,
# and is available at http://www.eclipse.org/legal/epl-v10.html


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

echo "Building Cbench generator."
Expand Down
1 change: 0 additions & 1 deletion emulators/mt_cbench/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
echo "Building Cbench generator."
echo "Building oflops/configure file"
cd $SCRIPT_DIR/oflops
find . -name '*.lo' | xargs rm -f
./boot.sh
./configure --with-openflow-src-dir=../openflow/
make

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env perl

#
# Process the output log for oflops when the openflow_packet_in
# module is used. The script will provide the per packet delay
# for each packet.
#

if(@ARGV < 1) {
print "Please provide as a param the file to be processed\n";
exit 1;
}

my $file = $ARGV[0];

if(! -e $file){
print "Input file not found\n";
exit 1;
}

open(FILE, "grep OFPT_PACKET_IN_MSG $file | ");

while(!eof(FILE)) {
$_ = readline(FILE);
chomp();
my @data = split(/:/);
print "$data[4] ".int(($data[3]-$data[2])*(10**6)) ."\n"
};

close(FILE);

This file was deleted.

This file was deleted.

This file was deleted.

41 changes: 0 additions & 41 deletions emulators/mt_cbench/oflops/liboflops_test.la

This file was deleted.

0 comments on commit f3d9bb7

Please sign in to comment.