From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alan D. Brunelle" Date: Thu, 12 Mar 2009 14:42:30 +0000 Subject: [PATCH] Link new btt/btt_plot.py to installation Message-Id: <49B91F56.8020706@hp.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------080502070304080805080707" List-Id: To: linux-btrace@vger.kernel.org This is a multi-part message in MIME format. --------------080502070304080805080707 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --------------080502070304080805080707 Content-Type: text/x-diff; name="0001-Link-new-btt-btt_plot.py-to-installation.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0001-Link-new-btt-btt_plot.py-to-installation.patch" >From 5dfc98561dee87ae775c66798e4c9a138aa03769 Mon Sep 17 00:00:00 2001 From: Alan D. Brunelle 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 --- 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 --------------080502070304080805080707--