Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp175976imm; Wed, 29 Aug 2018 17:35:09 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbMQEbYvCqpEtRwha4j5a8ki+REMXTZ09ZHuqVTn/gybhGsi+VhhIqTTFEQTePwE+oZBQYb X-Received: by 2002:a17:902:8605:: with SMTP id f5-v6mr7760293plo.271.1535589308990; Wed, 29 Aug 2018 17:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535589308; cv=none; d=google.com; s=arc-20160816; b=aJBlOayaUqOzPmKfvYgkx+6278btZrvHAkDMCDbYbFXcdIavOYKocasVs24Er9KBJd FRrjWPT4XfPRgnDg8WuM9nqFc2sXtOkkKfeymMTY8zXZTKE380ggZI46Wt9WDFMnq8tm M8lwB3WPDyYfOgaJKow6GrqIH2wrTUJ2PfwjX+L7VaAJ/i54b0eu4Cy2mWJKpx9Te92p 0+CdTvvlKSIeTWQoKvUVOcS/395W2zpJYXv00ObdaravO6NFrR6/JxOHXc/aEo0LwhfG pCxcSYvSUVlDbPvfiO7eALJieczGpGK95B/KFgUR7C3d38dFdLKZHiyAG1HjjZyQ09/k f00g== 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:arc-authentication-results; bh=EVt63BQaHkSeE1bgPYtjITe0eV1Y4RjtRL3jKo94UUI=; b=vN9V4xqdvBNTt/jAD9lNmMMBuBqjA8jYF9dQA5xkbPcfGnyvnxsUJeydTzIIMpWpL3 0TAKge4mRyOcSTlw2qd82zoGGp3UANcODY+tvEA4z0VzgAc5+fLoORIIDHWtQa2xODyT 3o1aRhCH18zmJkqkl3iO3csTs9me6+DYOuW3rLTGnZeB4/cHxhaJXRhNb9DpijA6pZNy 0Q8rzdzbQifgBBAGYePt7jx4XbJB/ReybPLqyvnHr4vV7DfnFyv/3fmdBi8PtLuscG9O rRDuZQJETzGKTu0fwJ+UP8JD8d8R93BJLjaFRti08PgQC32rwnyOCKLX86hs5u+iRvAj mClw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 b89-v6si5456521plb.273.2018.08.29.17.34.54; Wed, 29 Aug 2018 17:35:08 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727170AbeH3Ec4 (ORCPT + 99 others); Thu, 30 Aug 2018 00:32:56 -0400 Received: from lgeamrelo12.lge.com ([156.147.23.52]:57138 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725760AbeH3Ec4 (ORCPT ); Thu, 30 Aug 2018 00:32:56 -0400 Received: from unknown (HELO lgeamrelo04.lge.com) (156.147.1.127) by 156.147.23.52 with ESMTP; 30 Aug 2018 09:33:27 +0900 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: namhyung@kernel.org Received: from unknown (HELO sejong) (10.177.227.17) by 156.147.1.127 with ESMTP; 30 Aug 2018 09:33:27 +0900 X-Original-SENDERIP: 10.177.227.17 X-Original-MAILFROM: namhyung@kernel.org Date: Thu, 30 Aug 2018 09:33:27 +0900 From: Namhyung Kim To: Stephane Eranian Cc: Arnaldo Carvalho de Melo , LKML , Jiri Olsa , Peter Zijlstra , kernel-team@lge.com Subject: Re: [RFC] perf script: callchain handling is not useful Message-ID: <20180830003327.GA3164@sejong> References: <20180829135440.GA25381@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Aug 29, 2018 at 08:14:12AM -0700, Stephane Eranian wrote: > On Wed, Aug 29, 2018 at 6:54 AM Arnaldo Carvalho de Melo > wrote: > > > > 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? > > > Yeah, that should do it. > Thanks. I found this: $ perf script -h |& grep -A1 hide -G, --hide-call-graph When printing symbols do not display call chain Thanks, Namhyung