Tried to used perf on JFFS2 and it fails because of shared readonly mmap: ptr = mmap(NULL, size, PROT_READ, MAP_SHARED,0, fd); (errno says EINVAL here) I wonder in not this combo should work?