Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 1 | From 60fb7579bac738809b1776dbcd95ccacf7413c57 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 18 Mar 2021 01:02:49 -0700 |
| 4 | Subject: [PATCH 10/10] oprofile: Determine the root home directory dynamically |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 5 | |
| 6 | This commit detects the root home directory dynamically with changes to |
| 7 | the oprofile gui app source. |
| 8 | |
| 9 | The commit replaces an earlier fix that detected and adjusted a |
| 10 | 'non-standard' root home directory at build time. The advantage of this |
| 11 | patch is that the oprofile tools are adjusted to the current run-time |
| 12 | path to ~root, not the build time path. |
| 13 | |
| 14 | Upstream-Status: Inappropriate [OE specific] |
| 15 | |
| 16 | Signed-off-by: Dave Lerner <dave.lerner@windriver.com> |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 17 | --- |
| 18 | doc/oprofile.xml | 4 ++-- |
| 19 | 1 file changed, 2 insertions(+), 2 deletions(-) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 20 | |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 21 | --- a/doc/oprofile.xml |
| 22 | +++ b/doc/oprofile.xml |
| 23 | @@ -647,8 +647,8 @@ Following is a description of the <comma |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 24 | <emphasis>must</emphasis> stop it in a controlled manner in order to process |
| 25 | the profile data it has collected. Use <code>kill -SIGINT <operf-PID></code> |
| 26 | for this purpose. It is recommended that when running <command>operf</command> |
| 27 | - with this option, your current working directory should be <filename>/root</filename> or a subdirectory |
| 28 | - of <filename>/root</filename> to avoid storing sample data files in locations accessible by regular users. |
| 29 | + with this option, your current working directory should be <filename>~root</filename> or a subdirectory |
| 30 | + of <filename>~root</filename> to avoid storing sample data files in locations accessible by regular users. |
| 31 | </para></listitem> |
| 32 | </varlistentry> |
| 33 | <varlistentry> |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 34 | --- a/doc/oprofile.html |
| 35 | +++ b/doc/oprofile.html |
| 36 | @@ -1552,8 +1552,8 @@ Following is a description of the <span |
| 37 | <span class="emphasis"><em>must</em></span> stop it in a controlled manner in order to process |
| 38 | the profile data it has collected. Use <code class="code">kill -SIGINT <operf-PID></code> |
| 39 | for this purpose. It is recommended that when running <span class="command"><strong>operf</strong></span> |
| 40 | - with this option, your current working directory should be <code class="filename">/root</code> or a subdirectory |
| 41 | - of <code class="filename">/root</code> to avoid storing sample data files in locations accessible by regular users. |
| 42 | + with this option, your current working directory should be <code class="filename">~root</code> or a subdirectory |
| 43 | + of <code class="filename">~root</code> to avoid storing sample data files in locations accessible by regular users. |
| 44 | </p> |
| 45 | </dd> |
| 46 | <dt> |