Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | oprofile: Determine the root home directory dynamically |
| 2 | |
| 3 | This commit detects the root home directory dynamically with changes to |
| 4 | the oprofile gui app source. |
| 5 | |
| 6 | The commit replaces an earlier fix that detected and adjusted a |
| 7 | 'non-standard' root home directory at build time. The advantage of this |
| 8 | patch is that the oprofile tools are adjusted to the current run-time |
| 9 | path to ~root, not the build time path. |
| 10 | |
| 11 | Upstream-Status: inappropriate [OE specific] |
| 12 | |
| 13 | Signed-off-by: Dave Lerner <dave.lerner@windriver.com> |
| 14 | |
| 15 | Index: oprofile-1.0.0/doc/oprofile.html |
| 16 | =================================================================== |
| 17 | --- oprofile-1.0.0.orig/doc/oprofile.html 2014-11-03 17:55:31.511034857 +0000 |
| 18 | +++ oprofile-1.0.0/doc/oprofile.html 2014-11-03 17:57:26.415037988 +0000 |
| 19 | @@ -1563,8 +1563,8 @@ |
| 20 | <span class="emphasis"><em>must</em></span> stop it in a controlled manner in order to process |
| 21 | the profile data it has collected. Use <code class="code">kill -SIGINT <operf-PID></code> |
| 22 | for this purpose. It is recommended that when running <span class="command"><strong>operf</strong></span> |
| 23 | - with this option, your current working directory should be <code class="filename">/root</code> or a subdirectory |
| 24 | - of <code class="filename">/root</code> to avoid storing sample data files in locations accessible by regular users. |
| 25 | + with this option, your current working directory should be <code class="filename">~root</code> or a subdirectory |
| 26 | + of <code class="filename">~root</code> to avoid storing sample data files in locations accessible by regular users. |
| 27 | </p> |
| 28 | </dd> |
| 29 | <dt> |
| 30 | Index: oprofile-1.0.0/doc/oprofile.xml |
| 31 | =================================================================== |
| 32 | --- oprofile-1.0.0.orig/doc/oprofile.xml 2014-11-03 17:55:31.515034857 +0000 |
| 33 | +++ oprofile-1.0.0/doc/oprofile.xml 2014-11-03 17:58:03.719039005 +0000 |
| 34 | @@ -654,8 +654,8 @@ |
| 35 | <emphasis>must</emphasis> stop it in a controlled manner in order to process |
| 36 | the profile data it has collected. Use <code>kill -SIGINT <operf-PID></code> |
| 37 | for this purpose. It is recommended that when running <command>operf</command> |
| 38 | - with this option, your current working directory should be <filename>/root</filename> or a subdirectory |
| 39 | - of <filename>/root</filename> to avoid storing sample data files in locations accessible by regular users. |
| 40 | + with this option, your current working directory should be <filename>~root</filename> or a subdirectory |
| 41 | + of <filename>~root</filename> to avoid storing sample data files in locations accessible by regular users. |
| 42 | </para></listitem> |
| 43 | </varlistentry> |
| 44 | <varlistentry> |