linux-btrace.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]  Link new btt/btt_plot.py to installation
@ 2009-03-12 14:42 Alan D. Brunelle
  0 siblings, 0 replies; only message in thread
From: Alan D. Brunelle @ 2009-03-12 14:42 UTC (permalink / raw)
  To: linux-btrace

[-- Attachment #1: Type: text/plain, Size: 913 bytes --]

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

[-- Attachment #2: 0001-Link-new-btt-btt_plot.py-to-installation.patch --]
[-- Type: text/x-diff, Size: 1422 bytes --]

From 5dfc98561dee87ae775c66798e4c9a138aa03769 Mon Sep 17 00:00:00 2001
From: Alan D. Brunelle <alan.brunelle@hp.com>
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@hp.com>
---
 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-12 14:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-12 14:42 [PATCH] Link new btt/btt_plot.py to installation Alan D. Brunelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).