Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1406852iog; Tue, 14 Jun 2022 05:34:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sbebgcvv7zL/4LTi76bS4VIFjIYG8aS/Ju6ktRGGziC5bl105TL6cgJffqvBG7mwxlrP2W X-Received: by 2002:a17:907:980e:b0:711:5342:7547 with SMTP id ji14-20020a170907980e00b0071153427547mr4048019ejc.544.1655210091036; Tue, 14 Jun 2022 05:34:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655210091; cv=none; d=google.com; s=arc-20160816; b=emhdjUaVGALodAWHOqMmblMHE2vBqBojIO2WRIYQm2c4bT4p1Xf/CNm0IjsATiOjfb dm+IBPSyM4NmNmCJ1e8jOjrie9orubAVUZIUY16rHLioHBIeLbgOifLNZQNhRKDvLfOA 3b6mxdnlEXKwGlXwZcpnr4IDmiI1sk3Hl/kQW50o6FzteuQlPL5Hw7buZ7h9T24ozVgt /mIyIW+k80EOkgQBsDYnBW8ddEpTNuPU2jBERKbGuroYyrJgA93wv7UyGN6mMOC0KdT5 ABarLvM61NbEHQbsMNBn/S38wcLJYLoPjbNJys0PzR2WTu+XwyBa+n1bxh2iv0YA+UBB NMyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from:dkim-signature; bh=axAoTgW4f9hEkpnjg5fk+kCuJUrcn/1GVTmzDalaTpE=; b=JYZIappHhTsvbIoRZUq5Z1xvbDsa0lLIE1QPY1Z4QUOMgNlHrZTASClxLtCHkApGdl 28+IIbxsxBMQVKcT973d9SIhRHczKQ6akdxvisDcZVQCoVU4J9H+SEy1ZjPRtZTDHHEf w5T6i2tTIGdfE2wisZ/siBbdphxGPXP2qxNVTuy583NmvFQT/nKPo50L60BbKj+JpeF+ Hy/n8w+GImbF9uYI1BQTt8DuI01DOW7ooyZdkfonPPhQmQcWuOxiu2Yw9B6quFf1kOCe FSmRTOLknNm12S+wPMZfB7QfFL5NCD3o9Yqhix92qUmmBwNYtZvwMIPRRmUaSBLiXL2D Pg8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TC2i7XA7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a056402090900b00434349b72c5si12806573edz.305.2022.06.14.05.34.22; Tue, 14 Jun 2022 05:34:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TC2i7XA7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244544AbiFNMaV (ORCPT + 99 others); Tue, 14 Jun 2022 08:30:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356594AbiFNM3N (ORCPT ); Tue, 14 Jun 2022 08:29:13 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1B0A23BDD; Tue, 14 Jun 2022 05:29:10 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id o7so16871760eja.1; Tue, 14 Jun 2022 05:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=axAoTgW4f9hEkpnjg5fk+kCuJUrcn/1GVTmzDalaTpE=; b=TC2i7XA7+9Xlrhf2dw40ePmPdZiuddA5zyiu0EL3XudVgt7iMQ76XXD090WPUwKYo2 9Nynx4bkyvSKns2UbUrHBv83yWFIT6kEG5MsIa4E+VrqDkFyl5hIZ+VgoIkETMBGe3fr Nh1NH3Auzr8xBCYZo8Ms7ZoV8Q78axRaf6/zQRn4WQVypJ7x/KG/7+pZwuCdi6jGx9TH Y4Dc1xYnzdLx73qEjyzX6MwktZGp7uUy97J0M1P6csFAsVkuAhfl1qnKnwkIndBmmS8x TartraPrDPxftKMy0WCDH9SAqEvIRe2ZOktv9Pm/S5wMGjcTjug8uEzcNjdsjXJuegXw SkCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=axAoTgW4f9hEkpnjg5fk+kCuJUrcn/1GVTmzDalaTpE=; b=2LxkQ/Me/QE6d449KCic8JPHrfv3nkBzZwXYNsymSmQF+tCEYFMLrdW7LoN9nHpA9p T1JwurqX1TKiXs4vqB1p26xLemyOF0HFMMs6cEXBwt5Wq2rwbDx/QM32u4y0XDKzeRAM UJo6h03Zs0slHbMtiYmCClQVdRAYPvhL9BZAy/iX2fv/jPaLRDyFwHplcVVOaN3jIHW8 LZ6NAFUPkBe3k9R6TZyH8m4j/Hw5q++NPyw3bD3/d/wFoiZkVs3lA515jEqvyQsWW3bs 80OgjKqUxcDgB9Cxv0r/XOllTHVpwZzyS1IlS6tGH2Bx61uBS59gKDE6OkPKL3lo3qnJ lR/Q== X-Gm-Message-State: AOAM530bWCJvGoJc57dK70tSFCHJXb4M79ZB3JWA/gMyBq/OXeyLOVAX AMY0PIJfdf9M61OKlVKK318= X-Received: by 2002:a17:906:51c6:b0:712:2a1a:afc8 with SMTP id v6-20020a17090651c600b007122a1aafc8mr4298295ejk.649.1655209749213; Tue, 14 Jun 2022 05:29:09 -0700 (PDT) Received: from krava ([193.85.244.190]) by smtp.gmail.com with ESMTPSA id i9-20020a05640242c900b0042dce73168csm7170844edc.13.2022.06.14.05.29.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jun 2022 05:29:08 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Tue, 14 Jun 2022 14:29:06 +0200 To: Blake Jones Cc: Jiri Olsa , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Namhyung Kim , Ian Rogers , Peter Zijlstra , Ingo Molnar , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND] Add a "-m" option to "perf buildid-list". Message-ID: References: <20220607191550.4141024-1-blakejones@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 13, 2022 at 03:02:39PM -0700, Blake Jones wrote: > Thanks for taking a look at this! > > On Sun, Jun 12, 2022 at 3:18 PM Jiri Olsa wrote: > > why 'modules' ? it shows all maps (including kernel) > > so perhaps -m/--maps would be better? > > I called it "modules" because it only operates on the kernel. Calling it > "maps" would suggest to me that it might also be able to show > information about the maps in perf.data files, which it can't (just as the > "-k" option only operates on the kernel). Given that, does it still seem > like "maps" would be more appropriate? still there's kernel map included, so it's strange to me call it modules --m/--kernel-maps ? > > > also please state that it's from running kernel > > Happy to make this change. > > > any reason why not use the dso fields directly? > > I was just following my general software engineering instincts to > encapsulate implementation details, so that e.g. the caller doesn't need to > know about details such as the "has_build_id" boolean. I haven't made > changes to perf before, so if that's not the preferred style, I can do it > a different way. we have some helpers for dso fields, but AFAICS long_name and has_build_id are used directly all over the place jirka