Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp296754imm; Wed, 29 Aug 2018 22:02:07 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb2Cnm4vRYB9UMl79WEew34WOChF9uf5SHD1AMeppzSonvam0r8BQR1C5IrMJsNDjTa/muY X-Received: by 2002:a17:902:49:: with SMTP id 67-v6mr8819012pla.206.1535605327707; Wed, 29 Aug 2018 22:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535605327; cv=none; d=google.com; s=arc-20160816; b=Qy3DNFzmSxjQIx62BzMSlGg0v8EMh83mXzE+ebq7X3lV8y3IU0RcB5TnXqkGG2B6nF wus+YPkkOK2VsXPHKFpqmFacNvxwdCr3jiw42uJIG2e5Wk2PwVZvsCesUoo3qBE0prMy lOqMmNSqVE9fBqqZLq6Ha0bFfdmK+sv4iTwFxpUVeF/LCou3L584nkMVpPULuggOHw28 42xBMuGc3d/9HIroNuQrszXvco40j6Q6bsW65MiyK3vNtF0/6UsFgvyezKLGslKWCZHu RHPM1ZUbuSQyFuh8iR+l48X6Qce7z8Z+VszWCUa5BieIrmDFwh3xRb4N/eracAWBJ0UA +sKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=C3uoUtLLgl0X3dQ39bvq4M6NJmP+9aOoScrmE9rM+8A=; b=Yys4Ciuy/Pvv89MlU9WEC5ymlA3+I3r5iooTwmmaOqGZDHQnp1zOXlkmX5ZPx1FyQz sxy5lF/En/edPpcMaDxdp2bLgH5brNr473akfUpVFEijim/JHp0UenZOvuZudcSlcvaQ 7M8s8FfGTOSyaAatz9rwGEoNJo6wusZCCQFCVYBBtjYtElOvn44BFnnVY3FanxDrqNnV CXn/0H8nZ/9zNIZPbx5DhTEJIWBhKFGhyOSbpX8hXWawmxRF1v5n09an189p20hJ0pSH G/fIZebuYbstDsgoRjpkLjzWEiNOqrPB8ImX9LeCXz+yLdB+YD1g0QwXAyqxwYa8ozTy I9Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Y8MJCjgd; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2-v6si4207613pli.100.2018.08.29.22.01.52; Wed, 29 Aug 2018 22:02:07 -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=@google.com header.s=20161025 header.b=Y8MJCjgd; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727242AbeH3JBI (ORCPT + 99 others); Thu, 30 Aug 2018 05:01:08 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:37015 "EHLO mail-wr1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727073AbeH3JBI (ORCPT ); Thu, 30 Aug 2018 05:01:08 -0400 Received: by mail-wr1-f53.google.com with SMTP id u12-v6so6741825wrr.4 for ; Wed, 29 Aug 2018 22:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=C3uoUtLLgl0X3dQ39bvq4M6NJmP+9aOoScrmE9rM+8A=; b=Y8MJCjgdGlX99+qXn9PVB8GxquEa9LLfORkEXJR8glItteYKlDZfJQrLifl58cyaA5 uoHToh0bp3X2WforY2aGCeIGxkZz+ZQFUfVHXIc1qVTrfQo0yceiIBTkj/2x9xCMSXCt l55BI4ZvrDor4qYckD8ioixYqbZXDygUhLbcKUQc21bqIxK+sLPg4yPZf+WAFw6Ebmk0 EYtW898ENMDgKlWOn82z6scuSZEgMP4zpaddE+2ueTvmMYPB/u5kiXPT4T+GobfZARLw s5C93xf1Wvla1h4m7dYkyd43JSivp+JE7qp7luGD4TRhgUTAdAG7ABPN11f6K/XrzLPL 2yiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=C3uoUtLLgl0X3dQ39bvq4M6NJmP+9aOoScrmE9rM+8A=; b=ayn5mZ73L9br/YIn3RlTK6Nel+MvaYavOMjYR6BLk6eNkCdNSD7+F+rLAEOnQajEgq YUsBxkCQBAblndwkrkqoGff7+7dqLptsf+INm0Zf2bpixA03EG9pL5LoBv3KLYZYNbEX /AzRZw2cmh2j0yoMj2qaS1qCnxE7VXwFvDms4MB4F0OClqrherg3bD+qBgfrm9U8Dp1D tbYFreTpaJmNLIxz2UDSzBYjObYEGx8GZbxhIP2T573kuMhQwSATMgEglxEYCv2elJVe gI45177zFhaoc45ahia2uBRLWdc0BKSlrCJTufJ94cvbbOoYsIT/pusHKed6n6BaTjPB 8qYw== X-Gm-Message-State: APzg51BVdNU1IZWgd6wlz+HnzBYWCTu4qUcFDzR7cp88fX/a4oVq1oIy giDSQGcoc+K1JxBLsC4JM/ofkZsUEdPckqccGd+W9A== X-Received: by 2002:a5d:45cb:: with SMTP id b11-v6mr6239104wrs.122.1535605248349; Wed, 29 Aug 2018 22:00:48 -0700 (PDT) MIME-Version: 1.0 References: <20180829135440.GA25381@kernel.org> <20180830003327.GA3164@sejong> In-Reply-To: <20180830003327.GA3164@sejong> From: Stephane Eranian Date: Wed, 29 Aug 2018 22:01:17 -0700 Message-ID: Subject: Re: [RFC] perf script: callchain handling is not useful To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , LKML , Jiri Olsa , Peter Zijlstra , kernel-team@lge.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 29, 2018 at 5:33 PM Namhyung Kim wrote: > > 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 > Yes, I had found it too. But my problem is twofold: - ip should not include the callchain - callchain should be printed in a single line That would make things easier to parse. > Thanks, > Namhyung