Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp885828iog; Mon, 13 Jun 2022 15:21:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ttlhra9k+JbOVs68sGyYm1vNuay413/Sohwy5pS54tegBcVccAzJGQx1r3hc7IocB+QoS6 X-Received: by 2002:a17:906:7315:b0:711:db45:af4c with SMTP id di21-20020a170906731500b00711db45af4cmr1611211ejc.412.1655158877618; Mon, 13 Jun 2022 15:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655158877; cv=none; d=google.com; s=arc-20160816; b=eITv/fzgp8s0vn5V4gRAic5q+53leLcTVVgiaatjW4sRLzrPmRs2GpTW9+5pgUxJpj TZWpQXHK4ob8fn30FHRALbycKOPycLs+OXb0JO2/GiH24k1NGAWZi2J3Q4pphSCy9uf/ yxLOwe0N5HIOvG0fy4Qnmlr7H9MtngtlONKTH+/7AK898+4H8li5QpU/qTE+uf7BioKt ZtX0tKXBNdP4xmV2vfocvWAgjqZ8sF5UInDv39IsQKcS9Ls++R9il6guujzEhvyumqvP xEbiuSei6Jd/2e17lxT90QMtz5q52cKehRG736SrUM6jhrQk6Gzl2Pv31eQ7NfCmaki4 3BJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NSZAOUc7jDHG2RZNVp8mc5S+xeoioWqOft0dihIfjPA=; b=kmBnaduB8sXsLCXhaPz6CvYhrcfRGfHyqW67p81TpvsWgGX1pnaT1pXOrUwrg+wj+Z O3REGRx/g3F93N4a1JMwpuulxpLBTCvsV+x8NlwZujHFB+XQmVDQmMqb3P8Ia41DrN91 Ado0Kkek8wkvczIYq4KLZ+s/6eWxNPcONXNTuqFXIiF8kpUULgBGJM8ie6F1nb4xGVlq 2Y6OUADMrOnoslTGxBFcaMV1kwNvl69pHxv2XTTjaMxQ80x42siI9DW5ysxbA3OvxD8H 0eyTGBFaMYmicaQfHrZxeb5JE3dw54ex3tBcu0tkRp3TiEjOvMRVoxpT91aWxGIZF1uA myqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=A+epGxaC; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd2-20020a170907628200b00711ffe66bf4si9284012ejc.873.2022.06.13.15.20.51; Mon, 13 Jun 2022 15:21:17 -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=@google.com header.s=20210112 header.b=A+epGxaC; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230120AbiFMWC4 (ORCPT + 99 others); Mon, 13 Jun 2022 18:02:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbiFMWCy (ORCPT ); Mon, 13 Jun 2022 18:02:54 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29CEC275E2 for ; Mon, 13 Jun 2022 15:02:53 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id a2so10997821lfg.5 for ; Mon, 13 Jun 2022 15:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NSZAOUc7jDHG2RZNVp8mc5S+xeoioWqOft0dihIfjPA=; b=A+epGxaCSLgfadqz8qkKfJUDb2SI2zjLi4019IM7FloS0RQWHRPZNxzbLQMJlYHhJA LkBd/b2ghI9kdqlzIPw/rCmur9tWA7y/YMZlScR/0Nlp9pqmRRkZZatNtaN10p8rHlbF 0IZ/D0VHG06/9BtY2soYa+1hqcqKEkSUCfKfbGiVJNlnuZmqnVBTkd/+BHmLx+izwhwg ni9fQ6NTHAbZdVEDqVdkkMUQCma7SIQRuvCN1c+Dud2I2Q47kTqmofIP2l1kaGPdzcUq ACIR8xR+sp1rf9g5ljwGD+TgYad1/a8trC4+yzcQnQunq+u/Kuqi7NYGg2OaceiEz2pD +aFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NSZAOUc7jDHG2RZNVp8mc5S+xeoioWqOft0dihIfjPA=; b=GTXszBXvFjf96Q/++HGSInXig2sujTc8xjU6q81S1vpzi72xrHnkRnyFbC6fx+8zDb qzIFwZNj353C2D+xQicH5EL1eWn7iK3iXPXaTJJkK4/ZLXw5VzX6Z9eAygGIlSFoZOn+ 0tSSVuNgbQ1WWctXVFpVZUwcnVHCtBYl6VkORuQTlZ3Oqj5RXSE4Hnd7A2+mFBHDw/u7 es/plRt9xqN6nGnyythKFUoXeludZuD6KJs3tlziTy3mYOniBkTdwKstZeueEX/tssR+ sctnOr/EWny4/H9znCLrPVeD0lRoBsM6VYiruWwlSlM7ysYmaMhmwWK5wl8PEfEPUlxe /L1Q== X-Gm-Message-State: AJIora+wZ7Zco2+VPLpC9oPwdcBQ8uPIxaP3Xjb3gRzF79bAJ/Y/r/ZZ fJCMHwc1/TfFr4P7/WGnHhZ0/W1sVgphLaErwtwhvw== X-Received: by 2002:ac2:4a69:0:b0:479:7c24:c3e2 with SMTP id q9-20020ac24a69000000b004797c24c3e2mr1129822lfp.487.1655157771232; Mon, 13 Jun 2022 15:02:51 -0700 (PDT) MIME-Version: 1.0 References: <20220607191550.4141024-1-blakejones@google.com> In-Reply-To: From: Blake Jones Date: Mon, 13 Jun 2022 15:02:39 -0700 Message-ID: Subject: Re: [PATCH RESEND] Add a "-m" option to "perf buildid-list". To: Jiri Olsa Cc: 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 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? > 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. Blake