Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp437297rdh; Wed, 7 Feb 2024 08:59:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLE8ypYmTvtK2TrKZC66iEfW7nDpmjrEw7Ve9U2mT1WxBIU/SFR24fT/3xd7J1ncTTcK47 X-Received: by 2002:a17:90a:cc05:b0:28d:876e:250b with SMTP id b5-20020a17090acc0500b0028d876e250bmr3685821pju.43.1707325191060; Wed, 07 Feb 2024 08:59:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707325191; cv=pass; d=google.com; s=arc-20160816; b=jH3mu596xyFktneLbEQfMilbN//JtCCvb3tovtfj+usz7Vxwlq9sjm4J34KcPiCSTN HgbFI5lU5Kl1EB+HyDt1FWFCixUhgJx3ZOb+joP6c+/5RYl4Bu7vxut90Wb8kyA60owa AarS7/dEmopJNz7ckqUSelIS3aFqK4nnT2QoxynRCZ3Z5xIXnJiHr4UBGK5yFGL7ZyIa WAW6yIQULKQ6lYe5yABetPjqOR2QPPticiYvWi7JgJVY7fUGAI0slNqaHroLdjp9deMf Mxtl5ImjeY5EoOdMdL2T7FrasoLZgc62U4VKMPWV6/SknjiT3TmKpan4mUq9yNnxAjR6 KITQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=JFWCuFlBLzCUWV4jwVKyNSgCubC/35Kvhe3/yYpj56I=; fh=fzEDNdSjsP4dxSChxZ9nF1cWDM6fbIeZFqT7IiP3vxg=; b=0U6+OEDVO1SYbV/RdL1p6kOS2h42FE9pmg2ZLSLlTAh0yVSzfzKgQ0AobN6r8newLW eVOmr6Kq9/uaSyBtxzRB2XxasLjjOKOsemjBXPuJgWBUwQW9IXsIO/hCLtmHtPqh7Aft r0tITJ5pIDG4cJza6NtwlN49dajijkIXZxzHTBg247k5t61fgDVmPoDWrUfrVpepk2Ea Gb/qyeDE5eWEV3OaAsYVm6LkeF1vhLv3q8NqTQpaFDm5F0df6BTCCjv8KaLxyw9joZL+ zDoFaOlJJZb79VzR3AAVf1ON4TAKHaaR11bwWt/khokdptlmBa4iHE4hDYtSkTsHiV+H Nfrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-56796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56796-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCXRfsEus30vQaDOKivwxVpHO+ghMjDV8DvXRoLQCpcAmfZRfLOvSKZmjrSfn2hHhpCf285J5UEUzTIHC46+8YovidVXtyNVLtFkbXpX4w== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a8-20020a17090a688800b0028d4738d19csi729768pjd.15.2024.02.07.08.59.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 08:59:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-56796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56796-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2293DB234A6 for ; Wed, 7 Feb 2024 16:54:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFB42823A5; Wed, 7 Feb 2024 16:54:40 +0000 (UTC) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE63081AD3; Wed, 7 Feb 2024 16:54:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707324880; cv=none; b=H64GGn81xUaTqzpftBy0Nh/EbGptjZZmHBzl2rX9vSL315LEhbhRpTNVxJnJ7t8ezMg6cCgIYa/69pZC8iqdB0Q5zlxflSeoOvgSnHJMLyp/sQaj04Q+pL20DxKZSGH9bIni7otmgFPmA2mfGBjsbsWlG17YsHTJfWeEnG5r6mQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707324880; c=relaxed/simple; bh=8SMGcPX1EaAbOnwuaOxFDCVdYeYRvn5HrRLClVWFJnI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=m1HoqeAQntlJMOw9WEwMyhCeCMYr08zdlfvVfYpgzlRqTlDULEZNLR+gNcs9MPQNkQx7e0VNaSSO5WLv+IpbCaROBNH45hQhvoS895q7Bn0pXHHVWBc7pKWpCxk3pCd6sBnQfL4mv5EmFg6FHNLJu3avFM3cjM7B+RYR4/UjF28= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6e0507eb60cso598482b3a.3; Wed, 07 Feb 2024 08:54:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707324878; x=1707929678; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JFWCuFlBLzCUWV4jwVKyNSgCubC/35Kvhe3/yYpj56I=; b=Wkp8fDRsEzUCheBcXcNxdwgCL23/TnqwpsA+8R0XWboWTIaUpKCDswF4kVK2OlHdH+ iWy04F3GALoKWI9YFnJ8FSVhHkQbRTIpumsunZW7RQIaNs7uhIfID17vtj+oj+eYqbOh pAhOHaCK7qLyIIhkhZqf21Mtxdt3Rv55I0P9pEXk+8x3QotWslsxsSTTsLpXHQ+s1wke XU/85+lohOQVxPZhJu/C0D/r/iLxWwIkW8k/hzQR7P9ZTbwEPb+Gf3Ye9hnAI1fagqT9 WEWzBzDoZPHl7sp9i2BX9HNQ7gkCXBzbNzEf0FYqaPHbjN4LHMXkiI17vfvz8MgDYHFz 8RMA== X-Gm-Message-State: AOJu0Yzz2ZBWTPNbz6N+UgoISyTXdYgJ4sybm09oo8+FzsQrWq87h04X ARNh0HQ700jfKBs6LftCvxlrQeOQzNxhzJuFZg1ePt35rZeuEMaYujxT3HWhqdFYKfgrHADI5hB yb5U11Ld3ZQBpN6RNrJ21/mdmxlU= X-Received: by 2002:a05:6a00:44c5:b0:6e0:6c89:e308 with SMTP id cv5-20020a056a0044c500b006e06c89e308mr1808249pfb.3.1707324878028; Wed, 07 Feb 2024 08:54:38 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240206033320.2657716-1-irogers@google.com> In-Reply-To: <20240206033320.2657716-1-irogers@google.com> From: Namhyung Kim Date: Wed, 7 Feb 2024 08:54:25 -0800 Message-ID: Subject: Re: [PATCH v1 0/6] maps memory improvements and fixes To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Song Liu , Miguel Ojeda , Liam Howlett , Colin Ian King , K Prateek Nayak , Artem Savkov , Changbin Du , Masami Hiramatsu , Athira Rajeev , Yang Jihong , Tiezhu Yang , James Clark , liuwenyu , Leo Yan , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ian, On Mon, Feb 5, 2024 at 7:33=E2=80=AFPM Ian Rogers wrot= e: > > First 6 patches from: > https://lore.kernel.org/lkml/20240202061532.1939474-1-irogers@google.com/ > > Ian Rogers (6): > perf maps: Switch from rbtree to lazily sorted array for addresses > perf maps: Get map before returning in maps__find > perf maps: Get map before returning in maps__find_by_name > perf maps: Get map before returning in maps__find_next_entry > perf maps: Hide maps internals > perf maps: Locking tidy up of nr_maps This fails to build with NO_LIBUNWIND=3D1 util/unwind-libdw.c: In function =E2=80=98unwind__get_entries=E2=80=99: util/unwind-libdw.c:266:70: error: invalid use of undefined type =E2=80=98s= truct maps=E2=80=99 266 | .machine =3D RC_CHK_ACCESS(thread__maps(thread))->machine, Thanks, Namhyung > > tools/perf/arch/x86/tests/dwarf-unwind.c | 1 + > tools/perf/tests/maps.c | 3 + > tools/perf/tests/thread-maps-share.c | 8 +- > tools/perf/tests/vmlinux-kallsyms.c | 10 +- > tools/perf/util/bpf-event.c | 1 + > tools/perf/util/callchain.c | 2 +- > tools/perf/util/event.c | 4 +- > tools/perf/util/machine.c | 34 +- > tools/perf/util/map.c | 1 + > tools/perf/util/maps.c | 1296 ++++++++++++++-------- > tools/perf/util/maps.h | 65 +- > tools/perf/util/probe-event.c | 1 + > tools/perf/util/symbol-elf.c | 4 +- > tools/perf/util/symbol.c | 31 +- > tools/perf/util/thread.c | 2 +- > tools/perf/util/unwind-libunwind-local.c | 2 +- > tools/perf/util/unwind-libunwind.c | 7 +- > 17 files changed, 899 insertions(+), 573 deletions(-) > > -- > 2.43.0.594.gd9cf4e227d-goog >