From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756516Ab3LED77 (ORCPT ); Wed, 4 Dec 2013 22:59:59 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:37772 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752620Ab3LED76 (ORCPT ); Wed, 4 Dec 2013 22:59:58 -0500 Date: Wed, 4 Dec 2013 20:01:04 -0800 From: Greg Kroah-Hartman To: Adrien =?iso-8859-1?Q?Verg=E9?= Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Russell King , Ben Dooks , Will Deacon , Dietmar Eggemann , Andrew Morton , "zhangwei(Jovi)" , Randy Dunlap Subject: Re: [PATCH 0/3] ARM Coresight: Enhance ETM tracing control Message-ID: <20131205040104.GA14641@kroah.com> References: <20131204070442.GA31665@kroah.com> <20131204170703.GA14859@kroah.com> <20131204230239.GB9205@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 04, 2013 at 10:49:25PM -0500, Adrien Vergé wrote: > 2013/12/4 Greg Kroah-Hartman : > > How much overhead does the existing tracing code have on ARM? Is ETM > > still even needed? Why not just use ETM for the core tracing code > > instead? > > Coresight ETM is not just faster than /sys/kernel/debug/tracing, it > provides more detailed and customisable info. For instance, you can > trace every load, store, instruction fetch, along with the number of > cycles taken, with almost zero-overhead. Can't you already do that with the 'perf' tool the kernel provides without the ETM driver? > > What's wrong with the in-kernel tracing logic that you can't use that > > instead of the ETM stuff? > > ETM has a different purpose. Integrating it in > /sys/kernel/debug/tracing would not take advantage of all its > features. What is it's purpose then? At first glance, this seems to be exactly what 'perf' provides already. Doesn't perf work on ARM today? thanks, greg k-h