Received: by 2002:a05:6512:404:0:0:0:0 with SMTP id u4csp91969lfk; Tue, 14 Jun 2022 17:31:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOxrC+Nu/VaOmTqGIR1E5C64fVhcNHfHc0x65eZ60ygyjENkQLGn3bLKwtjaI6HCdJds6b X-Received: by 2002:a17:906:e098:b0:711:d05c:89c5 with SMTP id gh24-20020a170906e09800b00711d05c89c5mr6668632ejb.470.1655253060083; Tue, 14 Jun 2022 17:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655253060; cv=none; d=google.com; s=arc-20160816; b=f+EQnd+BY88YOTpGnmQCH4DglrobeE1qmdCJylTT1CPJcEBOD4SESocJ3gHImrqWGk qOZyxYYL7EIntnm6LO0GD4eDbP1BeM+IvPJ5YZ5LPtQK12ykNayt0zkDHnUF6Jsyj71m IUElUfy9pxzdi4Sn5J4eLtXHEvmxw6gMDZasTvJtH8cFSFVCasVyiAiE8Ha8deXUBlZU rtr2JrgSJET7QqXihmSZ1O6QmNdQkUuErM/HlZsylmCocoeZBN/EA7COxG/rDyAT8xZD AL9Trt+mI6/1XlbujpVgJzfRXWGWfCsoJHOBUZCbteJPxTyODOJ54B48cJRaMcJbbZXo LuqQ== 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=6ZT+Efo6l+fWT1GirYyYwbz0NJsp81iiUhfjEirzp/k=; b=Ifad4QTbfzR5dK9p9AwEr3cbdlS63FkWFwwJP0dPMM4hfTwCdXbFFUTWlDgvdeav8v a4KVkaUKO7J8ieGOqKndVgCHg1Oo4VRXR2ndmRWwbNi3y4nscNpT0OEH1bh+F96mi05u TbkEsodqUOGymy7QCOJasDxUNWo+t/bUoHeMNHmIE7t7M2a5SNZLSjtTrLtrjUosCqTg tnm61L2y6XDAwUS6b9qzqoN2mErO9XvWU8/O8DccncHM5A0dZ8f7bDSPy71+KPr0vaIz MBLIb2Gw0oKGN1l56odOqG6pi3jZknTDeBel+gtaAnkt5tSqtMshuFwQWgaQki5rKgWf wsAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=LJsnOP4C; 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 he18-20020a1709073d9200b0071216b08163si11795032ejc.264.2022.06.14.17.30.22; Tue, 14 Jun 2022 17:31:00 -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=LJsnOP4C; 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 S235676AbiFOAK3 (ORCPT + 99 others); Tue, 14 Jun 2022 20:10:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235427AbiFOAKZ (ORCPT ); Tue, 14 Jun 2022 20:10:25 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF044488B8 for ; Tue, 14 Jun 2022 17:10:22 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id j6so979731lji.2 for ; Tue, 14 Jun 2022 17:10:22 -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=6ZT+Efo6l+fWT1GirYyYwbz0NJsp81iiUhfjEirzp/k=; b=LJsnOP4CoKnvqaCcnqWlC4bwcEXcXTiyFVB96RpleJz6aoN2TOWXDruPGAL1t4uyav fRwNhAGBhBCG9FfgAJ3paUHXoFOmWAnAYo1suprtZZ5mS25tQZhwbQv5FyI4sSd70YS5 4iXFdClQRAb4nXx27awSKYV5VKjXYyh/yvDxkXzfADWYsMrv9kWXj6lqX392Jp0L5Q+M RDCj8GS+HyFvJrKemFToSdK9WwmAtasMd38Kf+NkdI70HOZ8A3ykXi6gR0SaKrJY9Ils E0AXh2805qHeURJmVGo7/Yvc/7e+kFMmIUCTpAoz7cqgZ/Ep3kXXQ2MoSBlIpIlTi9El knfg== 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=6ZT+Efo6l+fWT1GirYyYwbz0NJsp81iiUhfjEirzp/k=; b=C3FfQM1vcZZ3qKW7xwNRYbkC+eUN08A1v3+Vgrwxy0Md0Xmm8eW/xnWWMxrQVUelTO wgSIycogkdZyzc5glzMzWB743WQRDMu+NdSCOt8dizcg82eYGImQUpZBoDuekRFCS9eM 7fkArF+GskQQ0kjRZB1mFRoP5LXZLSzYs5uFkhxHSLc4r6EsRfPfJVIUI3/ygaDVs2vV CJXP6NK35tCJ8IPrdRBYpSdFO5B56SXigIZKNk8REM0+1Kd6+3n2mgsM5um2TU5/bGrt bgA/evN5lkE3NRNjur/PlD+P/cYTBOjTPRuqpLDcPTOEB/GwHFRvi4AcPJysl0HAatuT /WxQ== X-Gm-Message-State: AJIora8h/eiuNp33GSh5C81XepRS4LFlmFJC5tZ3h7o2dRXhdMVqr2A6 H+oTOv/bpmMMn8vcYvHsplrgOaxlb6NYQ2AHd/A9Fw== X-Received: by 2002:a05:651c:44f:b0:255:889c:d100 with SMTP id g15-20020a05651c044f00b00255889cd100mr3827072ljg.352.1655251820395; Tue, 14 Jun 2022 17:10:20 -0700 (PDT) MIME-Version: 1.0 References: <20220607191550.4141024-1-blakejones@google.com> In-Reply-To: From: Blake Jones Date: Tue, 14 Jun 2022 17:10:09 -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=unavailable 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 Tue, Jun 14, 2022 at 5:29 AM Jiri Olsa wrote: > still there's kernel map included, so it's strange to me call it modules > > --m/--kernel-maps ? Sure, I'll go with that. > > > 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 Okay, I've switched the code over to use those fields directly. New patch coming shortly. Blake