Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5631334rwb; Tue, 1 Aug 2023 05:55:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlF04ZuY08mF+W0Ctkr6V5Q7Utiy2kzsD7Jz2Xq2mgZzwH1SU1DUWRZI/RYTUpyhKoHLSnWL X-Received: by 2002:ac2:5f74:0:b0:4fb:fe00:49c2 with SMTP id c20-20020ac25f74000000b004fbfe0049c2mr2054110lfc.32.1690894536004; Tue, 01 Aug 2023 05:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690894535; cv=none; d=google.com; s=arc-20160816; b=KlXte4CWpkHrzC87eqvr7tQbm7SdcqYL1d/SVDtmF5DNEaVDMIwL8R2xDRjszVlF8T 7Wh8PzyGLqAZM5M7U3bpta3CynsRdbHZ5BR3B/JtH1mchnGDzkMnu4vudEFVGwa1HlLs JwaSmiufBngr2GRjo9zT3h+kwaWQ3dC0ArGCNJtj9A7URTiOBHnDFwC8ZBK9G1WcFqgb k5lyRnhGm214pZGAPREFNkVl6i1DHTKgixBM62B0i3/gHWY1LleuFcwRjZIPJi6TvX2m n8FFLyCCZCycz5MPT1KNChxnQR2fRgQJ7RQVyYDTL+2Yb8TNyhTUkuh5kVgvYyHmqvBx pckA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TdpPIvgN+cdaHFVUOeW5qe3U6jUZBrGZ60UhJBXmvpY=; fh=P0SkYcLhQgsUgORHxsOSsuoJfcBX/xB8NsxVGr0adWE=; b=AtsoIY8npt8W2p5Fyfh0OMaoZjq/dCEt99w+lj9weQGjE5xzvnS2Eyhh9CNOMXHPQr h0QADr4QpRYfqmaE5/ArTkSSnuUsaowlHOZlR/oEOy/EAUD2Wm9OOPTX1JdGu1c5Ratu NVjjyRdBlpLDDt+RrjjZwcjMkAevg7uQar+kxUQoKwT49KzELeB2xBbZbaFFou3+6L0Z q6UeBxSSYLPKO7LQwfNuJAZ+lzkJWp5hMoUgqdGlGUjhlsY7mBPJfjmhtyvk9aSfU3Qc v5QFg1xevg8YLQcbnc8XLu54CK/BMW41hAfSx3XX8PP7OkgDVZ+AvumWKTOJ2Ut7PeFw 1R/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=nlMuLsMd; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r2-20020a056402034200b0051de55a2392si5965049edw.505.2023.08.01.05.55.11; Tue, 01 Aug 2023 05:55:35 -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; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=nlMuLsMd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234372AbjHALrT (ORCPT + 99 others); Tue, 1 Aug 2023 07:47:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234369AbjHALrQ (ORCPT ); Tue, 1 Aug 2023 07:47:16 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F0A71712; Tue, 1 Aug 2023 04:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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; bh=TdpPIvgN+cdaHFVUOeW5qe3U6jUZBrGZ60UhJBXmvpY=; b=nlMuLsMdUfdbuRxXz8ioQYr9dR o686TG0N5P3FFJm71RgPXPuXuyi5MGCmJAwWjvWWD1FGfOVZghopNFrXVMrGwmCltAbzFaEPUjz67 +bYTPHB8bqmpL17ba+a4/SToPkoEqTYC06G6LWtHg7RqwZbkDfAFypL/pDqf6zpIdc3l997qe2lYk F0PcYe0qRh4M0IsAHqoBm0KuTPdMbvaxxlfjXkMhxyizUyV5yVdvP+Rb6keTanahrL+cMkhP9gA+o reZfMTOT1G8UYsSshlsOnnC36pK5Q7ZKpVzTiP5oLC2H+MK0ytmlEIBGpfi67VDUB+P3jejVM1fMR +ZjaBQoA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qQnpz-00Edek-29; Tue, 01 Aug 2023 11:46:51 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 07920300134; Tue, 1 Aug 2023 13:46:51 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id ED4EF200C570F; Tue, 1 Aug 2023 13:46:50 +0200 (CEST) Date: Tue, 1 Aug 2023 13:46:50 +0200 From: Peter Zijlstra To: Ze Gao Cc: Adrian Hunter , Alexander Shishkin , Arnaldo Carvalho de Melo , Ian Rogers , Ingo Molnar , Jiri Olsa , Mark Rutland , Masami Hiramatsu , Namhyung Kim , Steven Rostedt , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-trace-devel@vger.kernel.org, Ze Gao Subject: Re: [RFC PATCH v3 4/6] sched, tracing: reorganize fields of switch event struct Message-ID: <20230801114650.GE79828@hirez.programming.kicks-ass.net> References: <20230801090124.8050-1-zegao@tencent.com> <20230801090124.8050-5-zegao@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230801090124.8050-5-zegao@tencent.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Tue, Aug 01, 2023 at 05:01:22PM +0800, Ze Gao wrote: > Report priorities in 'short' and prev_state in 'int' to save > some buffer space. And also reorder the fields so that we take > struct alignment into consideration to make the record compact. > > Suggested-by: Steven Rostedt (Google) I don't see a single line describing the effort you've done to audit consumers of this tracepoint. *IF* you're wanting to break this tracepoint ABI, because seriously that's what it is, then you get to invest the time and effort to audit the users.