Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp567605imm; Wed, 29 Aug 2018 06:56:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbRFvg71gw7LvRKNzrCGlXtVmyu+dl8mUkYRexrGik0PzS8NtMPo+osXr6wvkeLGtgZRSgs X-Received: by 2002:a62:e813:: with SMTP id c19-v6mr6159883pfi.124.1535550997952; Wed, 29 Aug 2018 06:56:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535550997; cv=none; d=google.com; s=arc-20160816; b=wsCEvwb/rFNZ6ekDFYFuNcmNfHAGWSu1O0VSvD5fQOzwW08ZxTupDs+QKO9hvVIG8a 6Lk5KqtOzdSJ+Y0QQ76XnKC2njdDN/mEFA6nRynnJ05hEc5dYclUOcT93WVjw20bHZrJ L7Y0TOajDvOW9zXfCUav0g/vdGm2hdJrQtPeQwy9CEQzoeKR6t7D3XjuaGJ4Q0CmvSnr iEWIEOt+Q4U8tChn9USjs2AVaYoQPvhwK8SsRQ3izoxP1CT3djgyOYVQdIboyZN52nfZ agJC9RdDlzn0EmxuoWmON0ohpbek+n4mjZXd2gb5MIbEd5CZJDgwVaKG6UbG4oNXprh7 By6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=eeuMoNN6VE5wYZmwZEip3T6ea1MGDMxV5ydKqYBSWjg=; b=0iKFAqIcPZkv6P9CIzc1jnx/2rJe5JaWo44j+LHcRIrzrSoSl4KTc6gtVWhQmgIOl2 QGcxWYUvwM2oNd2lkImAjVujB7nnsMmTAVaUi3SLCIOOmo4IcT+NxzCg1NGNT3pjOw7O rU4V8BbT/9ZXFOXvfN1cmELjvF7rQKRGQvN6UhgRt1P5I0K6epR8W8jIpk8wwWYHfWd1 Pcb9q57kCMGFC1mWxSDkyNOjf5GxSs5MgJaxbp4/xHhZn2HCab4eT1qkwSneVgl460sn 7NyLBKcxV/hzUmRZSVnbSqR11YZSreahFWiCF8rciAJ6HJ5IX5p9Ul3riykZ7abIRmLs 6PrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=B6fr3mXI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t2-v6si3869110pgg.422.2018.08.29.06.56.23; Wed, 29 Aug 2018 06:56:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=B6fr3mXI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728619AbeH2Rvx (ORCPT + 99 others); Wed, 29 Aug 2018 13:51:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:45224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727316AbeH2Rvx (ORCPT ); Wed, 29 Aug 2018 13:51:53 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 30D5320856; Wed, 29 Aug 2018 13:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535550889; bh=QlQC2GuDv0TaBwxZ8bdgSfd6jD/QlOOlOD18YhDxcRg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B6fr3mXI9ZM7LnACrtIe/4leQVEeZyreL5YsAhQQNzY8IIu0GzV5uqfjC5LgL7STq 7oSG+aQwg0dF+xcewz02wMrya9VpOiRKUowavwA8IICDuCxk41P0PHwOzS5ntl3lEf MHw7Rz01bKxsr9rWFqPatEMxNu7Q0Me8HWYLVuhg= Received: by jouet.infradead.org (Postfix, from userid 1000) id 049F0141C3F; Wed, 29 Aug 2018 10:54:40 -0300 (-03) Date: Wed, 29 Aug 2018 10:54:40 -0300 From: Arnaldo Carvalho de Melo To: Stephane Eranian Cc: LKML , Jiri Olsa , Namhyung Kim , Peter Zijlstra Subject: Re: [RFC] perf script: callchain handling is not useful Message-ID: <20180829135440.GA25381@kernel.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Aug 28, 2018 at 07:41:31PM -0700, Stephane Eranian escreveu: > Hi, > > I am doing the following simple collection with callchain and load profiling: > > $ perf record -g -d -e cpu/event=0xd0,umask=0x81/pp my_test_program > > But when I type: > $ perf script -F ip,addr > ffff9d4821346878 > ffffffff9d58df25 > ffffffff9d58e054 > ffffffff9d5965bb > ffffffff9d640650 > ffffffff9d697d06 > ffffffff9d63ec60 > ffffffff9d640322 > ffffffff9d64070c > ffffffff9d455a60 > 7030c7 > > ffff9d4638ba84a0 > ffffffff9d5df447 > ffffffff9d5eaf4a > ffffffff9d63e165 > ffffffff9d63e439 > ffffffff9d697d98 > ffffffff9d63ec60 > ffffffff9d640322 > ffffffff9d64070c > ffffffff9d455a60 > 7030c7 > I also see the callchain and it is not clear which is the IP. Further > more parsing becomes more difficult because of multiple lines per > sample. I understand that multiline is likely because of > symbolization. But if I don't want symbolization, it should be > possible to print all in one line. Humm, to have this not break possibly existing scripts, perhaps we can have something like: $ perf script -F ip,-callchain,addr ? And if asked explicitely for the callchain, then it gets added in the same line? - Arnaldo > The current output is not very useful. You expect perf script to give > you one line per sample and only what you want. Callchain != IP. > > I think the following should happen: > - do not print callchain when asked for the IP. Create a callchain filter. > - print callchain on the same line, much like what is done for brstack > > It is not clear to me why callchain and ip were lumped together. > Any opinion on my proposal? > Thanks.