Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp627759imm; Wed, 29 Aug 2018 08:14:55 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdapp5IYKNqtQWi8PyNO8vgNjPcjP/zsIWvRsGGmscaO6w9vgUS+HMBYMD6UPwkJnqe6vxvX X-Received: by 2002:a62:1e81:: with SMTP id e123-v6mr6406145pfe.24.1535555695510; Wed, 29 Aug 2018 08:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535555695; cv=none; d=google.com; s=arc-20160816; b=jW1Td0l06Xm+3L05RMer6p/I2w4ZPCpg5y/O2WbUMv5W7RMJK7M+sL+TcIZcjfcocn Z82uscubEeUmRwQSojY6HiZCSWgPEa4+pEJJAUHFvUmR2YU5cnPnZa926GYBWN8rxFDc 2y537891vKI8EeHRSIKfq1q2t4xTiS7D8XoXkSb0gvvgfCheG3vpFApQl0m4FlSw0oGV 9EtlDMrJFjv43N7ttFiL49Z4Zct0ZbP41JLZxzexuqU1Urj765ClZE7TfTD6n3lRoNR8 1Uexe8hg8806wbTly6N1zoWmmGPmQcBJnykKTln271NneNIlphD0sKjssZFazn3/j+1X kBLg== 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=1JLqiGIQni4zvJXjkNnl/H6Nr83ui6sWEU9gBiCOb4s=; b=aAXNRLSsngtXYCBSysf2J58MolMhJvKz66jil3Jm1D6zcmPtpZiw6pgb+EMpVdxiKJ SQzGhZg5wqXJK62QK2Z1ccArn/onBTpufIMHGKbxPYlUlUXX3+FOc8DtFqQLCf3zj6xO LJQWc/u+In/rTkgaBazqC+tnJoqlqhEc/GnZmfEydATfAZ/yhoEkAchLzw2kaaPIU7mp s/MnvoG3FKwKOjgdKiKhitKSRgLUGIv9uFgfE4m6A6rV3fSW2hVN/GlbkYwQ1zKGA9g4 /b6rrzMGjOP5c1wr06Nn1pmAcNDQfDrFyE8CrKDeVbgOiHYsaF2KsmsH77E2hikQvQUt h4MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CeZZ+RbN; 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 q8-v6si3378877pli.355.2018.08.29.08.14.39; Wed, 29 Aug 2018 08:14:55 -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=CeZZ+RbN; 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 S1728911AbeH2TKa (ORCPT + 99 others); Wed, 29 Aug 2018 15:10:30 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:52942 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728442AbeH2TKa (ORCPT ); Wed, 29 Aug 2018 15:10:30 -0400 Received: by mail-wm0-f43.google.com with SMTP id y139-v6so5616322wmc.2 for ; Wed, 29 Aug 2018 08:13:05 -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=1JLqiGIQni4zvJXjkNnl/H6Nr83ui6sWEU9gBiCOb4s=; b=CeZZ+RbNlyNqeTNxKNmSbSay59205xskwlbpCwU8bc9YqNCEewgn60dW5GAO5ywGOB WG0KwGxvdHWSEvJIEc9ksg5OTcYljg4ubH4hElLd4C+J2NIv0SOkduwr+iAdjLAapCbN nY8N9ISNOd5vPKHgJWkoZURv4VHmZ57pCsc1FpdqfuACnRLOg8Em3rEzTHm4UUHWgoKb CYtRCjocsnIzbrt5OtxRQoaD9trikwguJRRJyPepASRl7dFzTNuKEFoNlNf0pzLC4HLv oWBs3GkSE7N8vEgirhv1H2pJfXOXiMjsopyMA11+ocd53p+A05g8nXu3C+g/S1W5VsA9 aIxw== 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=1JLqiGIQni4zvJXjkNnl/H6Nr83ui6sWEU9gBiCOb4s=; b=KDGSqn97z9Fhy1vXSDvl1goK6idzc07lc53Bm/IdTBBEEorerBFxkdKUfM0fJYmOIz QkgILBjG0maYzhQvwvHifGhhDvW+XjfV+4t0fdwATh2GjhAvU4y8bfhAkO/bWO9rM1yz GUaSqprogqG2Ht4twzrrPOjiicIdZC9vTR3MakGKFnQg272dGFoGSYeXjXLFKgbBGsZ+ sviCozBLgQ8D8xg53LFdaODASctPHuVbNCA92+q7vjkZNtRi6neGj12+M9PrTeFuz7gV hVHDffkTFPHPjxl37C84cGwwrIae888qkV2NizT+QtUrMqfGTK5j+OGZH/rGztSdHsPL x5MQ== X-Gm-Message-State: APzg51Cl8WrlkjQepKh0bgsO2oNKtfSEJKk+mBzGo6ll0e/rVcz6hgCS Cn7f/+kggs+3TC7xeyh2qL3fIDDUf0bd2zyLwrkSjw== X-Received: by 2002:a1c:9d02:: with SMTP id g2-v6mr4199414wme.122.1535555584677; Wed, 29 Aug 2018 08:13:04 -0700 (PDT) MIME-Version: 1.0 References: <20180829135440.GA25381@kernel.org> In-Reply-To: <20180829135440.GA25381@kernel.org> From: Stephane Eranian Date: Wed, 29 Aug 2018 08:14:12 -0700 Message-ID: Subject: Re: [RFC] perf script: callchain handling is not useful To: Arnaldo Carvalho de Melo Cc: LKML , Jiri Olsa , Namhyung Kim , Peter Zijlstra 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 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. > - 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.