<div dir="ltr"><div>Hi,<br>

            <br>
            

<div>
    <div class="" itemprop="text">

<p>I'm using lttng for tracing events in java linux platform. </p>

<p>By default event trace is in format:</p>

<pre style="" class=""><code><span class="">[</span><span class="">21</span><span class="">:</span><span class="">28</span><span class="">:</span><span class="">29.026447729</span><span class="">]</span><span class=""> </span><span class="">(+</span><span class="">0.006778441</span><span class="">)</span><span class=""> 
user 
lttng_jul</span><span class="">:</span><span class="">sys_event</span><span class="">:</span><span class=""> 
</span><span class="">{</span><span class=""> cpu_id </span><span class="">=</span><span class=""> </span><span class="">10</span><span class=""> </span><span class="">},</span><span class=""> 
</span><span class="">{</span><span class=""> vtid </span><span class="">=</span><span class=""> </span><span class="">8569</span><span class="">,</span><span class=""> vpid </span><span class="">=</span><span class=""> </span><span class="">8567</span><span class=""> </span><span class="">},</span><span class=""> 
</span><span class="">{</span><span class=""> msg </span><span class="">=</span><span class=""> </span><span class="">"Obtained reader lock for file"</span><span class="">,</span><span class=""> 
  logger_name </span><span class="">=</span><span class=""> </span><span class="">"test.FileLock"</span><span class="">,</span><span class=""> 
  class_name </span><span class="">=</span><span class=""> </span><span class="">"FileLock"</span><span class="">,</span><span class=""> 
  method_name </span><span class="">=</span><span class=""> </span><span class="">"acquire"</span><span class="">,</span><span class=""> 
  long_millis </span><span class="">=</span><span class=""> </span><span class="">1458057509025</span><span class="">,</span><span class=""> 
  int_loglevel </span><span class="">=</span><span class=""> </span><span class="">500</span><span class="">,</span><span class=""> 
  int_threadid </span><span class="">=</span><span class=""> </span><span class="">1</span><span class=""> </span><span class="">}</span></code></pre>

<p>how can I change/modify it in following format?</p>

<pre style="" class=""><code><span class="">[</span><span class="">21</span><span class="">:</span><span class="">28</span><span class="">:</span><span class="">29.026447729</span><span class="">]</span><span class=""> </span><span class="">(+</span><span class="">0.006778441</span><span class="">)</span><span class=""> 
user 
lttng_jul</span><span class="">:</span><span class="">sys_event</span><span class="">:</span><span class=""> 
</span><span class="">{</span><span class=""> cpu_id </span><span class="">=</span><span class=""> </span><span class="">10</span><span class=""> </span><span class="">},</span><span class=""> 
</span><span class="">{</span><span class=""> vtid </span><span class="">=</span><span class=""> </span><span class="">8569</span><span class="">,</span><span class=""> vpid </span><span class="">=</span><span class=""> </span><span class="">8567</span><span class=""> </span><span class="">},</span><span class=""> 
</span><span class="">{</span><span class=""> taskNameField </span><span class="">=</span><span class=""> </span><span class="">"test.FileLock"</span><span class="">,</span><span class=""> 
  eventNameField </span><span class="">=</span><span class=""> </span><span class="">"Obtained reader lock for file"</span><span class="">,</span><span class="">
  idField </span><span class="">=</span><span class=""> </span><span class="">"FileLock"</span><span class="">,</span><span class="">
  dataField </span><span class="">=</span><span class=""> </span><span class="">"acquire"</span><span class=""> </span><span class="">}</span></code></pre>

<p>In c++ we can give tracepoint arguments to control the fields but in Java how can I format it?</p>
    </div></div>Regards,<br></div>Pinky<br></div>