Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp178779imm; Tue, 28 Aug 2018 19:43:19 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb/ICnZUkeIfZ4RHZqg8BJHfM+O3Gw1qBOGSum1HfJCCvyGzmLD8OQAfr2O5qLrsLcWBDT5 X-Received: by 2002:a63:7557:: with SMTP id f23-v6mr1735468pgn.135.1535510599450; Tue, 28 Aug 2018 19:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535510599; cv=none; d=google.com; s=arc-20160816; b=X5550CPFLEznyC8LCnRPdDJ25Glflz9zqss0DBBwqDOh/vswmO9kI4Tn7F+1krmt/n Dv/8xH67nBbS4u/fbM0Gh5JdLL33NhpeU3rd/SeSeGwPhJpogyHOeAuabwh98sp2u6T5 CyPGztmPPfACxmyimbv+fWJMXT6w/F2XvcgBz18uKA4XB5Ya4Cs87As4Oozn2q3JxZ5J 2BOG42e22W2Uj8k7N8SWwsqM1Trk4JUmxv6VhMaOHpO18SIeDdIgB6vVGz0dOPMRFr/3 MRoOW0r0Qgi0Or93btAZFRUWS93/Mc/MtgkvG+oR13rqAr6l1Cqjf20K4n4bUZ8DfmLd uv+g== 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 :mime-version:dkim-signature:arc-authentication-results; bh=1MOZKkp8sEvE3jKtZceTwz590aLTY3KwyDcWfq80qsQ=; b=XCcUOOYlefVD3PURky4fRHU70xISQ9ZAbGX5uYibpV7jXUHcvYBC11t7y4/+4rpc+p ag/xVJlt9pyZYFFb8ILIc1HnV0p0kOaRTFX4UvqnEzWfTvrmNA24DyrkDetnriBHKXjo c43maWca34iNikTjRckljkTEVfTPJdijIyQqdJ9/L3apo6O1N368Oqi7zifz4wO9asEG KiwPuIk5a0xL0QDstrSQCSLCoY4pB+2iCBm0bm9StAuey6wc25ryewGtp+dxGYwGDgFx w6FHfG4f8UloIbj3jhcnAW1BWN1jsv4fyXtHUySE7bPsxIkvZz9ZkLjCfnljPSw/klFR y6JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=m56sYwc0; 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 w14-v6si2611073ply.456.2018.08.28.19.43.03; Tue, 28 Aug 2018 19:43:19 -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=m56sYwc0; 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 S1727107AbeH2GgU (ORCPT + 99 others); Wed, 29 Aug 2018 02:36:20 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:39034 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbeH2GgU (ORCPT ); Wed, 29 Aug 2018 02:36:20 -0400 Received: by mail-wm0-f43.google.com with SMTP id q8-v6so3874675wmq.4 for ; Tue, 28 Aug 2018 19:41:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=1MOZKkp8sEvE3jKtZceTwz590aLTY3KwyDcWfq80qsQ=; b=m56sYwc00VGWoqoKtloM9Qblzc09q95OKqg7WWs8QmAiJZ+SWYL1qq88UKDcPwAWTN tg70TGCV8uJ3IAWY/4PU4OboQVw2ikD7JLWVjP9qI3HBO9l5k6qQlL/Ag/bMEgCi3LDO 0nkGgIGmKoBa30FDIuC3aJJB5nONC9hAeK60hsqEuH98o0zVQMnW7EgbMcddP4eff0OW wJSFps3cbpO0067Vy4sIwNKQfLQWz6Fmh9vhkDVh9EL1vPdRI5pGYk3C4Xx0WBNSwrPr gv2SVenArVHYxbyd2zQfvCtLI39lwhKPkd0dwhJRdz3/6x3oVYKKA9qsagayMxDIRkfT FfOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=1MOZKkp8sEvE3jKtZceTwz590aLTY3KwyDcWfq80qsQ=; b=QXMGufHjGCQcsjhMIuIQjGcNNnFSXYa5+Lb4Vm+xVPXsxqMirVi11Y90bWmJUu5X8w WnfFMpdR89W3rPDstmJuEi+hdFTAQuVL4F1j6v+7+p4rDdmSTNFgq2SI4VH31leR6I7Y ZgzxCdAOL/Vs0TT6sNSBT8UTEikyzJPWhyuzv7OfSZDfi92HmjdpqWjdyA6Vhc5Li6sX gy+rkQFon0VOfqHsQJzlczk8ZSI77G/uYIXIpIpmukh43t6d7wyKXX5gwKJyVPlaXTrv bCC7dIKeMupDS/KgOy9ALGxLT5KAXxTc4jkBvDzG6psqIw8ohxaci/XCN8lKciEehFYU Hz9A== X-Gm-Message-State: APzg51D5rKRkdcVUxA/iU3Yx52DP7rV7pw3LYXug5wGtdS/26ZXeRG2/ LVAj1IlZcniaZB9yPhW6ftB0JSLnEWGQdYxMAwIlYeFVmZw= X-Received: by 2002:a1c:7e13:: with SMTP id z19-v6mr2690560wmc.156.1535510503531; Tue, 28 Aug 2018 19:41:43 -0700 (PDT) MIME-Version: 1.0 From: Stephane Eranian Date: Tue, 28 Aug 2018 19:41:31 -0700 Message-ID: Subject: [RFC] perf script: callchain handling is not useful To: LKML Cc: Jiri Olsa , Arnaldo Carvalho de Melo , 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 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. 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.