lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
From: "Kramer, Zach" <Zach.Kramer@cognex.com>
To: lttng-dev <lttng-dev@lists.lttng.org>
Subject: [2.11.0] Saving then loading network session loses absolute path
Date: Mon, 21 Oct 2019 15:27:50 +0000	[thread overview]
Message-ID: <SN4PR0601MB3614AC3C2037AEC1C434F84191690__45833.022012242$1571671694$gmane$org@SN4PR0601MB3614.namprd06.prod.outlook.com> (raw)


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

Hi,

With all LTTng versions being 2.11.0 I have the following problem:

lttng-sessiond -d
lttng-relayd -d

lttng create example –set-url=net://localhost/test
OR
lttng create example --live –set-url=net://localhost/test
NOT
lttng create example –set-url=file:///home/<user>/lttng-traces/test

lttng enable-channel -u ch
lttng enable-event -u -a -c ch -s example
lttng start example

(traces are written to ~/lttng-traces/<host>/test)

lttng stop example
lttng save example
lttng destroy example
(remove lttng-traces/<host> for testing purposes)

lttng load example
lttng start example

(traces now exist in ~/lttng-traces/<host>/example-<timestamp>)

This is, for me, reproducible 100% of the time. I can reproduce the steps using the Trace Compass control view as well. If I override the session name and url, the problem persists.

The .lttng file seems valid (attached). This issue exists whether I use an existing .lttng file from 2.9 (which never showed this problem), or whether I create a new one like above.

Is this intended behavior? If not, any idea what could be happening here? Is this reproducible by others?

Best,
Zach


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

[-- Attachment #2: example.lttng --]
[-- Type: application/octet-stream, Size: 1694 bytes --]

<?xml version="1.0" encoding="UTF-8"?>
<sessions>
	<session>
		<name>example</name>
		<domains>
			<domain>
				<type>UST</type>
				<buffer_type>PER_UID</buffer_type>
				<channels>
					<channel>
						<name>ch</name>
						<enabled>true</enabled>
						<overwrite_mode>DISCARD</overwrite_mode>
						<subbuffer_size>524288</subbuffer_size>
						<subbuffer_count>4</subbuffer_count>
						<switch_timer_interval>0</switch_timer_interval>
						<read_timer_interval>0</read_timer_interval>
						<output_type>MMAP</output_type>
						<blocking_timeout>0</blocking_timeout>
						<monitor_timer_interval>1000000</monitor_timer_interval>
						<tracefile_size>0</tracefile_size>
						<tracefile_count>0</tracefile_count>
						<live_timer_interval>0</live_timer_interval>
						<events>
							<event>
								<name>*</name>
								<enabled>true</enabled>
								<type>TRACEPOINT</type>
								<loglevel_type>ALL</loglevel_type>
							</event>
						</events>
						<contexts/>
					</channel>
				</channels>
				<trackers/>
			</domain>
			<domain>
				<type>JUL</type>
				<buffer_type>PER_UID</buffer_type>
				<channels/>
			</domain>
			<domain>
				<type>LOG4J</type>
				<buffer_type>PER_UID</buffer_type>
				<channels/>
			</domain>
			<domain>
				<type>PYTHON</type>
				<buffer_type>PER_UID</buffer_type>
				<channels/>
			</domain>
		</domains>
		<started>false</started>
		<output>
			<consumer_output>
				<enabled>true</enabled>
				<destination>
					<net_output>
						<control_uri>tcp4://127.0.0.1:5342/test</control_uri>
						
					</net_output>
				</destination>
			</consumer_output>
		</output>
	</session>
</sessions>

[-- Attachment #3: 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:[~2019-10-21 15:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-21 15:27 Kramer, Zach [this message]
     [not found] <SN4PR0601MB3614AC3C2037AEC1C434F84191690@SN4PR0601MB3614.namprd06.prod.outlook.com>
2019-10-21 18:11 ` [2.11.0] Saving then loading network session loses absolute path Jonathan Rajotte-Julien

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='SN4PR0601MB3614AC3C2037AEC1C434F84191690__45833.022012242$1571671694$gmane$org@SN4PR0601MB3614.namprd06.prod.outlook.com' \
    --to=zach.kramer@cognex.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).