blob: 03ee5155c26d672069ef44184c9a4976947e386f [file] [log] [blame]
Andrew Geissler32b11992021-03-31 13:37:05 -05001From 60fb7579bac738809b1776dbcd95ccacf7413c57 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 18 Mar 2021 01:02:49 -0700
4Subject: [PATCH 10/10] oprofile: Determine the root home directory dynamically
Brad Bishopd7bf8c12018-02-25 22:55:05 -05005
6This commit detects the root home directory dynamically with changes to
7the oprofile gui app source.
8
9The commit replaces an earlier fix that detected and adjusted a
10'non-standard' root home directory at build time. The advantage of this
11patch is that the oprofile tools are adjusted to the current run-time
12path to ~root, not the build time path.
13
14Upstream-Status: Inappropriate [OE specific]
15
16Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
Andrew Geissler32b11992021-03-31 13:37:05 -050017---
18 doc/oprofile.xml | 4 ++--
19 1 file changed, 2 insertions(+), 2 deletions(-)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050020
Andrew Geissler32b11992021-03-31 13:37:05 -050021--- a/doc/oprofile.xml
22+++ b/doc/oprofile.xml
23@@ -647,8 +647,8 @@ Following is a description of the <comma
Brad Bishopd7bf8c12018-02-25 22:55:05 -050024 <emphasis>must</emphasis> stop it in a controlled manner in order to process
25 the profile data it has collected. Use <code>kill -SIGINT &lt;operf-PID&gt;</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 Geissler32b11992021-03-31 13:37:05 -050034--- 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 &lt;operf-PID&gt;</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>