From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161692AbcBQO0X (ORCPT ); Wed, 17 Feb 2016 09:26:23 -0500 Received: from mail.kernel.org ([198.145.29.136]:43139 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161663AbcBQO0V (ORCPT ); Wed, 17 Feb 2016 09:26:21 -0500 Date: Wed, 17 Feb 2016 11:26:16 -0300 From: Arnaldo Carvalho de Melo To: Andi Kleen Cc: Jiri Olsa , lkml , David Ahern , Ingo Molnar , Namhyung Kim , Peter Zijlstra , Stephane Eranian Subject: Re: [PATCH 01/23] perf record: Add --all-user/--all-kernel options Message-ID: <20160217142616.GB15386@kernel.org> References: <1455525293-8671-1-git-send-email-jolsa@kernel.org> <1455525293-8671-2-git-send-email-jolsa@kernel.org> <20160216165601.GF17690@kernel.org> <20160217031037.GA11236@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160217031037.GA11236@tassilo.jf.intel.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Feb 16, 2016 at 07:10:37PM -0800, Andi Kleen escreveu: > > Need to investigate why there are kernel samples when --all-user is used and > > the other way around as well. > This is a known issue due to skid. PEBS usually avoids it. Right, thanks for pointing this out, we have to detect that :p is not being used and warn the user about this possibility, i.e. user asks for just kernel samples, tool finds user samples, tell that using :p+ may help. Now, using plain: # perf record --all-user -a sleep 2 will make it use the default which is 'cycles' with the highest precision available on the machine, and that leaves just a few samples that supposedly have the MISC_KERNEL bit set in the perf_event_attr header, those are not mapping to any mmap area known to the tool, I'm investigating what this is. I'll apply the patch as-is, we'll check later OPT_ magic to tell that those options are mutually exclusive. - Arnaldo