Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp886807pxb; Wed, 13 Jan 2021 19:29:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxG54XIDZ1tcKVvV4PpgBYSa/SzJO1kBMTmX1l7fJ/gnxwmd3/QZ/EeTkC6F9oXVQ/f46Hx X-Received: by 2002:a17:906:46c7:: with SMTP id k7mr3705359ejs.33.1610594987597; Wed, 13 Jan 2021 19:29:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610594987; cv=none; d=google.com; s=arc-20160816; b=kBfMhirSeeDF1PGqxOg1N5015lr5G6EvwAQs261N7uoOXoR7Mw93Kzi3pro+pZj1dU BdIAMd+IDuUWnfYHcjCVWi1ToKx8o5FIPeNRDwQR3r6/KGHupUwHqqFFJSUMYDfZrjsr DqUUA5o19kstDeoetbEy5C+IzShlyentQ110E9+7+TTfPfGx9+/tlmb2GdkM/m/ggxTb 9USi521mEQAI9YyEr32otQULtjAWCLSfvN6p+Wvoa6hJg2GS1DpdOhW5baCjJssmMHaL W7PEQFerx1XdlbaYsVmTUj6ED8fwqRNuferaHXgANHvPjMBKttwtCgtKSgpaC1aDW6is Ubug== 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=Y2OgcsRYFGCP0sLOBPm9ztVURBhxjrLmD3yKK1Hi/g8=; b=RsoHIJ4eVAy2JmsstgLjFWx+5Evj246JcSreO+ChG+1Ux+GQGTqTw994f8ufiYy3/h Ud0NKf0uhVo7gYZ/DG3ILl05HbQUJtZmRcjOayzTtLoqtIXmGBvxfZburAp5WrRM0ou5 hTYXpQdeJEJkEdUgmqsgcKlcEkLbolaaRJVhlMoJJiiK4hnYApeFo1QQ92DjeQyHuL5v +MUBSRnpVuwgOZfU4Yr4ej+vDNviryeccomM216NrUfLeDdNO7eHYbU0eqdRWtUmEj6S lmDI8gOvFaWA4SN61fU7N9sv96/4TGbThzdpLmJdKPdzuETDsRVYxDoaNce5jjfm1Opk KOow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sBtARCVq; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si2161850eds.65.2021.01.13.19.29.24; Wed, 13 Jan 2021 19:29:47 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sBtARCVq; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726742AbhAND1i (ORCPT + 99 others); Wed, 13 Jan 2021 22:27:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbhAND1i (ORCPT ); Wed, 13 Jan 2021 22:27:38 -0500 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 AAF5AC061575 for ; Wed, 13 Jan 2021 19:26:57 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id m12so6008689lfo.7 for ; Wed, 13 Jan 2021 19:26:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y2OgcsRYFGCP0sLOBPm9ztVURBhxjrLmD3yKK1Hi/g8=; b=sBtARCVqjVDbxt5jkJwZ8wtCLyETuPW7AHM3FTEh3e5x3O+Y+GFthm36+bb2jFkoS6 kslfolFDzOPkZAEVhYVXeF5Sd+qI4D/i/piwHYcttrxIhjXvjegz+tK/qzy+/4nPsbc0 CtOdmC/psCu0D+qY7cUtpP2cbi3kBklyqlsaQIoxCpeDocWa8zTpfgrlVbNZvV9VbiEV sRlmprEZJ5op3QpNoyWkLAN2K6hPWBbn9Ubyr0dIiXv5zr3YyuAu0+dsDaOIlGb34RJU XEkDGjJ6cPGCloFJeySSAhEVr/NPnPLq1u7YGCa8i/HaK/+TUZgirDlZ8lbdp7dpI2y2 FqRw== 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=Y2OgcsRYFGCP0sLOBPm9ztVURBhxjrLmD3yKK1Hi/g8=; b=RMzz/nTC50TiMglgx9icuiY2+iULW5J3l5npyCpxMSrIVwDWEU3EI1CTCwCkixBH8h nO2EsIXza7/llJ1s10hS7QVOzIsb/N5Pom137kqGvZW+rPwxyk9nZvVtuEVLVTv5WxXf ZNmXA8RVwMzgjjzSwrfS0vOapd//6zH8f1wlf4rX9ak/7aGOpc3jBXijiJQS/OGvWGW2 FgewPdgztC+bFsXQY1broqsbMOoGjivMVL1XQcKjsqUHR/0MBNwZ60amQdNoZC4HoaiC qWu1jN2DI5lVx5Eliq9hgCxlK6qrQuwbB8T0vscz2nT+ywuM1UCKLAGE9ZxfICccOFoo 2gow== X-Gm-Message-State: AOAM5332YduNdhUtaDU0vpoSz/e1jRgoAG3OQuUqeYP/S1lQ0rBbhGP7 a8cKC9eW68k/rE+z6mNZyZKgbZaRjzfUiHr4wTA= X-Received: by 2002:a19:acd:: with SMTP id 196mr2357240lfk.539.1610594816213; Wed, 13 Jan 2021 19:26:56 -0800 (PST) MIME-Version: 1.0 References: <20210111213823.1249420-1-jolsa@kernel.org> <20210112024958.4utm7ijkpluu3g36@ast-mbp> <20210112091937.GA1252618@krava> In-Reply-To: <20210112091937.GA1252618@krava> From: Alexei Starovoitov Date: Wed, 13 Jan 2021 19:26:44 -0800 Message-ID: Subject: Re: [PATCHv6 0/4] perf: Add mmap2 build id support To: Jiri Olsa Cc: Jiri Olsa , Arnaldo Carvalho de Melo , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Song Liu , Ian Rogers , Stephane Eranian , Alexei 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 Tue, Jan 12, 2021 at 1:19 AM Jiri Olsa wrote: > > On Mon, Jan 11, 2021 at 06:49:58PM -0800, Alexei Starovoitov wrote: > > On Mon, Jan 11, 2021 at 10:38:19PM +0100, Jiri Olsa wrote: > > > hi, > > > adding the support to have buildid stored in mmap2 event, > > > so we can bypass the final perf record hunt on build ids. > > > > > > This patchset allows perf to record build ID in mmap2 event, > > > and adds perf tooling to store/download binaries to .debug > > > cache based on these build IDs. > > > > > > Note that the build id retrieval code is stolen from bpf > > > code, where it's been used (together with file offsets) > > > to replace IPs in user space stack traces. It's now added > > > under lib directory. > > > > > > v6 changes: > > > - last 4 patches rebased Arnaldo's perf/core > > > > There were no issues with v5 as far as I can remember. > > This is just a resubmit to get it landed ? > > yes, exactly > > > Last time we couldn't quite figure out which tree to go through. > > I think the recommend path was to go via bpf-next. > > Is it still the case? > > bpf-next would be best for kernel changes, > perf: Add build id data in mmap2 event > bpf: Add size arg to build_id_parse function > bpf: Move stack_map_get_build_id into lib Then please cc them to bpf@vger and add [PATCH bpf-next] otherwise it's all very confusing. > the 'perf buildid-cache' change needs to go through Arnaldo's tree, > because it depends on changes he already pulled in Also don't include the 4th patch in the series if it isn't meant for bpf-next.