<?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>i.MX Processors中的主题 Re: GCOV Code coverage</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GCOV-Code-coverage/m-p/900454#M135902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &amp;nbsp;Fadilah Mohd Ali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gcov is not supported by the BSP so we do not have documentation on how to set it up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That being said, please make sure that the filesystem in which it will run it’s not read-only (this may be a bit tricky on Android) and you may increase the .img file, but you need to declare it on the latest Android versions and edit the UUU script to reflect this change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully another Community user may provide more insight from their own experience setting up gcov.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Apr 2019 16:26:05 GMT</pubDate>
    <dc:creator>gusarambula</dc:creator>
    <dc:date>2019-04-18T16:26:05Z</dc:date>
    <item>
      <title>GCOV Code coverage</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GCOV-Code-coverage/m-p/900453#M135901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to get code coverage(gcov) for Linux kernel(Android) in i.MX 8M evaluation kit? I share based on my study&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;CASE 1:(specific directory)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;I configure in config file as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;CONFIG_DEBUG_FS=y&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;CONFIG_GCOV_KERNEL=y &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;CONFIG_GCOV_FORMAT_AUTODETECT=y&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;In specific directory I would like to get coverage, I configure the Makefile as below:&lt;BR /&gt;&lt;STRONG&gt;GCOV_PROFILE := y&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #0000ff; font-size: 13px;"&gt;&lt;EM&gt;Result: Board cannot boot up, keep rebooting until hangup&lt;BR /&gt;&lt;BR /&gt;***if did not configure the Makefile(&lt;STRONG style="color: #000000;"&gt;GCOV_PROFILE := y)&lt;/STRONG&gt; ..then the gcov folder will be successfully created under directory&lt;STRONG&gt;&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;/sys/kernel/debug/gcov.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #0000ff; font-size: 13px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-weight: 400;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;CASE 2:(entire kernel)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;I configure in config file as below:&lt;/P&gt;&lt;P style="color: #3d3d3d; font-weight: 400;"&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-weight: 400;"&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;CONFIG_DEBUG_FS=y&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;CONFIG_GCOV_KERNEL=y&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;CONFIG_GCOV_FORMAT_AUTODETECT=y&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d; font-weight: 400;"&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&lt;STRONG&gt;CONFIG_GCOV_PROFILE_ALL=y&lt;BR /&gt;&lt;SPAN style="color: #0000ff; font-weight: 400; font-size: 13px;"&gt;&lt;EM&gt;Result:&amp;nbsp;Error during patching by uuu tools because the img file is too big&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 02:25:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GCOV-Code-coverage/m-p/900453#M135901</guid>
      <dc:creator>fadilahali90</dc:creator>
      <dc:date>2019-04-18T02:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: GCOV Code coverage</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GCOV-Code-coverage/m-p/900454#M135902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &amp;nbsp;Fadilah Mohd Ali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gcov is not supported by the BSP so we do not have documentation on how to set it up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That being said, please make sure that the filesystem in which it will run it’s not read-only (this may be a bit tricky on Android) and you may increase the .img file, but you need to declare it on the latest Android versions and edit the UUU script to reflect this change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully another Community user may provide more insight from their own experience setting up gcov.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2019 16:26:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GCOV-Code-coverage/m-p/900454#M135902</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2019-04-18T16:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: GCOV Code coverage</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GCOV-Code-coverage/m-p/900455#M135903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to debug the kernel log of the CASE 1 above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that, the error &lt;STRONG&gt;&lt;EM&gt;"Unable to handle kernel paging request at virtual address adbf1650"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this error return by&amp;nbsp;  &lt;STRONG&gt;gcov_info_filename&amp;nbsp;&lt;/STRONG&gt;function in the &lt;STRONG&gt;gcc_4_7.c file&lt;/STRONG&gt;. The function is referring to the address&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;adbf1650&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Finally it will trigger error "&lt;STRONG&gt;[&amp;nbsp; &amp;nbsp; 1.410724] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.407082] [&amp;lt;ffff000008ed55a0&amp;gt;] strlen+0x60/0x84&lt;BR /&gt;[ 1.407090] [&amp;lt;ffff0000081a5920&amp;gt;] gcov_event+0x208/0x388&lt;BR /&gt;[ 1.407095] [&amp;lt;ffff0000081a4cf8&amp;gt;] gcov_enable_events+0x30/0x5c&lt;BR /&gt;[ 1.407103] [&amp;lt;ffff00000951a550&amp;gt;] gcov_fs_init+0x9c/0xcc&lt;BR /&gt;[ 1.407110] [&amp;lt;ffff000008083cbc&amp;gt;] do_one_initcall+0x48/0x14c&lt;BR /&gt;[ 1.407117] [&amp;lt;ffff000009500e88&amp;gt;] kernel_init_freeable+0x1bc/0x270&lt;BR /&gt;[ 1.407122] [&amp;lt;ffff000008eebc48&amp;gt;] kernel_init+0x10/0x140&lt;BR /&gt;[ 1.407127] [&amp;lt;ffff000008085080&amp;gt;] ret_from_fork+0x10/0x18&lt;BR /&gt;[ 1.407133] Code: 8b4c0c00 d65f03c0 f10020ff cb0703e7 (a8c10c22)&lt;BR /&gt;[ 1.407145] ---[ end trace 59de2c94e9f472ee ]---&lt;BR /&gt;[ 1.410724] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 05:29:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GCOV-Code-coverage/m-p/900455#M135903</guid>
      <dc:creator>fadilahali90</dc:creator>
      <dc:date>2019-07-03T05:29:04Z</dc:date>
    </item>
  </channel>
</rss>

