Re: perf fails to mmap data file (JFFS2)
From: Andi Kleen
Date: Thu Sep 03 2015 - 14:57:45 EST
Kenth Eriksson <kenth.eriksson@xxxxxxxxxxxxx> writes:
> perf on 4.1 fails to mmap the perf data file (in
> __perf_session__process_events) with error code 22 (invalid
> argument). I believe the JFFS2 file system does not support PROT_READ
> and MAP_SHARED. How can this be fixed? Can we change from MAP_SHARED
> to MAP_PRIVATE, or is there a reason to make it shared?
MAP_PRIVATE should be fine.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/