Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp13361060rwd; Fri, 23 Jun 2023 22:01:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ60PhOjB07Cey4IHfOVkZGy6fgy0DzIwJcJAvVOHU9VVlCMMIoBTmzWXttplbvwemE+asK7 X-Received: by 2002:a05:6870:d2aa:b0:1a6:67e2:6eaf with SMTP id d42-20020a056870d2aa00b001a667e26eafmr20497073oae.19.1687582868435; Fri, 23 Jun 2023 22:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687582868; cv=none; d=google.com; s=arc-20160816; b=jRvi09+WkoVvvKvGffi5xzS+oxc+Q3JUlP0DKuoahzeETKkzLNMVBjGaWlnSUR03M8 VM4u4q22iO/I7lSWSk5mG4v77PScm2w0vlFeFQ1I+p1LV/unJ+hhKR6ZYvftrv4067WN O3vlgeK/TKSvqL3kzaAu+TQCutwnag6YQ4FrLB5TUWrfasYxe65AU2VJuWattor/jOYW +37MILmSnNagFSm+0JqE/MHjwEGXyh1/L5MlJr/LmLHKNqhLHCgQ+4MYLjXspKM9L3Pv HPEajKD0bWINng8INfMLZH56LMiT0J5VxUBtn8zScQv1DXiwM627BP8kNthyYunjAV19 LjBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=1GPkxT261oN3iEOWuX5NjtzFQpZacNO2QqARPREDfS4=; fh=tH3ExQOLXCkyGtyalNTwO4VX1DpYsrWrRjB9SYJ0aTE=; b=u7dFHpzoKnNhy2t5SehiXWKjSXg/FH9odxbS/SMcGcRE1jZTG5MdSYSVViSJADKnXe +W1v2zeHeK3DufSid+mmeJEkVJmCkqiLcdzaQ3s+aoH1MIRpt7ewXDylWJRXqsqHX7jo x0ROPPefXeZ8kraYKUzi96wASFLnBaQFWVM451bLGKpwig/gJb+aQsmGOuERFTi8nan4 3LXuokThY+MlZbvjX2XR4vrLc8OOwsHVsAkgdt6d5GyEbYJnB4tJRfO6fx+WOwklyj33 4OjlNZL7zqQ5slFuGZ2f/TFrhKKYC6CfAflV5FNYhKG5rbDqnNd7rDaZp0IFrr/OWuDN 4MFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b33-20020a631b61000000b0055339507f67si720086pgm.836.2023.06.23.22.00.47; Fri, 23 Jun 2023 22:01:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229727AbjFXEmi convert rfc822-to-8bit (ORCPT + 99 others); Sat, 24 Jun 2023 00:42:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjFXEme (ORCPT ); Sat, 24 Jun 2023 00:42:34 -0400 Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BA3B272A; Fri, 23 Jun 2023 21:42:33 -0700 (PDT) Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-bfee679b7efso1236366276.0; Fri, 23 Jun 2023 21:42:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687581752; x=1690173752; 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=7Tv5ByRnQQhhggbvCJr723rJIzg87T8KQ+iXR0Dgcjo=; b=hU2Jj1rnmW5pvtHnzwU509/kwKPaX7NG0dpp7J9IZFuCdkf7wMH+iNV1ibVzqaDmrD b0u63vjEg+gKajyuTD3/4RmpPNZES6DLZKsrsBQzp44I+KG47yPm5x+9VJtee33LkJTU PlS9y+t7+P4AYwAdbCoY/mFy7lxghvlVg7ydd8QjV2dQ/zNFccqMS1PcCXNw57h68UsU NDLnn4WFkmkaSeZbiAcHLNcJ7gGdr+RuA6e/BQ6/Ug+NGcZzFLH2DnQh5olTSOTsXufk kwQAAHUuLrh9uH21clUIdUVaJ2UaLn23dfZGtSTkN/dOK10T9+9RvK7n+xcfV/W4v+D1 sHyQ== X-Gm-Message-State: AC+VfDxrw4mWssc0yOIDyAXuP7vRJuh5fm2RBPYVaVQnGoUpCcZyp+RE 6Ti+ZyxB0YubU8a83RJwB9ISJDmPAynSxo1Pj3M= X-Received: by 2002:a25:ac43:0:b0:bc4:41ce:c633 with SMTP id r3-20020a25ac43000000b00bc441cec633mr18437278ybd.31.1687581752560; Fri, 23 Jun 2023 21:42:32 -0700 (PDT) MIME-Version: 1.0 References: <20230623054520.4118442-1-irogers@google.com> In-Reply-To: <20230623054520.4118442-1-irogers@google.com> From: Namhyung Kim Date: Fri, 23 Jun 2023 21:42:20 -0700 Message-ID: Subject: Re: [PATCH v3 0/3] Remove symbol_name_rb_node To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , Yang Jihong , Carsten Haitzler , Changbin Du , Athira Rajeev , Christophe JAILLET , Jason Wang , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 22, 2023 at 10:45 PM Ian Rogers wrote: > > Use a sorted array of symbol pointers to avoid the potentially > unnecessary 3 pointers (rb_node) for the name sorted symbols. Saves > been 24 and 16 bytes per symbol. > > v3. Move sort by name dso lock into its own patch. > v2. map__find_symbol_by_name_idx so that map__find_symbol_by_name > doesn't need an optional parameter. Separate out > symbol_conf.sort_by_name removal. > > Ian Rogers (3): > perf dso: Sort symbols under lock > perf symbol: Remove symbol_name_rb_node > perf symbol_conf: Remove now unused sort_by_name Acked-by: Namhyung Kim Thanks, Namhyung > > tools/perf/builtin-kallsyms.c | 1 - > tools/perf/builtin-lock.c | 2 - > tools/perf/builtin-report.c | 1 - > tools/perf/tests/builtin-test.c | 1 - > tools/perf/util/dso.c | 7 +- > tools/perf/util/dso.h | 3 +- > tools/perf/util/map.c | 14 +++- > tools/perf/util/map.h | 12 +-- > tools/perf/util/probe-event.c | 16 ++-- > tools/perf/util/symbol.c | 131 ++++++++++++++++--------------- > tools/perf/util/symbol.h | 12 +-- > tools/perf/util/symbol_conf.h | 1 - > tools/perf/util/symbol_fprintf.c | 10 +-- > 13 files changed, 106 insertions(+), 105 deletions(-) > > -- > 2.41.0.162.gfafddb0af9-goog >