From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752599AbbICS5i (ORCPT ); Thu, 3 Sep 2015 14:57:38 -0400 Received: from mga14.intel.com ([192.55.52.115]:30903 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751542AbbICS5d (ORCPT ); Thu, 3 Sep 2015 14:57:33 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,463,1437462000"; d="scan'208";a="761793773" From: Andi Kleen To: Kenth Eriksson Cc: "linux-kernel\@vger.kernel.org" Subject: Re: perf fails to mmap data file (JFFS2) References: <1441266585059.29731@transmode.com> Date: Thu, 03 Sep 2015 11:57:32 -0700 In-Reply-To: <1441266585059.29731@transmode.com> (Kenth Eriksson's message of "Thu, 3 Sep 2015 07:49:45 +0000") Message-ID: <87d1xz49gj.fsf@tassilo.jf.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kenth Eriksson 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. -Andi