I am trying to enable code coverage in 4.4 kernel. Steps followed for the sameAdded the following changes in the msmcortex_defconfig file in arch/arm64/configs folderCONFIG_GCOV_KERNEL=yCONFIG_DEBUG_FS=yAdded GCOV_PROFILE := y in the make file of the directories which need to be profiledAfter doing these changes the respective .gcno files are generated. But after flashing the kernel, there is a panic causing a continuous restart of the target.Below are the serial logs of the panic[    5.335448] Unable to handle kernel paging request at virtual address 955b12b0[    5.340733] pgd = ffffff8009ed2000[    5.347786] [955b12b0] *pgd=0000000000000000, *pud=0000000000000000[    5.357240] ------------[ cut here ]------------[    5.357480] Kernel BUG at ffffff8008358c70 [verbose debug info unavailable][    5.362177] Internal error: Oops - BUG: 96000005 [#1] PREEMPT SMP[    5.542195] Exception stack(0xffffffc0f2c3bb10 to 0xffffffc0f2c3bc30)[    5.544377] bb00:                                   00000000955b12b8 ffffff800814330c[    5.550979] bb20: ffffffc0f2c3bcd0 ffffff8008358c70 ffffffc0f2c3bb60 ffffff800808bf10[    5.558791] bb40: 0000000000000001 ffffff8008f424ec 0000000000000140 ffffffc0f2c30000[    5.566604] bb60: ffffffc0f2c3bba0 ffffff80080cf918 0000000000000001 ffffff8008f424ec[    5.574415] bb80: 0000000000000140 ffffffc0f2c30000 ffffff8009bfa000 0000000000000000[    5.582229] bba0: ffffffc0f2c3bbc0 ffffff8008f424ec 00000000955b12b8 00000000955b12b0[    5.590040] bbc0: ffffff80098ef000 0000000000000000 ffffffc0f2c3bcf0 ffffffc0f2c3bc70[    5.597853] bbe0: 0000000000000000 fffffffffffffff8 ffffffc0f075da38 756dff7364726471[    5.605665] bc00: 7f7f7f7f7f7f7f7f 0101010101010101 0000000000000028 0000000000000020[    5.613477] bc20: 0ffffffffffffffe ffffffc0f2c98e00[    5.621281] [<ffffff8008358c70>] strlen+0x60/0x90[    5.625971] [<ffffff800814330c>] gcov_event+0x158/0x344[    5.630834] [<ffffff8008142834>] gcov_enable_events+0x58/0x88[    5.635867] [<ffffff8009734ea4>] gcov_fs_init+0x9c/0xcc[    5.641771] [<ffffff8008081c38>] do_one_initcall+0x19c/0x1b8[    5.646806] [<ffffff8009720e14>] kernel_init_freeable+0x1e8/0x288[    5.652714] [<ffffff8008f39ef4>] kernel_init+0x18/0x100[    5.658696] [<ffffff8008084cd0>] ret_from_fork+0x10/0x40[    5.663734] Code: 8b4c0c00 d65f03c0 f10020ff cb0703e7 (a8c10c22)[    5.669327] ---[ end trace 96c7a79c91d422a5 ]---[    5.675324] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000bLooks like it has crashed in gcov_event() function. Any lead on this issue would be appreciated.Please let me know if any one faced this issue and fixed it earlier.
Kernel panic after enabling GCOV code coverage
kernel;kernel panic