public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Josh Stone <jistone@redhat.com>
To: Thiago Manel <thiago.manel@gmail.com>
Cc: David Smith <dsmith@redhat.com>,
	       "systemtap@sourceware.org" <systemtap@sourceware.org>
Subject: Re: problems with sched tapset on ubuntu precise 3.2.0
Date: Tue, 14 May 2013 21:11:00 -0000	[thread overview]
Message-ID: <5192A888.8090501@redhat.com> (raw)
In-Reply-To: <CAHiC6b2rqiBjgVtMEo92sNQy0-AeEQxW8SY0WV38FnfqdAXgdA@mail.gmail.com>

On 05/14/2013 01:35 PM, Thiago Manel wrote:
> I will try upgrading to a newer stap, thanks Josh.
> 
> ... and, to finish this debug session I spotted a compiling problem (by
> 'kernel.trace("sched_switch")' --poison-cache --vp 09), see below
> 
[...]
> /tmp/stapAJ6lCC/tracequery_kmod_20/tracequery_kmod_20.c:23:30: fatal
> error: fs/xfs/xfs_types.h: No such file or directory

Hmm, ok, the fact that this got up to kmod_20 means I was remembering
incorrectly.  We used to *try* all headers together, but then we did
fall back to testing them individually.

> Maybe I'm adding some noise but digging the commit history I saw this
> (http://git.stealer.net/?p=systemtap.git;a=commitdiff;h=88637c31488f4987cc63c3f71263917dd98ca9cf)
> --- which has the following description
> 
> "Including xfs_types.h unconditionally on installations with no kernel
> debuginfo would cause normal tracepoint processing to fail too.
> * tapsets.cxx (tracepoint_extra_decls): Include xfs_types.h
>  only if we know the kernel source tree."

Yes this commit looks related, but it's old enough that you should have
it.  (git describe --contains 88637c3 -> release-1.4~119)

I think the one you need is commit 50b72692 (release-1.7~151^2~105).
That limited the xfs_types.h hack to only tracepoint headers with "xfs"
in their name.

Also, the option for the source tree did show up in your command line as
"-I/build/buildd/linux-3.2.0/debian/build/build-generic".  I guess you
don't actually have "fs/xfs/xfs_types.h" in that path?  Do you even have
/build/buildd/... at all?  This may be tracepoint_builder::init_dw too
eager to trust DW_AT_comp_dir...

      parent reply	other threads:[~2013-05-14 21:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-07 15:05 Thiago Manel
2013-05-07 18:28 ` David Smith
2013-05-08 13:26   ` Thiago Manel
2013-05-08 14:15     ` David Smith
2013-05-08 14:56       ` Thiago Manel
2013-05-13 21:21         ` David Smith
2013-05-14 19:46           ` Thiago Manel
2013-05-14 20:13             ` Josh Stone
2013-05-14 20:24     ` Josh Stone
2013-05-14 20:39       ` Thiago Manel
     [not found]       ` <CAHiC6b2rqiBjgVtMEo92sNQy0-AeEQxW8SY0WV38FnfqdAXgdA@mail.gmail.com>
2013-05-14 21:11         ` Josh Stone [this message]

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=5192A888.8090501@redhat.com \
    --to=jistone@redhat.com \
    --cc=dsmith@redhat.com \
    --cc=systemtap@sourceware.org \
    --cc=thiago.manel@gmail.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 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 read-only IMAP folder(s) and NNTP newsgroup(s).