Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Philip Balister <philip@balister.org>
To: Denys Dmytriyenko <denis@denix.org>,
	openembedded-core@lists.openembedded.org
Subject: Re: oprofile rebuilds for different MACHINES (sstate)
Date: Wed, 12 Aug 2015 07:59:16 +0200	[thread overview]
Message-ID: <55CAE0B4.7040809@balister.org> (raw)
In-Reply-To: <20150812032630.GF26375@denix.org>

On 08/12/2015 05:26 AM, Denys Dmytriyenko wrote:
> So, I've been debugging the issue of oprofile rebuilding from one MACHINE to 
> another (causing PR issues, etc). I was able to trace it down to this line:

Why not use perf instead of oprofile?

Philip

> 
> EXTRA_OECONF = "--with-kernel=${STAGING_KERNEL_DIR}  --without-x ac_cv_prog_XSLTPROC="
> 
> And STAGING_KERNEL_DIR resolves to this:
> 
> STAGING_KERNEL_DIR = "${TMPDIR}/work-shared/${MACHINE}/kernel-source"
> 
> Now, obviously, when MACHINE changes, sstate invalidates do_configure and 
> rebuilds oprofile.
> 
> The question is, what is the proper fix in this case - mark oprofile as 
> machine-specific with PACKAGE_ARCH = "${MACHINE_ARCH}", since it will be 
> configuring and building against (potentially) completely different kernel 
> tree. So, just mark it explicitly and be safe...
> 
> Or another option is to tell sstate to ignore changes to the above variables 
> with this simple line:
> 
> EXTRA_OECONF[vardepsexclude] = "STAGING_KERNEL_DIR"
> 
> This also does the trick, but I'm a bit worried there could be side-effects of 
> using oprofile against the wrong kernel... Any recommendations?
> 


      parent reply	other threads:[~2015-08-12  5:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12  3:26 oprofile rebuilds for different MACHINES (sstate) Denys Dmytriyenko
2015-08-12  4:35 ` Khem Raj
2015-09-09 22:07   ` Denys Dmytriyenko
2015-08-12  5:59 ` Philip Balister [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=55CAE0B4.7040809@balister.org \
    --to=philip@balister.org \
    --cc=denis@denix.org \
    --cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox