Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp411670pxu; Thu, 26 Nov 2020 01:42:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwI7YCUiUTllkNKUUfaZlqNWOXmRglSbPsvsdobGOHoXMbDOMvjUOUFqqE6nSfxiwODIJri X-Received: by 2002:a17:906:d1c3:: with SMTP id bs3mr1829964ejb.306.1606383723786; Thu, 26 Nov 2020 01:42:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606383723; cv=none; d=google.com; s=arc-20160816; b=sQFBs02IEnNhNSuAcbLSUSV1HFc3xf5nRRE2I6qZGZBnJnVwbjRi8aQhT97rNmQR2T xw0k/r9aggIWRsmogN16jnsHxyJZ44lTf+GnXGBLD8Wu2JenbySzTU+KpHtBIr3U5xSJ z+uig6Y/Ag3epxqmni/IV0LNo6QvIDbktWJhxbfehfGG92v5mPhYTGG14FlhLg+HZkOd H0aNjbY6M555AOudejpEV4o5doa3u/OYKf5vyQgwQqGrash0OhawOqhYpoST2eg46E1C VF6zDvxrrrpJbuEzEnuVjSJ4VPyDuXw6VhKtqMiz0WFIHZquWQOsDgTato6SIxNMxptJ I1mA== 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; bh=5XMSpQDvOLBCrWc9cN7r0+tuqM412AuYZKYEtfQYteA=; b=z91Rtv7qyNrZ7dytMyLnRtsgxiJ08i0n3s5nLtJI51fSSKlmllYPpaAoJWRedII2zg zxsCVjAn2hS2j7xqoaHk+4XljlGsCy7ZgNQFlL3O8LPSp7Je62xLyLK0BPKIZTMxRQh3 4NgFYE/O2SAQSzpuCuGrJoh2DfDnWojrNCbMTcv6PNqF+5gPqdpdIvXZR79jyaSttJfu uXe8o/uMbaFE95MWqMxuiuLGxdbSkumDtCZwdBTKRF8UorqHNRUPMikpTzOz+0qtQgxZ bSmIVvDyM7K3Xfnct6Cwb7sMFrtlN7lhXylRIXeWhOmqy79/nNsAAG342xkpVBdHB+Y4 wC8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zn8si3306526ejb.299.2020.11.26.01.41.40; Thu, 26 Nov 2020 01:42:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387677AbgKZEtn (ORCPT + 99 others); Wed, 25 Nov 2020 23:49:43 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:39409 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731054AbgKZEtm (ORCPT ); Wed, 25 Nov 2020 23:49:42 -0500 Received: by mail-qk1-f196.google.com with SMTP id q22so620940qkq.6 for ; Wed, 25 Nov 2020 20:49:42 -0800 (PST) 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=5XMSpQDvOLBCrWc9cN7r0+tuqM412AuYZKYEtfQYteA=; b=gEiqTHJ5PTUXz7K9kBxl3uoCat1srxYvB5lthD1RQbOgiWzu8t6yHF+6Z9MfK8akO1 /swms68VYzmIvxnoMhCGIZ2jaBAQZYHJHB/bLjpJdqt9Z0aeybZ3283jRd5KDODZxxAd 2dUOyGlovwxN4a7BCFBGOGHS4rylvfXhs9KlRbiTCPor3AymmJ0dRFOkjNWKO8tRmCaC KqCECvcX4Agsu17sC62YEdxGcOOlNQvejOphRUL2lZiNdMapfEIqnCDgDiD/FyzJ0Ve3 JBZ1muyJGsXtyTD2dmDQNC/WvzB9ljDY8x3yNlQ/5hWJnS5+4YZnjtahpALw/eUgKXQa a0hw== X-Gm-Message-State: AOAM531Vssa1JHj2oeZk6gJk0/HfL4ycZKHufQAmuuAwTofryJlqCi/t Ch3lJzWtp9gIqc0/cOayTXAhGbAEEs1Jjha9Kno= X-Received: by 2002:a05:620a:990:: with SMTP id x16mr1508150qkx.316.1606366181844; Wed, 25 Nov 2020 20:49:41 -0800 (PST) MIME-Version: 1.0 References: <20201123230512.2097312-1-jolsa@kernel.org> <20201123230512.2097312-23-jolsa@kernel.org> <20201125163626.GJ2164284@krava> In-Reply-To: <20201125163626.GJ2164284@krava> From: Namhyung Kim Date: Thu, 26 Nov 2020 13:49:29 +0900 Message-ID: Subject: Re: [PATCH 22/25] perf buildid-cache: Add support to add build ids from perf data To: Jiri Olsa Cc: Jiri Olsa , Arnaldo Carvalho de Melo , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Michael Petlan , Song Liu , Ian Rogers , Stephane Eranian , Alexey Budankov , Andi Kleen , Adrian Hunter Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 26, 2020 at 1:36 AM Jiri Olsa wrote: > > On Wed, Nov 25, 2020 at 10:00:10PM +0900, Namhyung Kim wrote: > > On Tue, Nov 24, 2020 at 8:06 AM Jiri Olsa wrote: > > > > > > Adding support to specify perf data file as -a option file > > > argument, > > > > > > If the file is detected to be perf data file, it is processed > > > and all dso objects with sample hit are stored to the build > > > id cache. > > > > > > $ DEBUGINFOD_URLS=http://192.168.122.174:8002 perf buildid-cache -a perf.data > > > OK 5dcec522abf136fcfd3128f47e131f2365834dd7 /home/jolsa/.debug/.build-id/5d/cec522abf136fcfd3128f47e131f2365834dd7/elf > > > OK 5784f813b727a50cfd3363234aef9fcbab685cc4 /lib/modules/5.10.0-rc2speed+/kernel/fs/xfs/xfs.ko > > > > > > By default we store only dso with hits, but it's possible to > > > specify 'all' to store all dso objects, like: > > > -a perf.data,all > > > > I think we can add -A/--add-all like we have -p and -P. > > hm, the thing is that 'all' is specific for perf data file: '-a perf.data' > hence -A 'file' would make no sense, only for '-A perf.data', so the current > 'all' parameter seems less confusing to me Yeah, I also thought about the '-A perf.data' form. But I won't insist on it strongly, it's up to you. :) Thanks, Namhyung