Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3221307ybg; Fri, 25 Oct 2019 00:38:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQ+5RG94fJTrGFDZJ5GiLy9Xhn5q1cUZhYbpjgIoZJPBE8o7raldoEOcKuvTzPsnefWlDZ X-Received: by 2002:a05:6402:1454:: with SMTP id d20mr2441290edx.53.1571989087811; Fri, 25 Oct 2019 00:38:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571989087; cv=none; d=google.com; s=arc-20160816; b=uE+xyDaCoB65wOwHyA+Zpv89ZdBugRDQ20NMPoZOXeqsTWoZahd7vnorQABIkN7pgW Gr2GCFOHiFO4RLC4TvaaSfIL3H29HaSav7eJKHIJlwaKw6M+19zy7jX8YX3CH/3MoIFm kVDtOrZVZRLSXCEZVdw0lH7kZGf7L6ojaai1sMkJkfO/BpYOgJGMKcrSMipXTeWqRsao L5SezqB18BJeJUSmpnCx7uvC8YzngROKmdifgh9+1d/ltjpOUE89FNNjxMIf4kAzsPbv CXI/6DysgMa/0HxnGuuRON3irZ2wBDnY750evWKxFF7YrkamCd/U2IjprcjmlKC9e6Qt y7Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1lwGcpbN8M6WZ6gKLWBoke01kFAviE7JTyirzjF13f8=; b=uuQKidTUGA12hslGIhvGgzIKBacYT8t88EV4J3BAMyv+GGX6NHJaVLoo1UeG9ucOSr ATqb6ShSBbUYqpOIVCyXSR+6pX0SUmEevQ1PPh0BmYnXSE27yXW7yPwWioWzp/k1EWKy ddnpqPgXfxYPAx4eSAbZGhVFL+Z1TppN+de6qy1QD9eSYmna/XrMp+g8i+THwWu5+4iE 2YCEmB7MEteEidtRU2EKvkYTH/Wo+l/bXYLO29ryIbBNKVewytAsyx0rFigHDbXm9Mwh Bqq1Ct92oAZGK5Us5kRaZ1JhkYsFtcEGK+cFqB+837EBMBLhUSXCnPKdxmgTTZjA/XmR 0uJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Mq98I3fG; 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 bs7si697886ejb.86.2019.10.25.00.37.43; Fri, 25 Oct 2019 00:38:07 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Mq98I3fG; 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 S2393271AbfJXKS3 (ORCPT + 99 others); Thu, 24 Oct 2019 06:18:29 -0400 Received: from merlin.infradead.org ([205.233.59.134]:56058 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392678AbfJXKS3 (ORCPT ); Thu, 24 Oct 2019 06:18:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1lwGcpbN8M6WZ6gKLWBoke01kFAviE7JTyirzjF13f8=; b=Mq98I3fGbM6CVFiZq/q0G3JXB e8UjFZi1KNKdA0RWPk4Bgpk6t0+73lCcG2M87fzq2n7KK31DYyoddL9ihEVFeSQhJAegtMDFmWSwK QnRi2cYvVUIrw/JtGYIS3tnrxOsfJ+J/uump3RnugsMsAJUTWAtDq9yhAKXmhzFql1bXQPAIDqsQl BzDVN/lH8K1Rt5XxpkqNFYbZysVj5heYK+fZTVJYmm66FyisFMzj0nYzeJcO82iFcJHnWGay7/5QY PV1iDuaakoVZMaMMAjc2lFiQRx8pu+Jp1ySTiZVuOKcTCmL4X28t2wFZcvpbh5XIP5ZccHFdT1R92 SkVDyKHPQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNaCC-0006Vp-Ex; Thu, 24 Oct 2019 10:18:20 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 4C1E33006E3; Thu, 24 Oct 2019 12:17:20 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AA5832100B874; Thu, 24 Oct 2019 12:18:18 +0200 (CEST) Date: Thu, 24 Oct 2019 12:18:18 +0200 From: Peter Zijlstra To: Steven Rostedt Cc: x86@kernel.org, linux-kernel@vger.kernel.org, mhiramat@kernel.org, bristot@redhat.com, jbaron@akamai.com, torvalds@linux-foundation.org, tglx@linutronix.de, mingo@kernel.org, namit@vmware.com, hpa@zytor.com, luto@kernel.org, ard.biesheuvel@linaro.org, jpoimboe@redhat.com, jeyu@kernel.org Subject: Re: [PATCH v4 15/16] module: Move where we mark modules RO,X Message-ID: <20191024101818.GA5671@hirez.programming.kicks-ass.net> References: <20191018073525.768931536@infradead.org> <20191018074634.801435443@infradead.org> <20191021222110.49044eb5@oasis.local.home> <20191022202401.GO1817@hirez.programming.kicks-ass.net> <20191023145245.53c75d70@gandalf.local.home> <20191024101609.GA4131@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191024101609.GA4131@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 24, 2019 at 12:16:09PM +0200, Peter Zijlstra wrote: > +struct trace_event_fields { > + const char *type; > + union { > + struct { > + const char *name; > + const int size; > + const int align; > + const int is_signed; > + const int filter_type; FWIW, I suspect we can do: unsigned char size; unsigned char align; unsigned char is_signed; unsigned char filter_type; And save us some 8 bytes per entry (12 on 32bit). > + }; > + int (*define_fields)(struct trace_event_call *); > + }; > +};