From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753523Ab3LPLIW (ORCPT ); Mon, 16 Dec 2013 06:08:22 -0500 Received: from mga01.intel.com ([192.55.52.88]:40595 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753335Ab3LPLIV (ORCPT ); Mon, 16 Dec 2013 06:08:21 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.95,494,1384329600"; d="scan'208";a="444932422" From: Alexander Shishkin To: Ingo Molnar Cc: Peter Zijlstra , Arnaldo Carvalho de Melo , Ingo Molnar , linux-kernel@vger.kernel.org, David Ahern , Frederic Weisbecker , Jiri Olsa , Mike Galbraith , Namhyung Kim , Paul Mackerras , Stephane Eranian , Andi Kleen , Adrian Hunter Subject: Re: [PATCH v0 00/71] perf: Add support for Intel Processor Trace In-Reply-To: <20131211134724.GC3101@gmail.com> References: <1386765443-26966-1-git-send-email-alexander.shishkin@linux.intel.com> <20131211130448.GA2480@gmail.com> <87r49jttqr.fsf@ashishki-desk.ger.corp.intel.com> <20131211134724.GC3101@gmail.com> User-Agent: Notmuch/0.15.2+182~gd0bd88f (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu) Date: Mon, 16 Dec 2013 13:08:16 +0200 Message-ID: <87bo0ht5nj.fsf@ashishki-desk.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ingo Molnar writes: > * Alexander Shishkin wrote: > >> Ingo Molnar writes: >> >> > * Alexander Shishkin wrote: >> > >> >> Hi, >> >> >> >> This patchset adds support for Intel Processor Trace (PT) extension >> >> [1] of Intel Architecture that allows the capture of information >> >> about software execution flow, to the perf kernel and userspace >> >> infrastructure. We provide an abstraction for it called "itrace" for >> >> "instruction trace" ([2]). >> > >> > Ok, this feature looks rather interesting. >> > >> > On the hardware side this is essentially BTS (Branch Trace Store) >> > on steroids (with many extensions), right? >> >> Yes, you get timestamps and all sorts of other useful data in the >> trace and the performance intrusion is much less than that of BTS. > > So the problem I see here right now that BTS is rarely used and AFAICS > close to unmaintained. It has some very minimal support in 'perf > script' but that's all I can see. > > So one necessary precondition to merging PT support would be to have a > convincing case that this kind of stuff is generally useful. This is not unreasonable. We can have some of this functionality with BTS. > One good approach to do that would be to unify the BTS and PT tooling > (the kernel side can be unified as well, to the extent it makes > sense), and to prove it via actual functionality that this stuff > matters. BTS is available widely, so the tooling can be tested by > anyone who's interested. > > Allow people to record crashes in core dumps, allow them to look at > histograms/spectrograms of BTS/PT traces, zoom in on actual traces, > etc. - make it easier to handle this huge amount of data and visualize > traces in other ways you find useful, etc. > > None of that is done right now via BTS so nobody uses it. So I can make BTS appear as an "itrace" pmu similarly to PT. One question that comes to mind is should we then dispose of the old interface that's used for accessing BTS functionality or make it coexist with the new one. Regards, -- Alex