Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] How To View Live Traces

Hi Bernd, Michael,


On 2016-03-24 09:11 AM, Bernd Hufmann wrote:

On 03/23/2016 11:36 AM, Michael Steppe wrote:
I've been doing some more testing since I emailed you all yesterday afternoon. Here are some things (issues) that I have noticed:

  * Opened Eclipse as USER
      o Created and started STANDARD UST trace
          + Folder created in /home/USER/lttng-traces/<trace_name>
            *GOOD / EXPECTED*
      o Created and started LIVE UST trace
          + Folder created in
            /ROOT/lttng-traces/localhost/<trace_name> *BAD*
          + Unable to import LIVE UST trace to view live because
            cannot access root owned files *BAD*
  * Opened Eclipse as ROOT
      o Created and started STANDARD UST trace
          + Folder created in /ROOT/lttng-traces/<trace_name> *GOOD /
            EXPECTED*
      o Created and started LIVE UST trace
          + Folder created in
            /ROOT/lttng-traces/localhost/<trace_name> *GOOD / EXPECTED*
          + Able to import LIVE UST trace to view live! *GOOD / EXPECTED*

Do you have any idea why this behavior happens? Specifically the live user trace being stored in a root owned folder?
I cannot answer this questions since it is handled by the LTTng runtime and not by Trace Compass. Alex could you please take care of this and bring it up with your colleagues taking care of the LTTng runtime?

I'll take a look at it.

Cheers



On Tue, Mar 22, 2016 at 1:13 PM, Michael Steppe <msteppe91@xxxxxxxxx <mailto:msteppe91@xxxxxxxxx>> wrote:

    Ok, so I know this is frowned upon, but I opened Trace Compass as
    root and was able to successfully create, start, and import a
    live UST trace. I had to create a trace point first before the
    trace had any metadata, but it worked! Why are the lttng commands
    run as root when I open Trace Compass as user? That must be the
    issue, the user traces are created in /root/lttng-traces where
    the user has no access...

    On Tue, Mar 22, 2016 at 1:06 PM, Michael Steppe
    <msteppe91@xxxxxxxxx> wrote:

        I am running trace compass as user, but the trace is saved in
        /root/lttng-traces/localhost instead of what I would expect,
        /home/user/lttng-traces/localhost. Now after starting the
        trace and adding trace points, when I click import I get the
        error:

        Error initializing live trace.

        Cannot create linked resource. Local location
        '/root/lttng-traces/localhost/NEWustTest-20160322-170122/ust/uid/500/64-bit'
        does not exist.

        But I see the folder at that location...although it is owned
        by root...

        Just to clarify, the user is in the tracing group and has
        sudo permissions for lttng commands.

        On Tue, Mar 22, 2016 at 12:57 PM, Bernd Hufmann
        <bernd.hufmann@xxxxxxxxxxxx
        <mailto:bernd.hufmann@xxxxxxxxxxxx>> wrote:

            Hi Michael

            this error seems to indicate that no trace events have
            been created by the application and the metadata file
            hasn't been created when the live trace is imported by
            you pressing the import button. After starting the trace
            session could you please check the  trace destination
            directory if the metadata file exists. The directory
            should look something like this:
            ${user-home}/lttng-traces/{node-name}/{session-name}${date-time}/ust/uid/45167/64-bit

            Bernd


            On 03/22/2016 10:49 AM, Michael Steppe wrote:
            Same with a live UST trace

            On Tue, Mar 22, 2016 at 10:19 AM, Michael Steppe
            <msteppe91@xxxxxxxxx> wrote:

                So I have updated the lttng kernel modules to 2.6.4,
                the lttng ust packages to 2.6.1, and the lttng tools
                packages to 2.6.5. When attempting to import the
                live kernel trace I get the error I attached in the
                previous email: "Error, trace has no metadada"

                Any suggestions? I am coming down to the wire on
                this project so any help would be great! :)

                On Mon, Mar 21, 2016 at 9:16 AM, Michael Steppe
                <msteppe91@xxxxxxxxx> wrote:

                    Sorry, I forgot to include this earlier. Here is
                    a screenshot of the new error I am seeing:
                    Inline image 2


                    On Mon, Mar 21, 2016 at 9:15 AM, Michael Steppe
                    <msteppe91@xxxxxxxxx> wrote:

                        All,

                        Here is a little update on my attempt to
                        view live traces in a 2.6.32 kernel. I
                        downloaded and built from source the
                        userspace-rcu (0.9.1), lttng-tools (2.6.5),
                        and lttng-ust (2.6.1) listed under the
                        "Gaia" release on LTTng's website
                        (http://lttng.org/download/). Meanwhile, my
                        co-worker is attempting to build the kernel
                        modules (2.6.4) that go along with the Gaia
                        release.

                        Because the issue seemed to have to do with
                        the "lttng create" command, I figured I
                        could at least test userspace live trace
                        viewing in Trace Compass with my old 2.4.4
                        kernel modules installed until my co-worker
                        could get me the new kernel modules. Correct
                        me if I am wrong but I should be able to do
                        this if I am just enabling userspace event
                        in the session...

                        I created a live session through the control
                        view and enabled all ust events. The import
                        button is now available to click after
                        starting the trace! Woohoo! Unfortunately,
                        regardless if I click the import button
                        before or after the trace is started, I get
                        an error saying "Error, trace has no
                        metadata". I figured this may be because no
                        userspace trace points have been created on
                        the system. I added a trace point manually
                        from the command line while the trace was
                        running then clicked on the import button
                        and still go the same error. If I click the
                        import button again, I get the "null
                        argument" error I had been getting before.
                        Only the first time per session when
                        clicking the import button do I see the "no
                        metadata" error.

                        I plan on waiting for the new kernel modules
                        that match my Gaia versions of the tools and
                        ust packages to really test this, but if
                        anything stands out to you guys as other
                        things I may need to do to in order to get
                        this working, help would be appreciated!

                        -Michael












_______________________________________________
tracecompass-dev mailing list
tracecompass-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tracecompass-dev

--
Jonathan R. Julien
Efficios



Back to the top