All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alan D. Brunelle" <Alan.Brunelle@hp.com>
To: linux-btrace@vger.kernel.org
Subject: [PATCH]  Link new btt/btt_plot.py to installation
Date: Thu, 12 Mar 2009 14:42:30 +0000	[thread overview]
Message-ID: <49B91F56.8020706@hp.com> (raw)

[-- 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


                 reply	other threads:[~2009-03-12 14:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49B91F56.8020706@hp.com \
    --to=alan.brunelle@hp.com \
    --cc=linux-btrace@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.