Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp444616rwo; Tue, 1 Aug 2023 21:05:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlGuuUSuLQNJwbaRoo9ldhUMtExbiAhF6X3yad/aZfGO5yfuTlNtnsOCUxT9A/uXmnVOBqqF X-Received: by 2002:a17:906:649b:b0:982:21a1:c4e0 with SMTP id e27-20020a170906649b00b0098221a1c4e0mr3252478ejm.56.1690949132884; Tue, 01 Aug 2023 21:05:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690949132; cv=none; d=google.com; s=arc-20160816; b=T4SmsKX8ThEEMbFsF9F5EOgVoPiwxAQhlHOF1AvQxRDmhQPdOud4q4itOv34/9ymgH HBYKUTiTM9AYU9HapUFeVfCSNiK6lIk9biAMp7S/lLSJTzAW7l7890M4PniS+3vIAuV3 5hyo3CEX5uZC0TY5NuC4azzalr4D/oi96zxCLYIcqr7wydR7WcG8/jqSz4cVmsx8PSMH DzmC6NipPZxpdF5CDyAGc/6ELsgMzWUHnF3MpsMPFo78s2SC8pQ50EOJBWYxoa44MWB6 qiDTX6KW7Yg3H7B6cSazqtUF0qyL+FuppGk/AW1bczOZVh5jPR5pMTQ1pzLTIrqrF9wr uUZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=fjCa5fCGA5c0sBNIjPzRV62nYHp7nzSq3BtvJOrnO+w=; fh=7vg+3Vogg03ueuxHXTgP2UgXv0OZa3NUxlVN0Ye9lfc=; b=IoZhoMPx0HY1WKd9sxXTADEovidPHL9OUK2mEuNzaclWn6Rt7GfvmJqpUJYIZ/j7Ch 7sigxCwqBZrFPz5iGX3Wil8+F7sGzy+1g6lIZjNqYi2mLz135MdXuOgXkdAHO+498owz CyiLCpYR4t5a0iQ03kjtzFM4GXzX0DdYCRjNPHq903cG21Z5ZBZ5OOYhLyMu0baFCiU+ CiQxIMZEZ8tJvaZwSSqxNZ65W89CDZhLapV5lAqJS3Xf2nnLXy73KiddCd9faiiF9cJy xyh3KX1lwbhYN4JooW2HR/CtWvC/QkYnxRrf1oINn7z+6RR61oGMQH852s8jWA2RGiZN XhuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="By/JMFux"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w5-20020a1709064a0500b0099315476299si1194251eju.1040.2023.08.01.21.05.08; Tue, 01 Aug 2023 21:05:32 -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=@gmail.com header.s=20221208 header.b="By/JMFux"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231824AbjHBDGY (ORCPT + 99 others); Tue, 1 Aug 2023 23:06:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230261AbjHBDGV (ORCPT ); Tue, 1 Aug 2023 23:06:21 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A208AC; Tue, 1 Aug 2023 20:06:18 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-5222c5d71b8so8954418a12.2; Tue, 01 Aug 2023 20:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690945577; x=1691550377; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=fjCa5fCGA5c0sBNIjPzRV62nYHp7nzSq3BtvJOrnO+w=; b=By/JMFuxmimrvNsuLjPeoII+8qmCISQMQozt4h6bX/XCX43Gl+TeF6Pwl1Wzc4Fhs4 Gfb6AOrcHW3IBx+eV+xZPF6Hy6/fAl+7qvpZQ7wgrkxNq7xN3+A6wfzjOf8rzs5wBo3g qBK45caShxCjRZFOSorzWd3g8F1rUgBzdgccX5HSV6G267UhGE65Lm00dbDwxxpuPx7z MDBZ+UJOjrdgIsSwRNjbN7Y7vNzpyN2CQ/8b0/W3LQNKlmOT4V2Vtea09eRZb9OYIDYu hE/VejtErNiOo6PXEtQOUu6czbVeJCvUJn1ElbPZh2DQ9rM0kvZXIaCkWfqS5dmIS0sp IASg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690945577; x=1691550377; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fjCa5fCGA5c0sBNIjPzRV62nYHp7nzSq3BtvJOrnO+w=; b=WYFHC4rmcHu4H8c9S/FW71DRXR6UFKzWEhtOQIfQxFDgvTiVmmduAcM7p+Lb6XlS/M 4kBjIY3L3kTODAehOetj7CVt9aVqrlMvOvGtlYHLDOGpvgnDopf+djcWIWeqeyG+GzHl uIT4Rvm7hWpQ41pgz2nsy67LzykcygyCRSbMkGKai7CQGo3Hu8CW0khcSKcEkffB4Dlw nfCWbZDgxs53DAzZOiPUATe6fugpgYw7Yuc5acB3GkCNrtMpYQDXIX6mmqTLhCdxXE3Z SEFtgi8VRoX957QFMYMvDyLnjuJIiSV72Ht7l0jwwcgAKhFwbFx1Mz0a7UEY8TSh+Ziv Tyhw== X-Gm-Message-State: ABy/qLZcwGNXPgNYS9xFgV/qOtPfU7wdlyDJOoXGKpF8MMLOKxBP/LZ/ Fsvi6t6hXtn7Ls4pkymIgcINFqLkM2K3psKXpIU= X-Received: by 2002:aa7:d293:0:b0:51e:f83:6de6 with SMTP id w19-20020aa7d293000000b0051e0f836de6mr4012423edq.16.1690945576747; Tue, 01 Aug 2023 20:06:16 -0700 (PDT) MIME-Version: 1.0 References: <20230801090124.8050-1-zegao@tencent.com> <20230801090124.8050-5-zegao@tencent.com> <20230801114650.GE79828@hirez.programming.kicks-ass.net> <20230801103340.5dfa7133@gandalf.local.home> In-Reply-To: <20230801103340.5dfa7133@gandalf.local.home> From: Ze Gao Date: Wed, 2 Aug 2023 11:06:05 +0800 Message-ID: Subject: Re: [RFC PATCH v3 4/6] sched, tracing: reorganize fields of switch event struct To: Steven Rostedt Cc: Peter Zijlstra , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 Thanks for clarifying this ! Steven. This is really helpful. Regards, Ze On Tue, Aug 1, 2023 at 10:33=E2=80=AFPM Steven Rostedt wrote: > > 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 tracef= s > 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 libtraceveen= t, > as I've been giving many talks on how to use those libraries. > > -- Steve