Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2008940lqo; Sun, 19 May 2024 08:51:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXkN8dxm3BcT1A9llc8P04bffWaUEERfyntj/XxAm71kn+9EZT2LHbq1PQh7STy7MXVgcKgIgnFRGZvVVsJsN5MabCv7kvqBmqHYMAYwg== X-Google-Smtp-Source: AGHT+IHd2GtzZTQXRHbzrOzXJEY8xnkqkMC+LEYm3kaEiygqheoyWfWUr/Y1slBP7OjMnlE12ds8 X-Received: by 2002:a05:6a20:4305:b0:1af:cb73:c8f5 with SMTP id adf61e73a8af0-1afde0cabbcmr29827633637.14.1716133871476; Sun, 19 May 2024 08:51:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716133871; cv=pass; d=google.com; s=arc-20160816; b=jgHlwJn9T3Iq8F1lRcHjw1x0OOM8aRY5GsJ0uuzQRKpB3/O3VAbYu/2jDx0Y7bsDSY tpHyoLOPrOIE3dwXMKAKywUMPlKU14PljdJwD7ESfVa0JWTw/9/VG8wjB2TW28p1PcvG VtOX2S+8oPMNldSrIrhluIsM4Y/5cyL6XXy4XWzbZHUHOfi8U9v1Ex8TKKcKGToEm0b0 1MFdbm8hlwdhZWeaw+2tSXHuh9m5nhmxusTkl+228df6G6hKYn+WoMtNPujAEsW+lpuY lxia+TI7nyuCgaDdrV9vkYOJhi0GVltQwx8VtAuXwmqSyJn/mOQlvLz6T5s/zWD/h5pv gXGw== 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=pstpHqIexnROQFTW3wHnYyPY7p1CLDiXOk6mk8/HvGw=; fh=Or8d8CBbyYdWMqomvp+ez926LKz5zidY7t2PcmQfHlA=; b=DMNIZLUyzz5IkjWbBVpghswopAWJ/eEZWmxpwn/ZtiEWmdUkh4ul3YWWqUU+3m0Uc8 nZZk7LZMBN6ra+DD2ZPtcWyjOr40B2YdZ7tov8UMHc68SMg37Rvg3EOB7qSkjN5NPv5t OMZUBVSxSGG/zcuVt6sFJJI/x+3JNfGhds8/SgVSH8tjXlW3xNBQmj6VMdrkpOmy7/I7 JpdYLXfjM0W6EQXK7cu+TfEGErjpCV6iKPNT5m199cSKFt488e24Eh3ysThEdSQqVPHL q4LsINoS1shBFrVwXZYExoCDfna+1myNLTqfFlaDjs1DITpCLOGf3bMOpZ+9p8cZGIr+ DOKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="yI/TXDug"; 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-183144-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f505ffd29bsi1468720b3a.356.2024.05.19.08.51.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 08:51:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183144-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; dkim=pass header.i=@google.com header.s=20230601 header.b="yI/TXDug"; 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-183144-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183144-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 324ABB21206 for ; Sun, 19 May 2024 15:51:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A66E4D117; Sun, 19 May 2024 15:50:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="yI/TXDug" Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) (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 4D4581E87F for ; Sun, 19 May 2024 15:50:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716133858; cv=none; b=e4yl2o7sHCoEWYJ74pd33MmvT4NLjR5Aa4wVbLRFXwqeQ/xdTR0/5E/iIWZLlKCbQXgax4f1d7CQXSoVymBGwgMOX1IUg+hKu9TSHorAI1pBYvGZyC3CUrzOxWKZ49P9MB5RJvHL1Cybw7V4B1/1HFtYnCEvnGjw/VQbGc/ZNoA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716133858; c=relaxed/simple; bh=pstpHqIexnROQFTW3wHnYyPY7p1CLDiXOk6mk8/HvGw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=o0H1d4Jnl90+NzzkGPfSuOcCQdyenKamhEYtfgHn/BcsluCEN1V173DB5S8NtOJVg2+QsVufRR0HXz2qLqWXlu/GmMZ6KT2tYBkLKXZ20KpZL+6Q8HZxzb2L4S7pdIM7WJXW0JhqSGNvlJpHIg6ilOoQyQ0l6VaoaeSYrtZVB3Q= 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=yI/TXDug; arc=none smtp.client-ip=209.85.166.172 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-il1-f172.google.com with SMTP id e9e14a558f8ab-36db863679bso169895ab.1 for ; Sun, 19 May 2024 08:50:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716133856; x=1716738656; 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=pstpHqIexnROQFTW3wHnYyPY7p1CLDiXOk6mk8/HvGw=; b=yI/TXDugNhJFgWIoMNEKkw3nfM+Bd6Wjfz1jNuVr8YKBFyiOlZ/epkdvuewwLzWCwu eg5ASXtRqggFtmJiq4N1dHZr2wlt7nOicuMlIYes3skIxdScFm0H4LNwv2bliYlHxCMp 3OzDiJunxU2jhWgYse5UCdaEN3SETCIQpCGxzTD8oAQP5vL4NLa6miGyu2ambm3sqKhq 1q7tqCXEeNu9ju4XUuyg+6MpAhH34fm3gE7yViob08XxR6rkXYfDiiE7xaIXcmjhtkfv QpmdVj4jFJMFfs+tpIW+ySzdjm9EZUCoOYtXONy9CtTZaE6iDyYkJXa/gZYZUifmFueK CtJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716133856; x=1716738656; 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=pstpHqIexnROQFTW3wHnYyPY7p1CLDiXOk6mk8/HvGw=; b=LCEQvm1ClQgYY7ERwGCfMrNjDNKZfA7GLUxUcbSIOrAJ/LeGdrBxpdArs/Uue1wfvu YR8d/QSxlwesS/U6HaveoHvkxka3ZZJ7QTYMCOB7bToWiihx+mLkPNr7qZJ7cESxz6II UPjizbRSy2SMfRDwzk7IF+sHyh3R1QI6wpcfzOmC8GWXqE660DFZg/MSG9l0/Pn4rwmJ sqpyCGAEGU+DiJlno8Jj8yRB+2BXXu/hc1DqAlSBe5O2Bd11Usj3mvAygsYANwYukudg cvgUGd8Wd80M9JqUTGlnFo+8VWu569sTfc0QcemqV/fbp4ms8H1rPW95UniZQpRv3SK5 zRMw== X-Forwarded-Encrypted: i=1; AJvYcCWgx/ZYRHYxI9iy/AWHHtrrMi5g2ugu3Ulok1IU0tn+ZMifrfVxXx50JuXJXA5KnLV+g7qOLqJMkr7TXfgMHmjxNV2CtO6IKHp7R/E/ X-Gm-Message-State: AOJu0Yx1lVl5jBT8Ftz5iQkLRAzflzVr0cHbuofmELpc/c/WXkyY6Yly qMMbqLGtLxOCYi3OdDglCyzBWEl9OpiFzpe42X2iwAOsAHFzAIWRXfiriEcQVHvukrp+ZQNUMHn kCQW+jvaEz5HgCgtrClcMFOOSu4yp5o0i7eM5 X-Received: by 2002:a05:6e02:11af:b0:36c:29fc:a5b8 with SMTP id e9e14a558f8ab-36dd04fabf0mr3299535ab.6.1716133856232; Sun, 19 May 2024 08:50:56 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240518165315.3963142-1-sesse@google.com> In-Reply-To: From: Ian Rogers Date: Sun, 19 May 2024 08:50:37 -0700 Message-ID: Subject: Re: [PATCH v2] Add a trie to map quickly from address range to compilation unit. To: "Steinar H. Gunderson" Cc: acme@kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, May 18, 2024 at 9:54=E2=80=AFAM Steinar H. Gunderson wrote: > > On Sat, May 18, 2024 at 06:53:11PM +0200, Steinar H. Gunderson wrote: > > When using perf to profile large binaries, _bfd_dwarf2_find_nearest_lin= e() > > becomes a hotspot, as perf wants to get line number information > > (for inline-detection purposes) for each and every sample. In Chromium > > in particular (the content_shell binary), this entails going through > > 475k address ranges, which takes a long time when done repeatedly. > > I accidentally sent out an ancient patch anew; sorry, please ignore. Presumably v1 should be reviewed? Thanks, Ian > /* Steinar */