From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752934AbbFVU0q (ORCPT ); Mon, 22 Jun 2015 16:26:46 -0400 Received: from mga09.intel.com ([134.134.136.24]:55272 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751116AbbFVU0i (ORCPT ); Mon, 22 Jun 2015 16:26:38 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,661,1427785200"; d="scan'208";a="715727379" Message-ID: <55886F7A.30702@intel.com> Date: Mon, 22 Jun 2015 23:26:34 +0300 From: Adrian Hunter User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Arnaldo Carvalho de Melo CC: Ingo Molnar , linux-kernel@vger.kernel.org, Jiri Olsa Subject: Re: [PATCH V6 08/17] perf tools: Add Intel PT support References: <1432906425-9911-1-git-send-email-adrian.hunter@intel.com> <1432906425-9911-9-git-send-email-adrian.hunter@intel.com> <20150619160451.GM3079@kernel.org> <55846E97.3050705@intel.com> <20150619194156.GE31188@kernel.org> <20150622182444.GI13937@kernel.org> In-Reply-To: <20150622182444.GI13937@kernel.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/06/2015 9:24 p.m., Arnaldo Carvalho de Melo wrote: > Em Fri, Jun 19, 2015 at 04:41:56PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Fri, Jun 19, 2015 at 10:33:43PM +0300, Adrian Hunter escreveu: >>> On 19/06/2015 7:04 p.m., Arnaldo Carvalho de Melo wrote: >>>> Em Fri, May 29, 2015 at 04:33:36PM +0300, Adrian Hunter escreveu: >>>>> Add support for Intel Processor Trace. >> >>>>> Intel PT support fits within the new auxtrace infrastructure. >>>>> Recording is supporting by identifying the Intel PT PMU, >>>>> parsing options and setting up events. Decoding is supported >>>>> by queuing up trace data by cpu or thread and then decoding >>>>> synchronously delivering synthesized event samples into the >>>>> session processing for tools to consume. >> >>>> So, at this point what commands should I use to test this? I expected to >>>> be able to have some command here, in this changeset log, telling me >>>> that what has been applied so far + this "Add Intel PT support", can be >>>> used in such and such a fashion, obtaining this and that output. >> >>>> Now I'll go back and look at the cover letter to see what I can do at >>>> this point and with access to a Broadwell class machine. >> >>> Actually you need the next patch "perf tools: Take Intel PT into use" to do anything. >> >> Yeah, saw that, the title of this patch fooled me into thinking that >> Intel PT support was added :-) >> >> Anyway, stopping for a moment to push stuff ready to Ingo, will get back >> to this after that. > > So, got back to it, added that "take it into use" patch and now trying > to follow that documentation: > > [root@perf4 ~]# perf evlist > intel_pt//u > sched:sched_switch > dummy:u > [root@perf4 ~]# perf report > [root@perf4 ~]# perf record -e intel_pt//u -a sleep 10 > [ perf record: Woken up 1 times to write data ] > [ perf record: Captured and wrote 0.379 MB perf.data ] > [root@perf4 ~]# > [root@perf4 ~]# > [root@perf4 ~]# perf report > [root@perf4 ~]# perf evlist > intel_pt//u > sched:sched_switch > dummy:u > [root@perf4 ~]# uname -r > 4.1.0-rc8 > [root@perf4 ~]# > > I am not getting any "intel_pt//u" event, ideas? Events are synthesized by the decoder. You should see 'instructions:u' events. What does perf report --stdio give? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/