~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/utils/plotNLT.pl

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl
 
2
#takes a test and a program from a dp and produces a gnuplot script
 
3
#use like perl plotNLT.pl password Programs/MultiSource/Benchmarks/ASCI_Purple/SMG2000/smg2000 llc
 
4
 
 
5
use DBI;
 
6
 
 
7
# database information
 
8
$db="llvmalpha";
 
9
$host="localhost";
 
10
$userid="llvmdbuser";
 
11
$passwd=shift @ARGV;
 
12
$connectionInfo="dbi:mysql:$db;$host";
 
13
 
 
14
# make connection to database
 
15
$dbh = DBI->connect($connectionInfo,$userid,$passwd) or die DBI->errstr;
 
16
 
 
17
 
 
18
$count = @ARGV / 2;
 
19
 
 
20
print "set xdata time\n";
 
21
print 'set timefmt "%Y-%m-%d"';
 
22
print "\nplot";
 
23
for ($iter = 0; $iter < $count; $iter++) {
 
24
  if ($iter)
 
25
    { print ","; }
 
26
  print " '-' using 1:2 with lines";
 
27
}
 
28
 
 
29
print "\n";
 
30
 
 
31
for ($iter = 0; $iter < $count; $iter++) {
 
32
 
 
33
  $prog = shift @ARGV;
 
34
  $test = shift @ARGV;
 
35
 
 
36
  $query = "Select RUN, VALUE from Tests where TEST = '$test' AND NAME = '$prog' ORDER BY RUN";
 
37
  #print "\n$query\n";
 
38
  
 
39
  my $sth = $dbh->prepare( $query) || die "Can't prepare statement: $DBI::errstr";;
 
40
  
 
41
  my $rc = $sth->execute or die DBI->errstr;
 
42
  
 
43
  while(($da,$v) = $sth->fetchrow_array)
 
44
    {
 
45
      print "$da $v\n";
 
46
    }
 
47
  
 
48
  print "e\n";
 
49
}
 
50
 
 
51
 
 
52
# disconnect from database
 
53
$dbh->disconnect;