Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp137114pxh; Thu, 7 Apr 2022 16:34:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw11t0ppKdKEHuLyGn5KkbU/mEbi513KToOxI9LLZdMKdetEwNSHuOuMDJhrFcbStKVVy9Q X-Received: by 2002:a17:902:e949:b0:14b:1f32:e926 with SMTP id b9-20020a170902e94900b0014b1f32e926mr16289743pll.170.1649374474831; Thu, 07 Apr 2022 16:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649374474; cv=none; d=google.com; s=arc-20160816; b=EMwVH1J+xS38qKLQXslKI0YdGm82HG2Z5kkO2sSOTNI5ZAS1s9rVMJ3MOlQBnrJn6L cuoXUKD0PAvAIY0tr8VXq95nphfS5bpe95mYUGF5r7+E7ABByztLuVzIY/LoyrlaC7mR rVI9w8NAo+XN2LQsflsFhyrBo3mPxaoaTDkwEizrMjsSnCkp3GFhxv64EPZyneQZx6jn OmGyJmAQs19mO4hzparFehXlJCUjsetQLB2Wwr61ul0m/emxjrsazT4OI70q/46SsyAO aUAfu7+mP3Stfu/vNsY3V7tny3gOe50ZT4XUjj5lWri7wjIc9y3R0SOGVOF5uPJn6HGX Le2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=3CKrl89DJ1eArw5yXg6yQJm2IzsI3jJzLx/oCvEr+S8=; b=F8tcZYL3bqnAGe5852i3MJKGz/b3Q63S6p7+ysVrtzkO9aWrOvIQntGhWHsVDAK5q9 SQZWy8/7uwOBPSMWvSMIZYbiUTkrN4u/p2InjlqAN6/sUuHY6Hvp829rp24vz96VDiDH zdO9xrE6e/TNJ6TVKWgrZbuZM8l95H521Fa29s8+0ZKN815MsNNVXpri5wbrhnJoew0d d24mULAHw46a10YVqb22VTR+mov5bcTDMyUo4sxd/P4m+/PPIke23rw+8/O5T8wQcBHv 5N3AbOo8m1B7IHq16BRsj0NYI+venXGyeW8MZ9hf/RX5Lg9ohwszxxiqtkgeKrWRobkG SGcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=BrjbOvi9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id nl14-20020a17090b384e00b001c638bda95bsi3424645pjb.6.2022.04.07.16.34.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 16:34:34 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=BrjbOvi9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7776BB1E8; Thu, 7 Apr 2022 16:05:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232406AbiDGXHQ (ORCPT + 99 others); Thu, 7 Apr 2022 19:07:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232394AbiDGXHO (ORCPT ); Thu, 7 Apr 2022 19:07:14 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEB2ABCB5B for ; Thu, 7 Apr 2022 16:05:12 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id p15-20020a25818f000000b0063daf5f7957so5326692ybk.12 for ; Thu, 07 Apr 2022 16:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=3CKrl89DJ1eArw5yXg6yQJm2IzsI3jJzLx/oCvEr+S8=; b=BrjbOvi97KBq0KuSeXgzYX1tREisnvDljjjcM8IUk4AN53vhK1IvuAn3yRruMRrqYy 3g8tROUFXw9m0hTNvLJgzpFLCUBAAclCy6ML8mp2d4I3f2V3AkAKvIrivoX00+2ccvQ4 NheSFFgmOa9YkswoPimT0npsnm69YRnvSitFxxI3b87Bgc6cjDJXSIeeDqcTlpAJiCXM 4QNjCI923pPwOOSmLgwM5PoDvfz0glZLUfsCI6mGrPb+03igLIrtnlPgu/s79iH3uUrD ikA6M5hHtPnWc9IU+8E2hvIk8kWHeKU7xJ/39JkP077VMCe1sfdxRgHGYBdWa0bYXiTh Mptw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=3CKrl89DJ1eArw5yXg6yQJm2IzsI3jJzLx/oCvEr+S8=; b=cV2hLi7+Q6bxzhmQMrOAqDmFDV0UlQ9iC21D1udEa+CnicsVNruJX3qIGTGR+p1RUu MlrGiCOfgc14mf57llyYp2pY+BdBvIUcjm/ge5mSyg6RPF1T4a/8xqvLKyTIXj3O+wxM 5uybQ6PbiFSYb34JPGVw6+EcyIY3oeKvmHYnSYtByzrpHFlkBCFz4Z6TXx6l//5rzuZc hfkgk6KU9Ou5xUvLW2trz47XkUhtBBjI+V9uNGHvWqOGJbAaBK/IDQWFRDGZRxB0EhcD Q6aQ54X6THvqLIzc8m3Dzvv4ckOldLf7UUIKvMux6/KK9TERjVeddSx+KyeS9NNkLbS7 nQ1Q== X-Gm-Message-State: AOAM532rCxzWa7rIgFOmDu8L7kcs7IYKiojRY34tnZPvTLkP5QBJLxKt uBonPNbGGLAwWi3OdlGSbxUNbVe2Q9Ex X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:560:aa27:649e:a07d]) (user=irogers job=sendgmr) by 2002:a05:6902:1107:b0:63d:e354:c541 with SMTP id o7-20020a056902110700b0063de354c541mr13119837ybu.346.1649372711827; Thu, 07 Apr 2022 16:05:11 -0700 (PDT) Date: Thu, 7 Apr 2022 16:04:58 -0700 Message-Id: <20220407230503.1265036-1-irogers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.35.1.1178.g4f1659d476-goog Subject: [PATCH 0/5] Tidy up symbol end fixup From: Ian Rogers To: John Garry , Will Deacon , Mathieu Poirier , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , James Clark , Alexandre Truong , German Gomez , Ian Rogers , Dave Marchevsky , Song Liu , Ravi Bangoria , Li Huafei , "=?UTF-8?q?Martin=20Li=C5=A1ka?=" , William Cohen , Riccardo Mancini , Masami Hiramatsu , Thomas Richter , Lexi Shao , Remi Bernon , Michael Petlan , Denis Nikitin , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Stephane Eranian Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL 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 Fixing up more symbol ends as introduced in: https://lore.kernel.org/lkml/20220317135536.805-1-mpetlan@redhat.com/ caused perf annotate to run into memory limits - every symbol holds all the disassembled code in the annotation, and so making symbols ends further away dramatically increased memory usage (40MB to >1GB). Modify the symbol end logic so that special kernel cases aren't applied in the common case. Minor fix to perf annotate to not stall when stderr is full. Ian Rogers (5): perf annotate: Drop objdump stderr perf symbols: Always do architecture specific fixups perf symbols: Add is_kernel argument to fixup end perf symbol: By default only fix zero length symbols perf symbols: More specific architecture end fixing tools/perf/arch/arm64/util/machine.c | 14 +++++++++----- tools/perf/arch/powerpc/util/machine.c | 10 +++++++--- tools/perf/arch/s390/util/machine.c | 12 ++++++++---- tools/perf/util/annotate.c | 1 + tools/perf/util/symbol-elf.c | 2 +- tools/perf/util/symbol.c | 14 ++++++++------ tools/perf/util/symbol.h | 4 ++-- 7 files changed, 36 insertions(+), 21 deletions(-) -- 2.35.1.1178.g4f1659d476-goog