Hi Eric,
On Wed, Jul 01, 2020 at 10:41:21AM +0800, H MJ wrote:
Dears,
After I moved some kernel codes from Linux version 5.8 into 4.19 (current device), I can see the device name in the sinks folder. (Table1) However, both of perfK30 (perf builtin version) and perf53 (perf linux 53 version) still happened same problems. (Table 2)
Could you give me some suggestions?
I am busy on the tasks in hand, so didn't follow up your questions closely.
When I saw you are using different code bases for kernel and perf tool, this seems to me it is not the right way. I suggest you could firstly to use the same code base for both kernel and perf tool, e.g. you can use the mainline kernel, or if you have SoC vendor's kernel version, either is okay.
The kernel and perf tool have many upgradation from 4.19 to 5.8, especially for perf tools, if you want to back port some patches from 5.8 to 4.19, it's easily to miss some code pices and cause compatibility issue. If jump to differnt code base, the questions will be floating.
Again, I still suggest you could firstly get clear the CoreSight device naming issue, e.g. why the device names are not using default namings, like tmc-etr0, tmc-etf0, etc? Could you check this and also check with SoC vendor if possible?
And as Mike and me have suggested some code pieces for perf tool and driver, suggest you could dig into it and get more debugging info.
Thanks, Leo