From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932202Ab3LDXz2 (ORCPT ); Wed, 4 Dec 2013 18:55:28 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:36262 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756222Ab3LDXzZ (ORCPT ); Wed, 4 Dec 2013 18:55:25 -0500 Date: Wed, 4 Dec 2013 15:02:39 -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: <20131204230239.GB9205@kroah.com> References: <20131204070442.GA31665@kroah.com> <20131204170703.GA14859@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 04:12:56PM -0500, Adrien Vergé wrote: > 2013/12/4 Greg Kroah-Hartman : > > Your pid implementation is broken, see my other email about that :( > > Thank you for your remarks on pid. I'll try to correct that. > > > And again, what's wrong with the existing tracing functionalty that is > > processor agnostic? Why can't we just delete this driver today and use > > the existing trace code? > > As far as I know, the tracing functionality in > /sys/kernel/debug/tracing does not take advantage of ETM. ETM is a > dedicated hardware that greatly reduces tracing overhead. It only > exists on ARM platforms. 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? > I understand using sysfs here is not the cleanest way. I patched my > kernel to meet my needs (trace a specific process or address range), > and I thought these small modifications could be useful -- until > bigger work is done to remove ETM control from sysfs. > > Do you think it's worth correcting my patch (for pid namespaces) and > re-submitting it? Or should we wait for someone to port ETM tracing to > debugfs? What's wrong with the in-kernel tracing logic that you can't use that instead of the ETM stuff? And no, I don't think adding more functionality to this will be good to do, ideally it could just be dropped... thanks, greg k-h