<div dir="ltr"><div class="gmail-gE gmail-iv gmail-gt"><table class="gmail-cf gmail-gJ" cellpadding="0"><tbody><tr class="gmail-acZ gmail-xD"><td colspan="3"><table class="gmail-cf gmail-adz" cellpadding="0"><tbody><tr><td class="gmail-ady"><div class="gmail-ajy" tabindex="0"><img class="gmail-ajz" id="gmail-:14i" src="https://mail.google.com/mail/u/0/images/cleardot.gif" alt=""></div></td></tr></tbody></table></td></tr></tbody></table></div><div id="gmail-:121"><div class="gmail-qQVYZb"></div><div class="gmail-utdU2e"></div><div class="gmail-btm"></div></div><div class="gmail-aHl"></div><div id="gmail-:41p" tabindex="-1"></div><div id="gmail-:434" class="gmail-ii gmail-gt"><div id="gmail-:433" class="gmail-a3s gmail-aXjCH gmail-m161a0e1b50a68683"><div dir="ltr"><div><div><font color="#000000">Hi All,<br><br></font></div><font color="#000000">I
 am running into a problem when setting LTTNG_HOME and trying to save a 
session. When I do so, it always ends up saving the session to 
$HOME/.lttng/sessions instead of $LTTNG_HOME/.lttng/sessions.<br><br></font></div><font color="#000000">I looked at tools/src/bin/lttng-sessiond/<wbr>save.<font size="2">c and in the save_session function it executes this line when there is no provided path<br></font><pre><span class="gmail-m_-4132707992438582927gmail-kt">char</span> <span class="gmail-m_-4132707992438582927gmail-o">*</span><span class="gmail-m_-4132707992438582927gmail-n">home_dir</span> <span class="gmail-m_-4132707992438582927gmail-o">=</span> <span class="gmail-m_-4132707992438582927gmail-n">utils_get_user_home_dir ....<br><font size="2"><span style="font-family:arial,helvetica,sans-serif"><br></span></font></span></pre><pre><font size="2"><span style="font-family:arial,helvetica,sans-serif"><span class="gmail-m_-4132707992438582927gmail-n">Shouldn't it be calling utils_get_home_dir instead?<br><br></span></span></font></pre><pre><font size="2"><span style="font-family:arial,helvetica,sans-serif"><span class="gmail-m_-4132707992438582927gmail-n">When I do change the function, "lttng save" always ends up in an error of invalid pointer.<br><br></span></span></font></pre><pre><font size="2"><span style="font-family:arial,helvetica,sans-serif"><span class="gmail-m_-4132707992438582927gmail-n">Any idea why this might be happening?<br><br></span></span></font></pre><pre><font size="2"><span style="font-family:arial,helvetica,sans-serif"><span class="gmail-m_-4132707992438582927gmail-n">Thanks,<br></span></span></font></pre><pre><font size="2"><span style="font-family:arial,helvetica,sans-serif"><span class="gmail-m_-4132707992438582927gmail-n">Shehab Elsayed</span></span></font></pre></font></div></div></div></div>