<div dir="ltr"><div>Hi,</div><div><br></div><div>Please ignore the previous mail from me saying there might be a bug in lttng-tools. After some analysis, I found this is expected functionality as per the commit <a href="https://github.com/lttng/lttng-tools/commit/cb034ca">https://github.com/lttng/lttng-tools/commit/cb034ca</a>. It's NOT A BUG.</div><div><br></div><div>Thanks,</div><div>Shubham</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 26, 2022 at 3:52 PM Shubham Kulkarni <<a href="mailto:shubhambkul16@gmail.com">shubhambkul16@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I am entirely new to the lttng-tools and frankly not aware of anything. But, one of our company's customer reported this issue, so I tried reproducing. I was able to reproduce it with the version of lttng-tool (2.12.4 - (Ta) Meilleure) installed on my Ubuntu 16.04 (<a href="https://lttng.org/docs/v2.12/#doc-ubuntu-ppa" target="_blank">https://lttng.org/docs/v2.12/#doc-ubuntu-ppa</a>).</div><div><br></div><div>Issue is, if I try to snapshot a session with an output filename containing a ".", it fails. Steps I followed are given below :</div><div><br></div><div><b>"</b></div><div>root@MVIN00032:~# lttng create flightrecorder --snapshot<br>Snapshot session flightrecorder created.<br>Default snapshot output set to /home/shubham/lttng-traces/flightrecorder-20221223-153147<br>Every channel enabled for this session will be set to mmap output and default to overwrite mode.<br><br>root@MVIN00032:~# lttng enable-event -k -a<br>All Kernel events are enabled in channel channel0<br><br>root@MVIN00032:~# lttng start<br>Tracing started for session flightrecorder<br><br>root@MVIN00032:~# lttng -vvv snapshot record -s flightrecorder -n <b>record.dump</b><br>DEBUG1 - 15:32:15.173476719 [7159/7159]: LSM cmd type : 28 (in send_session_msg() at lttng-ctl.c:128)<br><b>Error: Create directory failed</b><br>DEBUG1 - 15:32:15.197542565 [7159/7159]: Clean exit (in clean_exit() at lttng.c:152)<br><br>root@MVIN00032:~# lttng -vvv snapshot record -s flightrecorder -n <b>record_dump</b><br>DEBUG1 - 15:32:24.013450964 [7442/7442]: LSM cmd type : 28 (in send_session_msg() at lttng-ctl.c:128)<br><b>Snapshot recorded successfully for session flightrecorder</b><br><br>root@MVIN00032:~# lttng stop<br>Waiting for data availability<br>Tracing stopped for session flightrecorder<br><br>root@MVIN00032:~# lttng destroy<br>Session flightrecorder destroyed <b>"</b><br></div><div>-----------------------------------------------------------------------------------------------------------------------------------------------------------</div><div><br></div><div>I tried the same with lttng-tools v2.9.5 (as one of my company's product uses this version) under runqemu session, which worked fine for 'record.dump' & with lttng-tools v2.11.5 (another product uses this version) failed with the same error. So, maybe in between these versions an issue was introduced.</div><div><br></div><div>I am not sure whether this is the correct location to send this mail, but I didn't find any solution on the Internet and I am not aware of lttng at all. I was able to reproduce the issue with help from the internet, so thought to report it via this mailing list.</div><div><br></div><div>Thanks,</div><div>Shubham</div></div>
</blockquote></div></div>