Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp469420rdh; Wed, 7 Feb 2024 09:51:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IEfRcmInbligRVz66Z5pIpP/vWTBJolbZq6SUTXcyH0SP5q/o8qdsF3yWD4ObDzHzE6XiO0 X-Received: by 2002:a17:90a:fb87:b0:290:7739:b886 with SMTP id cp7-20020a17090afb8700b002907739b886mr3331425pjb.29.1707328283281; Wed, 07 Feb 2024 09:51:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707328283; cv=pass; d=google.com; s=arc-20160816; b=j/em9d19d5sExUXtjXGMTPQVqgtaivKKxE2l+MZ05vNzWiuSUm2bNLwIOuGoW2TrgM zvtMt8WbN7MglWrhVpQYMCaUeWyeesV50AuGpnVMA8gp5p2GoA7uat7pgynMMpqPx2Iv nrZvsZ8vI4aRXbdc2UWFQryGCaLlb/Y7KJQwfUesZuP0u2OWT244QIjTL4w6OafW818r 1AYrE6k+6+9Ve8DfoSRcoNwhLkNFldn059FeyRPsLRqiMMkvetHnJACK1e17eVHFn4ka zW7e3r8ub/M7eWtBfm17jwg9f2Xe5LX8QMbp/+pVQLHww0suYUTb3Zgkdl06uoAhl9VT Mnlg== 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:dkim-signature; bh=5ApJBLk0fzWjTjN9CjafHsAuqVY2V9TgoIiQdE4PdVI=; fh=L55ZZnUwK+oiA/t1A3150laRJix8AHMQnzyuQtEpZTc=; b=JHawLMgBA0s8ZCTeeYheRV12UQyGbvHmCw7lrS0klVcxG/YPhn1/F/3W/vz+vpieDn O12IcDlgC49BVbJnSGLhlT7pHKQu9LqtsxW1pQDJ1grw/csB+Vz8ptCJKNboPjPVbi8u FutlJ7NdIJiNc0Hw8ErqJhFiKXxBw8F5x4VOLpgWvBgc+qxpbOGMy6XMBW008OdBVE36 aZoG8ZuiERvHr+E1ZD3EO0aAdf/8QgXVigq0mGnEBYbc6w9hSB6Z/0lDJMhAPl4TAa5a CeQg5jtyoA7+r3MmzjecUQdJRa98SMYFdJAe4yn/ZDeGXtl1jUXt2Ecc+3jLzbgrCzjw 9Vpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0ali7moD; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-56846-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56846-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCXFJYbp3aCdyJxXQOW7dSdRbe/PfAItOYuyEqlxudnZdGCrpg2RydOw9zPy4h8t4/yA6dmTxoflRhQ7VIjTYyIvYUNIfF2S6I12CHtWWA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id hk5-20020a17090b224500b00296f69dcfd1si2426pjb.107.2024.02.07.09.51.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 09:51:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56846-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0ali7moD; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-56846-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56846-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1A85828BC00 for ; Wed, 7 Feb 2024 17:50:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2F5F82C88; Wed, 7 Feb 2024 17:50:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="0ali7moD" Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 BB5AE8289E for ; Wed, 7 Feb 2024 17:50:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707328206; cv=none; b=h0Rwtr6yQmeyAoRN2ALGKaLJPDjVtVX39bOA9XDPzJkT10epm7MMp6G5FELQ7Xl0Pzk7asBEC4r2zBPd3eGNyZrfKdlZCaMAsGU+S648KoK2Cr5gKGbAFbn7HqNb8/iuiNW8Sz5haTJif/NVXC3Z7Pgcnt4k5rB9DHKnz77JrOU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707328206; c=relaxed/simple; bh=gzheGeRgJpdEmjF0y1iCnKTVixvbMxJHhKeLRu8Eeoo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=p8NzSqFrAnqiREfRVqeBn+rgLdPZAO73C5TdQzvq0VcDTlxvDuicWR+2qIDo83ZvXzRO4mBkYs1Fbt5M5fZRxULkslYIsU505JRMhKhfBUDy7DPSod0g3fC1YP5Rqs/ft8qwGjWyjxgHRzViVFeGqG9NZYhVq3ZeVeS04/f1rJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=0ali7moD; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1d89f0ab02bso955ad.1 for ; Wed, 07 Feb 2024 09:50:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707328204; x=1707933004; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5ApJBLk0fzWjTjN9CjafHsAuqVY2V9TgoIiQdE4PdVI=; b=0ali7moDRReq17WKJOhgSumgxr3h2BSWR/NRLXd3DWWzPMh8zETpyGlxpwh3hu3ALu 07R1UK9cohzWFaYkUJhhu0kslIvjEROVaOSHNnUMRNcGmyZO5TBygSOI6ihcgOb+FD8M L72zgFtoagDCkzxyMMTjS7j2i3brYgPjbW+9p/E8M4CgCj0cto0Xiclo/cjVVcEcX2TH g1hP05XL3QY2L9nYYhGIGpjAiXwvx1ObaiWs2KWNdInFbPvHuExliNXAildIQXqXGhcU ovhyUhEksbM9jCVdGHGqntOw42H67CHuWhypNM01RE1oRRpE+hQ7SMlL59MiEPsLw+ur 3MXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707328204; x=1707933004; 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=5ApJBLk0fzWjTjN9CjafHsAuqVY2V9TgoIiQdE4PdVI=; b=cgVGyOjtFjkmucToQHcR1mZqDpahonkEt20OLo984HwZTJHEnnC5CayIActZ04fYdi hldqY52g1gWnW5zi1rATmkY1lV2OMnC7ktSGZqdy6FTgYvFKauUwL4jMrMGCemclDsD0 0mPlHyCPVHIZjVsAqvDVxEtGVwIFTPh+8olZz5PI3nvq3Q3RJwjT2cVgf6EYGN1NvK5i xToEPVWaAzNhBd32SYmIOU2RkXRGvIZWForL0HdtQtcBhDpH0fvvTfhun6/QccDidUW4 0CDBrcrjuTxTse3YhvNUVmCrW0WFT4m+zb50srGhZqy499LjhyqRq7sgohVRIhkPnDNE /F/Q== X-Gm-Message-State: AOJu0YzeSeiC6vliOuiPVNCZ4NOizBupG19cuteFB1iGn8d2zRnz/QTA KsFrvPvuzowxfNO8ODFLlJcqtcwETS4c8HA+PUP2cLSIuXE22DaPNq8koF06O3m3lGRURSCpg1J KvFv5EoIWfUXz6id+9iclQXylZJiL0gA7zotF X-Received: by 2002:a17:902:d2c6:b0:1d9:cf65:157b with SMTP id n6-20020a170902d2c600b001d9cf65157bmr168429plc.25.1707328203698; Wed, 07 Feb 2024 09:50:03 -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: From: Ian Rogers Date: Wed, 7 Feb 2024 09:49:52 -0800 Message-ID: Subject: Re: [PATCH v1 0/6] maps memory improvements and fixes To: Namhyung Kim 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 On Wed, Feb 7, 2024 at 8:54=E2=80=AFAM Namhyung Kim w= rote: > > Hi Ian, > > On Mon, Feb 5, 2024 at 7:33=E2=80=AFPM Ian Rogers wr= ote: > > > > First 6 patches from: > > https://lore.kernel.org/lkml/20240202061532.1939474-1-irogers@google.co= m/ > > > > 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= =98struct maps=E2=80=99 > 266 | .machine =3D > RC_CHK_ACCESS(thread__maps(thread))->machine, Thanks Namhyung, will fix in v2. Ian > 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 > >