Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9436587ybi; Wed, 10 Jul 2019 10:13:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMaJKRohHTqjXoc8oGqOWrhssErE42nSwsZiD2Kl7ORmAz586mrY7YFbGxiZz00u7gE6gE X-Received: by 2002:a63:e90b:: with SMTP id i11mr38833193pgh.351.1562778789747; Wed, 10 Jul 2019 10:13:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562778789; cv=none; d=google.com; s=arc-20160816; b=B7b5k+Rd1Sd4vcMHFt45WAeAJZSIeD+tIVV42qRdggvgJDTy2zFAmD7OPn0OVRmKuR qttPXEbw0zwmn0Ugn8Go6BiKLgpLek76Dt9v4dKwjXP/eIosqpbtuqB3mOErffXtCZ0g TnOmjh3MHfGlT0+Xvu06cLfobsRVf2yNfqd4z1HDYQer2+ibFEjjCwgJAHu/fVvpPoLZ oVtJTxsarWoDNkHYFzvXOogltmITGpQTorlAEgE4OY+4svckA5CqmAeeWK95cxmV3RKi oSfP0FLbK8UayMsRnoX3DnZSG5+ixLD6gOFrqvPLuaB2MvkS7UryCEr575alXO/hNnCy jFLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=EbKgfKAeBtACMdr3vG8IBPrIyQdOIbDds8qJD3B1Zxo=; b=Xpg5Il6Yale6pIJeHs/mvAyPyLDQ5fvyOZO5PpCmsQmroWcWZ6bB4TzPmvtEDy6deH ZGnc+apjvoCS3qDkKvscrdXrUYNRoUxmCOikwskakWASjnoJQ9kQCFBz62baAUMCLxBW wN+2sX1q7MW77c1cA0SXt7ywgspwl+/7LdUjsxTeb2aCIqAHXo5n8V+/uUS+WznTqiJr VJhHRV9AXsQ5aF3GpBAslYBkoKTsScX1LR8yfJ7BB3d8RGcVYs1zVDSqff5UskZmJUIh y4nWMWAnLQGAvnT4hwZy6aquoHqnebCszWPNO7gklKnQVpFkh3Db1eSt5cblgl8O/xto i/JQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si2960335pfq.70.2019.07.10.10.12.52; Wed, 10 Jul 2019 10:13:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727859AbfGJRJ2 (ORCPT + 99 others); Wed, 10 Jul 2019 13:09:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:47622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727123AbfGJRJ1 (ORCPT ); Wed, 10 Jul 2019 13:09:27 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F38A620844; Wed, 10 Jul 2019 17:09:25 +0000 (UTC) Date: Wed, 10 Jul 2019 13:09:24 -0400 From: Steven Rostedt To: Josh Poimboeuf Cc: Matt Helsley , LKML , Ingo Molnar , Peter Zijlstra Subject: Re: [PATCH v2 00/13] Cleanup recordmcount and begin objtool conversion Message-ID: <20190710130924.16aee549@gandalf.local.home> In-Reply-To: References: X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Josh, Can you have a look at these? I can apply them if you think they are OK. -- Steve On Tue, 11 Jun 2019 15:21:42 -0700 Matt Helsley wrote: > This series cleans up recordmcount and then makes it into > an objtool subcommand. > > The series starts with 8 cleanup patches which make recordmcount > easier to review and integrate with objtool. The final 5 patches > show the beginning steps of converting recordmcount to use objtool's > ELF code rather than its own open-coded methods of accessing ELF > files. > > --- > > v2: > Fix whitespace before line continuation > > Add ftrace/mcount/record.h to objtool_dep > > Rename the Makefile variable BUILD_C_RECORDMCOUNT to > better reflect its purpose > > Similar: rename recordmcount_source => recordmcount_dep > When using objtool we can just depend on the > binary rather than the source the binary is > built from. This should address Josh's feedback and > make the Makefile code a bit clearer > > Add a comment to make reading the Makefile a little > easier > > Rebased to latest mainline -rc > > Collected some build time measurements > > Build times measurements -- median of multiple runs in a VM measured > with "time": > > mainline (5.2.0-rc4) build times (median of 3 runs): > real 2m58.379s > user 2m29.621s > sys 1m35.116s > > Post recordmcount-cleanup build times (median of 5 runs): > real 2m51.973s > user 2m29.094s > sys 1m33.688s > > objtool mcount build times (median of 7 runs): > real 2m57.92s > user 2m33.73s > sys 1m37.06s > > Note: I saw some significant variation especially in the "real" time > measurements probably because it was in a VM on a machine with > various "idle" GUI tasks running. This is why I took the median > rather than the mean. Though I haven't run the statistics, my > sense is the numbers don't support concluding that things really > got any faster or slower. > > I'm working on a separate, follow-on RFC set which implements the > pseudo-pipe idea. > > Matt Helsley (13): > recordmcount: Remove redundant strcmp > recordmcount: Remove uread() > recordmcount: Remove unused fd from uwrite() and ulseek() > recordmcount: Rewrite error/success handling > recordmcount: Kernel style function signature formatting > recordmcount: Kernel style formatting > recordmcount: Remove redundant cleanup() calls > recordmcount: Clarify what cleanup() does > objtool: Prepare to merge recordmcount > objtool: Make recordmcount into an objtool subcmd > objtool: recordmcount: Start using objtool's elf wrapper > objtool: recordmcount: Search for __mcount_loc before walking the > sections > objtool: recordmcount: Convert do_func() relhdrs > > Makefile | 6 +- > scripts/.gitignore | 1 - > scripts/Makefile | 1 - > scripts/Makefile.build | 27 +- > tools/objtool/.gitignore | 1 + > tools/objtool/Build | 1 + > tools/objtool/Makefile | 1 + > tools/objtool/builtin-mcount.c | 72 +++++ > tools/objtool/builtin-mcount.h | 23 ++ > tools/objtool/builtin.h | 1 + > tools/objtool/objtool.c | 1 + > {scripts => tools/objtool}/recordmcount.c | 350 ++++++++++----------- > {scripts => tools/objtool}/recordmcount.h | 197 +++++++----- > {scripts => tools/objtool}/recordmcount.pl | 0 > 14 files changed, 407 insertions(+), 275 deletions(-) > create mode 100644 tools/objtool/builtin-mcount.c > create mode 100644 tools/objtool/builtin-mcount.h > rename {scripts => tools/objtool}/recordmcount.c (78%) > rename {scripts => tools/objtool}/recordmcount.h (78%) > rename {scripts => tools/objtool}/recordmcount.pl (100%) >