hi Mike:
You do not have the cs_etm// event listed in your version of perf - which indicates that you have not built a version that has the correct updates to work with OpenCSD. You say you are building a 4.2 kernel - this does not have the additional patches required. I recommend using latest stable one based on the 4.12 kernel - this is the perf-opencsd-4.12 branch in the OpenCSD github project, which will work correctly with the latest OpenCSD libary. These branches contain additional patches not yet upstreamed that build perf versions that work with the OpenCSD library.
Sorry for not describing my environment more clearer. I use below kenel git tree with tag 4.2 instead of OpenCSD git tree. https://github.com/torvalds/linux
if so, from the below branch names, it seems the oldest kernel version in OpenCSD-git-hub is 4.5. Why you mentioned, this does not have the additional patches required for 4.2? Please correct me, if I am wrong. Appreciate your kind help,
======================================== remotes/origin/perf-opencsd-4.10 remotes/origin/perf-opencsd-4.11 remotes/origin/perf-opencsd-4.12 remotes/origin/perf-opencsd-4.5 remotes/origin/perf-opencsd-4.5-rc6-bkk16 remotes/origin/perf-opencsd-4.6 remotes/origin/perf-opencsd-4.7 remotes/origin/perf-opencsd-4.8 remotes/origin/perf-opencsd-4.9 =========================================