All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shehab Elsayed <shehabyomn@gmail.com>
To: lttng-dev@lists.lttng.org
Subject: Problem saving session in custom LTTNG_HOME
Date: Fri, 16 Feb 2018 18:11:52 -0500	[thread overview]
Message-ID: <CAC-H6tviLrcGi3o8B76AjffGcMQ3_QXWod4_ss4anvWO1nGmJQ__8825.14490881494$1518822605$gmane$org@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 598 bytes --]

Hi All,

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.

I looked at tools/src/bin/lttng-sessiond/save.c and in the save_session
function it executes this line when there is no provided path

char *home_dir = utils_get_user_home_dir ....

Shouldn't it be calling utils_get_home_dir instead?

When I do change the function, "lttng save" always ends up in an error
of invalid pointer.

Any idea why this might be happening?

Thanks,

Shehab Elsayed

[-- Attachment #1.2: Type: text/html, Size: 2721 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

             reply	other threads:[~2018-02-16 23:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-16 23:11 Shehab Elsayed [this message]
     [not found] <CAC-H6tsYi4VGfOj6U2swnVU7mWb23_2NBAtdHgpUTfTSMwNL9w@mail.gmail.com>
2018-02-19 19:48 ` Problem saving session in custom LTTNG_HOME Jonathan Rajotte-Julien
  -- strict thread matches above, loose matches on Subject: below --
2018-02-16 23:10 Shehab Elsayed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAC-H6tviLrcGi3o8B76AjffGcMQ3_QXWod4_ss4anvWO1nGmJQ__8825.14490881494$1518822605$gmane$org@mail.gmail.com' \
    --to=shehabyomn@gmail.com \
    --cc=lttng-dev@lists.lttng.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.