From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751801AbbJETI5 (ORCPT ); Mon, 5 Oct 2015 15:08:57 -0400 Received: from mail.kernel.org ([198.145.29.136]:39920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751458AbbJETI4 (ORCPT ); Mon, 5 Oct 2015 15:08:56 -0400 Date: Mon, 5 Oct 2015 16:08:51 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: David Ahern , Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , Peter Zijlstra , "Liang, Kan" , Don Zickus Subject: Re: [PATCH 5/9] perf tools: Introduce 'P' modifier Message-ID: <20151005190851.GH20515@kernel.org> References: <1444068369-20978-1-git-send-email-jolsa@kernel.org> <1444068369-20978-6-git-send-email-jolsa@kernel.org> <5612BDDC.2080806@gmail.com> <20151005183806.GA27646@krava.landal.opennet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151005183806.GA27646@krava.landal.opennet> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Oct 05, 2015 at 08:38:06PM +0200, Jiri Olsa escreveu: > On Mon, Oct 05, 2015 at 12:13:48PM -0600, David Ahern wrote: > > On 10/5/15 12:06 PM, Jiri Olsa wrote: > > >The 'P' will cause the event to get maximum possible detected precise > > >level. > > >Following record: > > > $ perf record -e cycles:P ... > > >will detect maximum precise level for 'cycles' event > > >and use it. > > Does the end result (which precise level is used) get saved to the header > > and displayed to the user properly? > yep.. > [jolsa@krava perf]$ ./perf record -e cycles:P ls > [ perf record: Woken up 1 times to write data ] > [ perf record: Captured and wrote 0.014 MB perf.data (8 samples) ] > [jolsa@krava perf]$ ./perf evlist > cycles:P > [jolsa@krava perf]$ ./perf evlist -v > cycles:P: size: 112, ... precise_ip: 2 ... [root@zoo ~]# perf record usleep 1 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.016 MB perf.data (12 samples) ] [root@zoo ~]# perf evlist cycles:pp [root@zoo ~]# perf evlist -v cycles:pp: size: 112, { sample_period, sample_freq }: 4000, sample_type: IP|TID|TIME|PERIOD, disabled: 1, inherit: 1, mmap: 1, comm: 1, freq: 1, enable_on_exec: 1, task: 1, precise_ip: 2, sample_id_all: 1, exclude_guest: 1, mmap2: 1, comm_exec: 1 [root@zoo ~]# - Arnaldo