Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5763662rwb; Tue, 1 Aug 2023 07:38:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlEDqTgcPEn1fbTJx5nDJK8VMtLQkyrpYp2lGeaJlZW1FgsRJv8vk/QFy2skoMovfXREOT7q X-Received: by 2002:a2e:9cd7:0:b0:2b6:d137:b61c with SMTP id g23-20020a2e9cd7000000b002b6d137b61cmr2712763ljj.39.1690900688532; Tue, 01 Aug 2023 07:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690900688; cv=none; d=google.com; s=arc-20160816; b=xyg2gdPbo1IXtqGsY0X+S5vTzIWMbt/HS/HIIrxL/TgW11Q5GzVUkc4qKYjpjva9iy EYSI7UOreCikKK3TQyDIsZWow2y3XKBinJYZh35h14eeiW3mIa98MuWJphWaY0D6StsY H4CGuqYDvBLN2TWLhZOQr2pdO+MiJQEdHXMpVCZCYmDhiEO/FWCswYYIS8gQGft1lfJ8 3Igb6LLMSsY+gubw/xwIYGkEzOBs0D2rdepibAUbX0gEacJrndGUZtNEVsuQaA/vqsqR iDMELhjBy5bm9z+UVWbK6Q859qxt7BRgPI82JtY5lfhiCohIHhCL5zTajA9JzeeRySWM P13g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=apKbPGhTtkpeJ7I/UQTOJQcd71Xrj7G19PhwyEcAFn8=; fh=SC7RDo8kP4aVr1ucaC2YwC6OUmV0rlbdElA1SC1D8bM=; b=z5jDkVam5VoS19+RJ5VUIEia3l+cA+uGPd6B/X5AW63mmPuXQYcteBqBzsCcsIFiNi X1VO7uyt2fF/V5aXzaVBiqDa5OdiuqiIkXNPeKT4CfsLzWGZzs7wqhJuIRJ2SzrRzB3H w+DMmllZeYZEHJ+d66rB1Fu6khiI00pCOlEzLYcJW4720UKFaqF5mzkqOYTiprh4VPT+ q7D+fcw3uiUuWAZG2WYzw87BqYELNFE8WJsL4POKl8lIZ1b4t82HOj3XhdtW2bvntiu4 fR1rPUzSvtrHLmGwRc35m4ymh3l+jzIHPbuLNU+Ctq0ylIDAgsgAvQMgO220w7jdzTEC KPrg== ARC-Authentication-Results: i=1; mx.google.com; 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 f19-20020a170906495300b00992b63c9c16si8571534ejt.129.2023.08.01.07.37.41; Tue, 01 Aug 2023 07:38:08 -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; 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 S234724AbjHAOdt (ORCPT + 99 others); Tue, 1 Aug 2023 10:33:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232198AbjHAOdq (ORCPT ); Tue, 1 Aug 2023 10:33:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D245AE5C; Tue, 1 Aug 2023 07:33:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5CE10615C9; Tue, 1 Aug 2023 14:33:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06F9AC433C8; Tue, 1 Aug 2023 14:33:42 +0000 (UTC) Date: Tue, 1 Aug 2023 10:33:40 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Ze Gao , Adrian Hunter , Alexander Shishkin , Arnaldo Carvalho de Melo , Ian Rogers , Ingo Molnar , Jiri Olsa , Mark Rutland , Masami Hiramatsu , Namhyung Kim , 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: <20230801103340.5dfa7133@gandalf.local.home> In-Reply-To: <20230801114650.GE79828@hirez.programming.kicks-ass.net> References: <20230801090124.8050-1-zegao@tencent.com> <20230801090124.8050-5-zegao@tencent.com> <20230801114650.GE79828@hirez.programming.kicks-ass.net> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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, 1 Aug 2023 13:46:50 +0200 Peter Zijlstra wrote: > 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. The known major users that I am aware of is raesdaemon, powertop/latencytop, perf, trace-cmd and some bpf tools. The bpf tooling is known to update per kernel. The others all use libtraceevent that can handle this change. What other tools are there? There's Perfetto, but it also looks at tracefs to examine where the values are. There's LTTng, but I believe it uses the raw tracepoint directly and doesn't look at the layout of the ftrace/perf buffers. All other tooling I am slightly aware of uses libtracefs and libtraceveent, as I've been giving many talks on how to use those libraries. -- Steve