Not sure if this is the /right/ way to link in the new btt/btt_plot.py stuff into /usr/local/bin - any Makefile Experts out there? :-) Pushed out a new btt_plot.py - uses matplotlib to generate plots straight from the data generated by btt: btt -Q ==> btt_plot_aqd.py btt -l ==> btt_plot_d2c.py btt -q ==> btt_plot_q2c.py btt -z ==> btt_plot_q2d.py btt -B ==> btt_plot_bnos.py or, if you do: btt -Q -l -q -z -B you can use btt_plot.py -A Sample plots include: http://free.linux.hp.com/~adb/2009_03_12/aqd.png http://free.linux.hp.com/~adb/2009_03_12/d2c.png http://free.linux.hp.com/~adb/2009_03_12/q2c.png http://free.linux.hp.com/~adb/2009_03_12/q2d.png http://free.linux.hp.com/~adb/2009_03_12/bnos_105,000.png (Jens: I did /not/ push this Makefile change, as I think it looks kinda clunky - it works, but perhaps you know how to do this better. I /did/ push the btt/btt_plot.py stuff out...) Alan
>From 5dfc98561dee87ae775c66798e4c9a138aa03769 Mon Sep 17 00:00:00 2001 From: Alan D. Brunelle <alan.brunelle@xxxxxx> Date: Thu, 12 Mar 2009 10:32:49 -0400 Subject: [PATCH] Link new btt/btt_plot.py to installation Signed-off-by: Alan D. Brunelle <alan.brunelle@xxxxxx> --- Makefile | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 623b84b..28ca759 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ LIBS = -lpthread SCRIPTS = btrace ALL = $(PROGS) $(SCRIPTS) btt/btt btreplay/btrecord btreplay/btreplay \ - btt/bno_plot.py + btt/bno_plot.py btt/btt_plot.py all: $(ALL) @@ -58,6 +58,13 @@ bindir = $(prefix)/bin mandir = $(prefix)/man RPMBUILD = rpmbuild TAR = tar +LN = ln + +BTTPLOT = $(DESTDIR)$(bindir)/btt_plot.py +AQDPLOT = $(DESTDIR)$(bindir)/btt_plot_aqd.py +Q2DPLOT = $(DESTDIR)$(bindir)/btt_plot_q2d.py +D2CPLOT = $(DESTDIR)$(bindir)/btt_plot_d2c.py +Q2CPLOT = $(DESTDIR)$(bindir)/btt_plot_q2c.py export prefix INSTALL TAR @@ -85,6 +92,12 @@ install: all $(INSTALL) -m 644 doc/*.1 $(DESTDIR)$(mandir)/man1 $(INSTALL) -m 644 doc/*.8 $(DESTDIR)$(mandir)/man8 + -rm -f $(AQDPLOT) $(Q2DPLOT) $(D2CPLOT) $(Q2CPLOT) + $(LN) -s $(BTTPLOT) $(AQDPLOT) + $(LN) -s $(BTTPLOT) $(Q2DPLOT) + $(LN) -s $(BTTPLOT) $(D2CPLOT) + $(LN) -s $(BTTPLOT) $(Q2CPLOT) + ifneq ($(wildcard .depend),) include .depend endif -- 1.5.6.3