<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
I have prepared for you a script to collect ftrace data. Could you apply<br>
the attached patch and execute ./test.sh PID. PID is a pid of a process,<br>
which should be dumped. This script sets up ftrace parameters, then<br>
executes "criu dump ..." and saves ftrace data in /mnt/mydata/dump/trace.log.<br>
We need this file. Thank you for the help.<br>
<br>
><br>
> Thanks,<br>
> Pavel</blockquote></div><div><br></div></div></div></div></blockquote><div><br></div><div>Hello,</div><div><br></div><div>When I run sudo ./test.sh pid, it "hangs" indefinitely and I don't get a trace.log file created. Here is the console output when I run (this is from my second run):</div>
<div><br></div><div><div>+ pid=1318</div><div>+ mkdir /tmp/debug</div><div>mkdir: cannot create directory â/tmp/debugâ: File exists</div><div>+ mount -t debugfs debug /tmp/debug/</div><div>mount: debug already mounted or /tmp/debug/ busy</div>
<div>mount: according to mtab, debug is already mounted on /tmp/debug</div><div>+ echo 1318</div><div>+ echo function</div><div>+ echo 0</div><div>+ sudo cat /tmp/debug/tracing/trace_pipe</div></div><div><br></div><div> </div>
</div><br></div></div>