From cac3f7817e7022215ab8fdb91daa70bfeddae089 Mon Sep 17 00:00:00 2001 From: travisutk Date: Tue, 20 Apr 2010 01:43:24 +0000 Subject: [PATCH] Glitch points dump. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@460 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/GoodFETGlitch.py | 9 +++++++-- client/goodfet.glitch | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/client/GoodFETGlitch.py b/client/GoodFETGlitch.py index 9924107..50abc2c 100644 --- a/client/GoodFETGlitch.py +++ b/client/GoodFETGlitch.py @@ -38,7 +38,7 @@ title "Success", \ class GoodFETGlitch(GoodFET): def __init__(self, *args, **kargs): - print "Initializing GoodFET Glitcher." + print "# Initializing GoodFET Glitcher." #Database connection w/ 30 second timeout. self.db=sqlite3.connect("glitch.db",30000); @@ -146,7 +146,12 @@ class GoodFETGlitch(GoodFET): g('set term png'); g('set output "timevcc.png"'); g(script_timevcc); - + def points(self): + c=self.db.cursor(); + c.execute("select time,vcc,gnd,glitchcount,count from glitches where lock=0 and count>0;"); + print "time vcc gnd glitchcount count"; + for r in c: + print "%i %i %i %i %i" % r; #GnuPlot sucks for large sets. Switch to viewpoints soon. # sqlite3 glitch.db "select time,vcc,count from glitches where count=0" | vp -l -d "|" -I diff --git a/client/goodfet.glitch b/client/goodfet.glitch index 823b8de..c1b0cea 100755 --- a/client/goodfet.glitch +++ b/client/goodfet.glitch @@ -19,6 +19,7 @@ if(len(sys.argv)==1): print "%s avr explore" % sys.argv[0]; print "%s avr graph" % sys.argv[0]; print "%s avr graphx11" % sys.argv[0]; + print "%s avr points" % sys.argv[0]; print """ This populates a database, glitch.db, with a record of all attempted glitches. Graphs can then be generated from the results, allowing @@ -41,6 +42,9 @@ if(sys.argv[2]=="graphx11"): if(sys.argv[2]=="graph"): glitcher.graph(); exit(); +if(sys.argv[2]=="points"): + glitcher.points(); + exit(); if(sys.argv[2]=="crunch"): glitcher.crunch(); -- 2.20.1