From patchwork Tue Oct 22 15:46:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Kleen X-Patchwork-Id: 3083581 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6C4BF9F372 for ; Tue, 22 Oct 2013 15:46:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 580ED2011D for ; Tue, 22 Oct 2013 15:46:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7E37320127 for ; Tue, 22 Oct 2013 15:46:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753146Ab3JVPq1 (ORCPT ); Tue, 22 Oct 2013 11:46:27 -0400 Received: from mga09.intel.com ([134.134.136.24]:37118 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752370Ab3JVPq1 (ORCPT ); Tue, 22 Oct 2013 11:46:27 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 22 Oct 2013 08:43:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,548,1378882800"; d="scan'208";a="415237839" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.86]) by fmsmga001.fm.intel.com with ESMTP; 22 Oct 2013 08:46:26 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 63029300D41; Tue, 22 Oct 2013 08:46:26 -0700 (PDT) From: Andi Kleen To: mmarek@suse.cz Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Kleen Subject: [PATCH 3/3] kbuild, bloat-o-meter: fix static detection Date: Tue, 22 Oct 2013 08:46:23 -0700 Message-Id: <1382456783-22826-4-git-send-email-andi@firstfloor.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1382456783-22826-1-git-send-email-andi@firstfloor.org> References: <1382456783-22826-1-git-send-email-andi@firstfloor.org> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andi Kleen Disable static detection: the static currently drops a lot of useful information including clones generated by gcc. Drop this. The statics will appear now without static. prefix. But remove the LTO .NUMBER postfixes that look ugly Signed-off-by: Andi Kleen --- scripts/bloat-o-meter | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index 6129020..855198c 100755 --- a/scripts/bloat-o-meter +++ b/scripts/bloat-o-meter @@ -20,8 +20,8 @@ def getsizes(file): if type in "tTdDbBrR": # strip generated symbols if name[:6] == "__mod_": continue - # function names begin with '.' on 64-bit powerpc - if "." in name[1:]: name = "static." + name.split(".")[0] + # statics and some other optimizations adds random .NUMBER + name = re.sub(r'\.[0-9]+', '', name) sym[name] = sym.get(name, 0) + int(size, 16) return sym