From: Kang Kai <Kai.Kang@windriver.com>
To: Kang Kai <Kai.Kang@windriver.com>
Cc: openembedded-core@lists.openembedded.org,
Martin Jansa <martin.jansa@gmail.com>,
Zhenfeng.Zhao@windriver.com
Subject: Re: [PATCH 4/4] oprofile: use dynamic root home directory
Date: Thu, 20 Dec 2012 14:23:28 +0800 [thread overview]
Message-ID: <50D2AEE0.5000802@windriver.com> (raw)
In-Reply-To: <50D26D8E.8000305@windriver.com>
On 2012年12月20日 09:44, Kang Kai wrote:
> On 2012年12月19日 19:06, Martin Jansa wrote:
>> On Wed, Dec 19, 2012 at 05:39:39PM +0800, Kang Kai wrote:
>>> Use stub "ROOTHOME" to replace "/home/root" in oprofile-root.patch,
>>> then
>>> we can substitute it with configured root home directory.
>>>
>>> Signed-off-by: Kang Kai<kai.kang@windriver.com>
>>> ---
>>> meta/recipes-kernel/oprofile/oprofile.inc | 1 +
>>> .../oprofile/oprofile/oprofile-root.patch | 23
>>> ++++++++++++-------
>>> 2 files changed, 15 insertions(+), 9 deletions(-)
>>>
>>> diff --git a/meta/recipes-kernel/oprofile/oprofile.inc
>>> b/meta/recipes-kernel/oprofile/oprofile.inc
>>> index b3ce852..0977065 100644
>>> --- a/meta/recipes-kernel/oprofile/oprofile.inc
>>> +++ b/meta/recipes-kernel/oprofile/oprofile.inc
>>> @@ -31,6 +31,7 @@ inherit autotools
>>>
>>> EXTRA_OECONF = "--with-kernel-support --without-x"
>>> do_configure () {
>>> + find . -type f | xargs sed -i 's#ROOTHOME#${ROOT_HOME}#'
>>> cp ${WORKDIR}/acinclude.m4 ${S}/
>>> autotools_do_configure
>> You should use tab here.
>
> OK, thanks. I'll wait for others comments until this afternoon and
> then send V2.
Because no other comments and this is tiny update, I just update it in
the contribute branch on
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/roothome
which also show in cover letter.
Regards,
Kai
>
> Regards,
> Kai
>
>>
>> Cheers,
>>
>>> }
>>> diff --git
>>> a/meta/recipes-kernel/oprofile/oprofile/oprofile-root.patch
>>> b/meta/recipes-kernel/oprofile/oprofile/oprofile-root.patch
>>> index db63a8e..f3fe4c9 100644
>>> --- a/meta/recipes-kernel/oprofile/oprofile/oprofile-root.patch
>>> +++ b/meta/recipes-kernel/oprofile/oprofile/oprofile-root.patch
>>> @@ -4,6 +4,11 @@ Upstream-Status: inappropriate [OE specific]
>>>
>>> Signed-off-by: Mark Hatle<mark.hatle@windriver.com>
>>>
>>> +Replace "/home/root" with stub "ROOTHOME", then substitute it with
>>> +real root home directory which is configured dymanically.
>>> +
>>> +Signed-off-by: Kang Kai<kai.kang@windriver.com>
>>> +
>>> diff -ur oprofile-0.9.7.orig/doc/opcontrol.1.in
>>> oprofile-0.9.7/doc/opcontrol.1.in
>>> --- oprofile-0.9.7.orig/doc/opcontrol.1.in 2011-07-04
>>> 21:25:04.000000000 -0500
>>> +++ oprofile-0.9.7/doc/opcontrol.1.in 2012-07-02
>>> 14:02:16.358865420 -0500
>>> @@ -12,7 +17,7 @@ diff -ur oprofile-0.9.7.orig/doc/opcontrol.1.in
>>> oprofile-0.9.7/doc/opcontrol.1.i
>>> .SH FILES
>>> .TP
>>> -.I /root/.oprofile/daemonrc
>>> -+.I /home/root/.oprofile/daemonrc
>>> ++.I ROOTHOME/.oprofile/daemonrc
>>> Configuration file for opcontrol
>>> .TP
>>> .I /var/lib/oprofile/samples/
>>> @@ -24,7 +29,7 @@ diff -ur oprofile-0.9.7.orig/doc/oprofile.1
>>> oprofile-0.9.7/doc/oprofile.1
>>> Configuration files
>>> .TP
>>> -.I /root/.oprofile/daemonrc
>>> -+.I /home/root/.oprofile/daemonrc
>>> ++.I ROOTHOME/.oprofile/daemonrc
>>> Configuration file for opcontrol
>>> .TP
>>> .I /opt/oprofile-0.9.7-rc3/share/oprofile/
>>> @@ -36,7 +41,7 @@ diff -ur oprofile-0.9.7.orig/doc/oprofile.1.in
>>> oprofile-0.9.7/doc/oprofile.1.in
>>> Configuration files
>>> .TP
>>> -.I /root/.oprofile/daemonrc
>>> -+.I /home/root/.oprofile/daemonrc
>>> ++.I ROOTHOME/.oprofile/daemonrc
>>> Configuration file for opcontrol
>>> .TP
>>> .I @prefix@/share/oprofile/
>>> @@ -48,7 +53,7 @@ diff -ur oprofile-0.9.7.orig/doc/oprofile.html
>>> oprofile-0.9.7/doc/oprofile.html
>>> <p>
>>> Followed by list arguments for profiling set up. List of
>>> arguments
>>> - saved in<code
>>> class="filename">/root/.oprofile/daemonrc</code>.
>>> -+ saved in<code
>>> class="filename">/home/root/.oprofile/daemonrc</code>.
>>> ++ saved in<code
>>> class="filename">ROOTHOME/.oprofile/daemonrc</code>.
>>> Giving this option is not necessary; you can just
>>> directly pass one
>>> of the setup options, e.g.<span
>>> class="command"><strong>opcontrol --no-vmlinux</strong></span>.
>>> </p>
>>> @@ -57,7 +62,7 @@ diff -ur oprofile-0.9.7.orig/doc/oprofile.html
>>> oprofile-0.9.7/doc/oprofile.html
>>> <p>
>>> Start data collection with either arguments provided
>>> by<code class="option">--setup</code>
>>> - or information saved in<code
>>> class="filename">/root/.oprofile/daemonrc</code>. Specifying
>>> -+ or information saved in<code
>>> class="filename">/home/root/.oprofile/daemonrc</code>. Specifying
>>> ++ or information saved in<code
>>> class="filename">ROOTHOME/.oprofile/daemonrc</code>. Specifying
>>> the addition<code class="option">--verbose</code> makes
>>> the daemon generate lots of debug data
>>> whilst it is running.
>>> </p>
>>> @@ -69,7 +74,7 @@ diff -ur oprofile-0.9.7.orig/doc/oprofile.xml
>>> oprofile-0.9.7/doc/oprofile.xml
>>> <listitem><para>
>>> Followed by list arguments for profiling set up. List of
>>> arguments
>>> - saved in<filename>/root/.oprofile/daemonrc</filename>.
>>> -+ saved
>>> in<filename>/home/root/.oprofile/daemonrc</filename>.
>>> ++ saved in<filename>ROOTHOME/.oprofile/daemonrc</filename>.
>>> Giving this option is not necessary; you can just
>>> directly pass one
>>> of the setup options, e.g.<command>opcontrol
>>> --no-vmlinux</command>.
>>> </para></listitem>
>>> @@ -78,7 +83,7 @@ diff -ur oprofile-0.9.7.orig/doc/oprofile.xml
>>> oprofile-0.9.7/doc/oprofile.xml
>>> <listitem><para>
>>> Start data collection with either arguments provided
>>> by<option>--setup</option>
>>> - or information saved
>>> in<filename>/root/.oprofile/daemonrc</filename>. Specifying
>>> -+ or information saved
>>> in<filename>/home/root/.oprofile/daemonrc</filename>. Specifying
>>> ++ or information saved
>>> in<filename>ROOTHOME/.oprofile/daemonrc</filename>. Specifying
>>> the addition<option>--verbose</option> makes the daemon
>>> generate lots of debug data
>>> whilst it is running.
>>> </para></listitem>
>>> @@ -90,7 +95,7 @@ diff -ur
>>> oprofile-0.9.7.orig/gui/oprof_start_util.cpp oprofile-0.9.7/gui/oprof_s
>>> string const get_config_dir()
>>> {
>>> - return "/root";
>>> -+ return "/home/root";
>>> ++ return "ROOTHOME";
>>> }
>>>
>>> string daemon_pid;
>>> @@ -102,7 +107,7 @@ diff -ur oprofile-0.9.7.orig/utils/opcontrol
>>> oprofile-0.9.7/utils/opcontrol
>>>
>>> # location for daemon setup information
>>> - SETUP_DIR="/root/.oprofile"
>>> -+ SETUP_DIR="/home/root/.oprofile"
>>> ++ SETUP_DIR="ROOTHOME/.oprofile"
>>> SETUP_FILE="$SETUP_DIR/daemonrc"
>>> SEC_SETUP_FILE="$SETUP_DIR/daemonrc_new"
>>>
>>> --
>>> 1.7.5.4
>>>
>>>
>>> _______________________________________________
>>> Openembedded-core mailing list
>>> Openembedded-core@lists.openembedded.org
>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
prev parent reply other threads:[~2012-12-20 6:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-19 9:39 [PATCH 0/4] Use dynamic root home directory Kang Kai
2012-12-19 9:39 ` [PATCH 1/4] bitbake.conf: import var ROOT_HOME Kang Kai
2012-12-19 9:39 ` [PATCH 2/4] base-files: use dynamic root home directory Kang Kai
2012-12-19 9:39 ` [PATCH 3/4] base-passwd: use configurable " Kang Kai
2012-12-19 9:39 ` [PATCH 4/4] oprofile: use dynamic " Kang Kai
2012-12-19 11:06 ` Martin Jansa
2012-12-20 1:44 ` Kang Kai
2012-12-20 6:23 ` Kang Kai [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=50D2AEE0.5000802@windriver.com \
--to=kai.kang@windriver.com \
--cc=Zhenfeng.Zhao@windriver.com \
--cc=martin.jansa@gmail.com \
--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 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.