From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752846AbbICHtv (ORCPT ); Thu, 3 Sep 2015 03:49:51 -0400 Received: from smtp.transmode.se ([31.15.61.139]:60215 "EHLO smtp.transmode.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751348AbbICHtu convert rfc822-to-8bit (ORCPT ); Thu, 3 Sep 2015 03:49:50 -0400 From: Kenth Eriksson To: "linux-kernel@vger.kernel.org" Subject: perf fails to mmap data file (JFFS2) Thread-Topic: perf fails to mmap data file (JFFS2) Thread-Index: AQHQ5h0ZeziE8W7nckCTG/Pw4iSAAw== Date: Thu, 3 Sep 2015 07:49:45 +0000 Message-ID: <1441266585059.29731@transmode.com> Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.168.200.4] Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thanks, Kenth