1From 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 5 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> 17--- 18 doc/oprofile.xml | 4 ++-- 19 1 file changed, 2 insertions(+), 2 deletions(-) 20 21--- a/doc/oprofile.xml 22+++ b/doc/oprofile.xml 23@@ -647,8 +647,8 @@ Following is a description of the <comma 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> 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> 47