All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Zanussi <tom.zanussi@intel.com>
To: "Wold, Saul" <saul.wold@intel.com>
Cc: "poky@yoctoproject.org" <poky@yoctoproject.org>
Subject: Re: [PATCH 1/1] systemtap: new package
Date: Fri, 14 Jan 2011 00:55:02 -0600	[thread overview]
Message-ID: <1294988102.28996.19.camel@elmorro> (raw)
In-Reply-To: <4D2FE367.4030204@intel.com>

On Thu, 2011-01-13 at 21:47 -0800, Wold, Saul wrote:
> On 01/13/2011 11:55 AM, Tom Zanussi wrote:
> > Add systemtap, a general-purpose script-directed dynamic tracing and
> > performance analysis tool for Linux.
> >
> > Signed-off-by: Tom Zanussi<tom.zanussi@intel.com>
> > ---
> >   .../conf/distro/include/poky-default-revisions.inc |    1 +
> >   meta/recipes-core/tasks/task-poky-tools.bb         |    1 +
> >   meta/recipes-kernel/systemtap/systemtap_git.bb     |   28 ++++++++++++++++++++
> >   3 files changed, 30 insertions(+), 0 deletions(-)
> >   create mode 100644 meta/recipes-kernel/systemtap/systemtap_git.bb
> >
> > diff --git a/meta/conf/distro/include/poky-default-revisions.inc b/meta/conf/distro/include/poky-default-revisions.inc
> > index 6b98091..c07e2c7 100644
> > --- a/meta/conf/distro/include/poky-default-revisions.inc
> > +++ b/meta/conf/distro/include/poky-default-revisions.inc
> > @@ -165,6 +165,7 @@ SRCREV_pn-screenshot ??= "292"
> >   SRCREV_pn-settings-daemon ??= "2059"
> >   SRCREV_pn-swabber-native ??= "a0792390c5d6d5a5bade7ab155c80eef3f30fa52"
> >   SRCREV_pn-sysprof ??= "38a6af1f0a45e528fd2842983da71e0f23c70d6a"
> > +SRCREV_pn-systemtap ??= "4ab3a1863bf4f472acae7a809bf2b38d91658aa8"
> >   SRCREV_pn-table ??= "4b267533ce16656cba4104fc39dc12709c1bdddf"
> >   SRCREV_pn-tasks ??= "ea52d46d691c5fce4473ea4e24a35411381f3a65"
> >   TRACECMDREV ?= "6c696cec3f264a9399241b6e648f58bc97117d49"
> > diff --git a/meta/recipes-core/tasks/task-poky-tools.bb b/meta/recipes-core/tasks/task-poky-tools.bb
> > index 60a95f9..c23a3fe 100644
> > --- a/meta/recipes-core/tasks/task-poky-tools.bb
> > +++ b/meta/recipes-core/tasks/task-poky-tools.bb
> > @@ -51,6 +51,7 @@ RRECOMMENDS_task-poky-tools-profile = "\
> >       kernel-module-oprofile \
> >       blktrace \
> >       sysprof \
> > +    systemtap \
> >       "
> >
> >   #    exmap-console
> > diff --git a/meta/recipes-kernel/systemtap/systemtap_git.bb b/meta/recipes-kernel/systemtap/systemtap_git.bb
> > new file mode 100644
> > index 0000000..f28c946
> > --- /dev/null
> > +++ b/meta/recipes-kernel/systemtap/systemtap_git.bb
> > @@ -0,0 +1,28 @@
> > +DESCRIPTION = "SystemTap - script-directed dynamic tracing and performance analysis tool for Linux"
> > +LICENSE = "GPLv2"
> > +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
> > +
> > +DEPENDS = "elfutils"
> > +
> > +PR = r0
> > +PV = "1.4+git${SRCPV}"
> > +
> > +SRC_URI = "git://sources.redhat.com/git/systemtap.git;protocol=git \
> > +          "
> > +
> > +EXTRA_OECONF = "--prefix=${D} --with-libelf=${STAGING_DIR_TARGET} --without-rpm \
> > +	     ac_cv_file__usr_include_nss=no \
> > +	     ac_cv_file__usr_include_nss3=no \
> > +	     ac_cv_file__usr_include_nspr=no \
> > +	     ac_cv_file__usr_include_nspr4=no \
> > +	     ac_cv_file__usr_include_avahi_client=no \
> > +	     ac_cv_file__usr_include_avahi_common=no "
> > +
> > +SRC_URI[md5sum]    = "cb202866ed704c44a876d041f788bdee"
> > +SRC_URI[sha256sum] = "8ffe35caec0d937bd23fd78a3a8d94b58907cc0de0330b35e38f9f764815c459"
> > +
> > +COMPATIBLE_MACHINE = "(qemux86|qemux86-64|qemuppc|emenlow|crownbay|atom-pc|n450)"
> > +
> Tom,
> 
> Will this work for PPC hardware also such as the beagleboard?  I am just 
> looking at the COMPATIBLE_MACHINE list and wondering.
> 

I only included the machines I was able to test directly (or were close
enough to what I tested).

I did test qemuarm, and while a simple helloworld script worked, the
other ones didn't, so I concluded that arm systemtap support was broken,
and probably wouldn't work on real arm hardware either, so I didn't
include any as compatible machines.  There was a single consistent
compile error with the other scripts on qemuarm, so it's probably a
simple fix, but who knows - it's something to look into and submit
patches to systemtap if/when we want to get that working...

qemuppc worked fine, but that's all I have wrt that arch, so included
only that.

Tom

> Recently Richard suggested that we could use regular expressions here 
> and negate the incompatible machine.
> 
> The more I think about this, we may need to extend this to work for 
> generalized arches, not just machines.  I will work on writing an RFC 
> for this.
> 
> Sau!
> 
> > +S = "${WORKDIR}/git"
> > +
> > +inherit autotools
> 




  reply	other threads:[~2011-01-14  6:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-13 19:55 [PATCH 0/1] Add systemtap package Tom Zanussi
2011-01-13 19:55 ` [PATCH 1/1] systemtap: new package Tom Zanussi
2011-01-13 21:36   ` Darren Hart
2011-01-14  7:00     ` Tom Zanussi
2011-01-14  5:47   ` Saul Wold
2011-01-14  6:55     ` Tom Zanussi [this message]
2011-01-20 23:26 ` [PATCH 0/1] Add systemtap package Saul Wold

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=1294988102.28996.19.camel@elmorro \
    --to=tom.zanussi@intel.com \
    --cc=poky@yoctoproject.org \
    --cc=saul.wold@intel.com \
    /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.