From 74ea29deabd78d4dfd02261fba82153b4a55bc6e Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 27 Mar 2012 21:10:50 +0200 Subject: [PATCH] devel: removed devel folder Removed devel folder, since it is not really related to us anymore. All those things can be found elsewhere on the net. Signed-off-by: Daniel Borkmann --- contrib/devel/analysis/findstatic.pl | 69 ------------------------------------ contrib/devel/pktgen/conf-1-1.sh | 56 ----------------------------- contrib/devel/vim/vim80warn.vim | 3 -- 3 files changed, 128 deletions(-) delete mode 100644 contrib/devel/analysis/findstatic.pl delete mode 100644 contrib/devel/pktgen/conf-1-1.sh delete mode 100644 contrib/devel/vim/vim80warn.vim diff --git a/contrib/devel/analysis/findstatic.pl b/contrib/devel/analysis/findstatic.pl deleted file mode 100644 index 188c05b4..00000000 --- a/contrib/devel/analysis/findstatic.pl +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/perl - -# Andrew Tridgell -# Daniel Borkmann - -# Distributed under the terms of the GNU General Public License v2 or later. - -use strict; -use warnings; - -die "Usage: findstatic.pl \`find . -name \"*.o\"\`\n" if ($#ARGV == -1); - -my $saved_delim = $/; -undef $/; - -my $syms = `nm -o @ARGV`; -$/ = $saved_delim; - -my @lines = split(/\n/s, $syms); - -my %def; -my %undef; -my %stype; - -my %typemap = ( - "T" => "function", - "C" => "uninitialised variable", - "D" => "initialised variable", -); - -for (my $i = 0; $i <= $#lines; ++$i) { - my $line = $lines[$i]; - if ($line =~ /(.*):[a-f0-9]* ([TCD]) (.*)/) { - my $fname = $1; - my $symbol = $3; - push(@{$def{$fname}}, $symbol); - $stype{$symbol} = $2; - } - if ($line =~ /(.*):\s* U (.*)/) { - my $fname = $1; - my $symbol = $2; - push(@{$undef{$fname}}, $symbol); - } -} - -foreach my $f (keys %def) { - my $found_one = 0; - print "Checking $f\n"; - foreach my $s (@{$def{$f}}) { - my $found = 0; - foreach my $f2 (keys %undef) { - if ($f2 ne $f) { - foreach my $s2 (@{$undef{$f2}}) { - if ($s2 eq $s) { - $found = 1; - $found_one = 1; - } - } - } - } - if ($found == 0) { - my $t = $typemap{$stype{$s}}; - print " '$s' is unique to $f ($t)\n"; - } - } - if ($found_one == 0) { - print " all symbols in '$f' are unused (main program?)\n"; - } -} diff --git a/contrib/devel/pktgen/conf-1-1.sh b/contrib/devel/pktgen/conf-1-1.sh deleted file mode 100644 index 773c1340..00000000 --- a/contrib/devel/pktgen/conf-1-1.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -modprobe pktgen -echo "pktgen module loaded" - -function pgset() { - local result - echo $1 > $PGDEV - result=`cat $PGDEV | fgrep "Result: OK:"` - if [ "$result" = "" ]; then - cat $PGDEV | fgrep Result: - fi -} - -function pg() { - echo inject > $PGDEV - cat $PGDEV -} - -# Config Start Here -PGDEV=/proc/net/pktgen/kpktgend_0 -echo "Removing all devices" -pgset "rem_device_all" -echo "Adding eth1" -pgset "add_device eth1" -echo "Setting max_before_softirq 10000" -pgset "max_before_softirq 10000" - -# device config -CLONE_SKB="clone_skb 1000000" -# NIC adds 4 bytes CRC -PKT_SIZE="pkt_size 1400" -# COUNT 0 means forever -COUNT="count 0" -#COUNT="count 10000000" -# delay 0 means maximum speed. -DELAY="delay 0" - -PGDEV=/proc/net/pktgen/eth1 -echo "Configuring $PGDEV" -pgset "$COUNT" -pgset "$CLONE_SKB" -pgset "$PKT_SIZE" -pgset "$DELAY" -pgset "dst 10.10.10.1" -pgset "dst_mac 00:09:FA:10:E2:F7" - -# Time to run -PGDEV=/proc/net/pktgen/pgctrl - -echo "Running... ctrl^C to stop" -pgset "start" -echo "Done" - -# Result can be vieved in /proc/net/pktgen/eth1 - diff --git a/contrib/devel/vim/vim80warn.vim b/contrib/devel/vim/vim80warn.vim deleted file mode 100644 index 3cab62d0..00000000 --- a/contrib/devel/vim/vim80warn.vim +++ /dev/null @@ -1,3 +0,0 @@ -" Copy into ~/.vim/plugin directory -:au BufWinEnter * let w:m1=matchadd('Search', '\%<81v.\%>77v', -1) -:au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1) -- 2.11.4.GIT