On Wed, 11 Dec 2019 at 18:01, Joey Jiao notifications@github.com wrote:
Another point is I cannot see any sink here: ls -l /sys/bus/event_source/devices
Please stop using different fonts in your email - it is very hard to read.
Here is the output I get on my reference platform:
root@linaro-developer:/sys/bus/event_source/devices/cs_etm# ls cpu0 cpu3 format power type cpu1 cpu4 nr_addr_filters sinks uevent cpu2 cpu5 perf_event_mux_interval_ms subsystem
You should have a "sinks" directory in there where all the sinks are listed. If you don't the kernel you are using is either too old, the DTB isn't describing sinks correctly, the extra set of patches that were added on top of (whatever) tree you are using is incomplete or a mix of those.
I suggest you purchase a dragonboard 410c and see how coresight works on a mainline kernel on that platform. From there you'll be able to troubleshoot your way backward on your current platform. Last but not least and to repeat my advice from a previous email, please spend time to really understand the documentation available on a v5.4 kernel - it will make your life (and mine) a lot easier. If there is something in there that is not clear or needs more details, send us a patch and it will be our pleasure to consider it.
/cs_etm/ total 0
lrwxrwxrwx. 1 root root 0 Dec 8 13:00 cpu0 -> ../platform/soc/7040000.etm/coresight-etm0 lrwxrwxrwx. 1 root root 0 Dec 8 13:00 cpu1 -> ../platform/soc/7140000.etm/coresight-etm1 lrwxrwxrwx. 1 root root 0 Dec 8 13:00 cpu2 -> ../platform/soc/7240000.etm/coresight-etm2 lrwxrwxrwx. 1 root root 0 Dec 8 13:00 cpu3 -> ../platform/soc/7340000.etm/coresight-etm3 lrwxrwxrwx. 1 root root 0 Dec 8 13:00 cpu4 -> ../platform/soc/7440000.etm/coresight-etm4 lrwxrwxrwx. 1 root root 0 Dec 8 13:00 cpu5 -> ../platform/soc/7540000.etm/coresight-etm5 lrwxrwxrwx. 1 root root 0 Dec 8 13:00 cpu6 -> ../platform/soc/7640000.etm/coresight-etm6 lrwxrwxrwx. 1 root root 0 Dec 8 13:00 cpu7 -> ../platform/soc/7740000.etm/coresight-etm7 drwxr-xr-x. 2 root root 0 Dec 8 12:58 format -r--r--r--. 1 root root 4096 Dec 8 12:58 nr_addr_filters -rw-r--r--. 1 root root 4096 Dec 8 13:00 perf_event_mux_interval_ms drwxr-xr-x. 2 root root 0 Dec 8 13:00 power lrwxrwxrwx. 1 root root 0 Dec 8 13:00 subsystem -> ../../bus/event_source -r--r--r--. 1 root root 4096 Dec 8 12:58 type
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Linaro/perf-opencsd/issues/3?email_source=notifications&email_token=AAELPW643R7HGSGCELBTFV3QYGENHA5CNFSM4JY2B6E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGVDC2I#issuecomment-564801897, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAELPWYRU3JEY4MAU5YOUELQYGENHANCNFSM4JY2B6EQ .