<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Systrace not working on L5.0.0_1.0.0-ga in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Systrace-not-working-on-L5-0-0-1-0-0-ga/m-p/445189#M68614</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am really sorry to say, but that's the perfect example of a typical response in the public support community :-(&lt;/P&gt;&lt;P&gt;In our private portal with paid support hours I did get the correct respone within 3 days, while the reply in the public support community took several weeks and it was wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Just to make it clear:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I don't have a problem with ADB or Systrace at all, it works fine on my mobile phone.&lt;/P&gt;&lt;P&gt;It simply just doesn't work with the Sabre-SDB i.MX6 Android BSP because it hasn't been properly configured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Correct answer:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Those are the tweaks you have to perform in the IMX6-L500-100-ANDROID-SOURCE-BSP in order to have Systrace support:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;On lp5.1, sabersd-6dl, to enable systrace, do below step:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;1. In kernel config (/kernel_imx/arch/arm/configs/imx_v7_android_defconfig), add below items&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_TRACING=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_FTRACE=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_CONTEXT_SWITCH_TRACER=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_FUNCTION_TRACER=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_IRQSOFF_TRACER=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_SCHED_TRACER=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_STACK_TRACER=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_EVENT_TRACING=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_FTRACE_SYSCALLS=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2. In device/fsl/sabresd_6dq/init.rc:&lt;BR /&gt;change "mount debugfs none /sys/kernel/debug/" to "mount debugfs none /sys/kernel/debug/ mode=755"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;3. make bootimage, then burn to the board&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;4. After boot up, run "chmod -R 777 /sys/kernel/debug/tracing"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2015 06:12:32 GMT</pubDate>
    <dc:creator>michaelguntli</dc:creator>
    <dc:date>2015-12-17T06:12:32Z</dc:date>
    <item>
      <title>Systrace not working on L5.0.0_1.0.0-ga</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Systrace-not-working-on-L5-0-0-1-0-0-ga/m-p/445187#M68612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I try to run systrace on my Sabre-SDB, I get the following error:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Unexpected error while collecting system trace.&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Unable to find trace start marker 'TRACE:': error opening /sys/kernel/debug/tracing/options/overwrite: Permission denied (13) error opening /sys&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Systrace on Android Developers:&lt;/P&gt;&lt;P&gt;&lt;A href="http://developer.android.com/tools/performance/systrace/index.html" title="http://developer.android.com/tools/performance/systrace/index.html"&gt;Systrace Walkthrough | Android Developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I start a shell, I can confirm that the following folder is missing: /sys/kernel/debug/tracing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;root@imt_imx6:/ # cd /sys/kernel/debug/tracing&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;/system/bin/sh: cd: /sys/kernel/debug/tracing: No such file or directory&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What is required to enable Systrace on the i.MX6?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to this issue it is related to a permission issue?&lt;/P&gt;&lt;P&gt;&lt;A href="https://code.google.com/p/android/issues/detail?id=159809" title="https://code.google.com/p/android/issues/detail?id=159809"&gt;Issue 159809 -&amp;nbsp; android -&amp;nbsp; Systrace tools should provide a better error message -&amp;nbsp; Android Open Source Project - Issue T…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also found the following discussion, which recommends to build a BSP with systrace support:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/21747616/make-systrace-work-with-4-1-2-device-on-mac/22676745#22676745" title="https://stackoverflow.com/questions/21747616/make-systrace-work-with-4-1-2-device-on-mac/22676745#22676745"&gt;https://stackoverflow.com/questions/21747616/make-systrace-work-with-4-1-2-device-on-mac/22676745#22676745&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 07:12:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Systrace-not-working-on-L5-0-0-1-0-0-ga/m-p/445187#M68612</guid>
      <dc:creator>michaelguntli</dc:creator>
      <dc:date>2015-11-26T07:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Systrace not working on L5.0.0_1.0.0-ga</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Systrace-not-working-on-L5-0-0-1-0-0-ga/m-p/445188#M68613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; According to &lt;/SPAN&gt;&lt;A href="http://developer.android.com/intl/ru/tools/help/systrace.html" title="http://developer.android.com/intl/ru/tools/help/systrace.html"&gt;Systrace | Android Developers&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;In order to run Systrace, you must have Android SDK Tools 20 or later installed. &lt;BR /&gt; You must also have Python installed and included in your development computer's &lt;BR /&gt; execution path. In order to generate a trace, you must connect a device running &lt;BR /&gt; Android 4.1 (API Level 16) or higher to your development system using a &lt;BR /&gt; USB debugging connection. &lt;A href="http://developer.android.com/intl/ru/tools/device.html#setting-up" title="http://developer.android.com/intl/ru/tools/device.html#setting-up"&gt;Using Hardware Devices | Android Developers&lt;/A&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; Please refer to “Android_Frequently_Asked_Questions.pdf” about &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;ADB configuring : &lt;BR /&gt; - section 3 (How do I use ADB over Ethernet?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;- section 4 (How do I set up a computer to support ADB?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;- section 5 (How do I set up a computer to support ADB in recovery&amp;nbsp; mode?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/sps/download/license.jsp?colCode=IMX6-L500-100-ANDROID-SOURCE-BSP&amp;amp;appType=file1&amp;amp;location=null&amp;amp;DOWNLOAD_ID=null" title="https://www.nxp.com/webapp/sps/download/license.jsp?colCode=IMX6-L500-100-ANDROID-SOURCE-BSP&amp;amp;appType=file1&amp;amp;location=null&amp;amp;DOWNLOAD_ID=null"&gt;IMX6-L500-100-ANDROID-SOURCE-BSP&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 05:39:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Systrace-not-working-on-L5-0-0-1-0-0-ga/m-p/445188#M68613</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-12-17T05:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Systrace not working on L5.0.0_1.0.0-ga</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Systrace-not-working-on-L5-0-0-1-0-0-ga/m-p/445189#M68614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am really sorry to say, but that's the perfect example of a typical response in the public support community :-(&lt;/P&gt;&lt;P&gt;In our private portal with paid support hours I did get the correct respone within 3 days, while the reply in the public support community took several weeks and it was wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Just to make it clear:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I don't have a problem with ADB or Systrace at all, it works fine on my mobile phone.&lt;/P&gt;&lt;P&gt;It simply just doesn't work with the Sabre-SDB i.MX6 Android BSP because it hasn't been properly configured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Correct answer:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Those are the tweaks you have to perform in the IMX6-L500-100-ANDROID-SOURCE-BSP in order to have Systrace support:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;On lp5.1, sabersd-6dl, to enable systrace, do below step:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;1. In kernel config (/kernel_imx/arch/arm/configs/imx_v7_android_defconfig), add below items&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_TRACING=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_FTRACE=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_CONTEXT_SWITCH_TRACER=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_FUNCTION_TRACER=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_IRQSOFF_TRACER=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_SCHED_TRACER=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_STACK_TRACER=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_EVENT_TRACING=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;CONFIG_FTRACE_SYSCALLS=y&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2. In device/fsl/sabresd_6dq/init.rc:&lt;BR /&gt;change "mount debugfs none /sys/kernel/debug/" to "mount debugfs none /sys/kernel/debug/ mode=755"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;3. make bootimage, then burn to the board&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;4. After boot up, run "chmod -R 777 /sys/kernel/debug/tracing"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 06:12:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Systrace-not-working-on-L5-0-0-1-0-0-ga/m-p/445189#M68614</guid>
      <dc:creator>michaelguntli</dc:creator>
      <dc:date>2015-12-17T06:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Systrace not working on L5.0.0_1.0.0-ga</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Systrace-not-working-on-L5-0-0-1-0-0-ga/m-p/445190#M68615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;A _jive_internal="true" data-content-finding="Community" data-userid="234527" data-username="michaelguntli" href="https://community.nxp.com/people/michaelguntli" style="font-size: 1.286rem; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #8ca9cd;"&gt;Michael Guntli&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have enabled all the CONFIG_* you&amp;nbsp; asked above on SabreSD board and recompiled the boot.img&lt;/P&gt;&lt;P&gt;Attached are the two systrace.html from lollipop and Kitkat BSP which looks different&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to see extra informations for process like surfaceflinger, my app and FRAMES row in Lollipop systrace capture.&lt;/P&gt;&lt;P&gt;Can you shed some more information on why the difference is coming in Lollipop and Kitkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurtaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Apr 2016 07:36:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Systrace-not-working-on-L5-0-0-1-0-0-ga/m-p/445190#M68615</guid>
      <dc:creator>gurtajs4</dc:creator>
      <dc:date>2016-04-17T07:36:48Z</dc:date>
    </item>
  </channel>
</rss>

