Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5716423rwb; Tue, 1 Aug 2023 07:03:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlGGv452BleN5FvIyIU6YxuEr1qyJbp4bGySVIq7xXeU+2iQIaBEZt6Q/l2h58N1D/3Dipnd X-Received: by 2002:a05:6402:5149:b0:522:c0ea:15d with SMTP id n9-20020a056402514900b00522c0ea015dmr2275549edd.41.1690898605298; Tue, 01 Aug 2023 07:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690898605; cv=none; d=google.com; s=arc-20160816; b=JPTzRbGO+zGinuo1+Rf+7426MYkOcM996AHWWZ2vlCuXe8Fop1GXZpVUpL3RhLCd6C Kb+tOLgtoUnIQka55Mta0fy/yKIo0jq4s5wO5V8JavP2+VFiW0Z/b0Uqahm9QaBYcoC2 zuTH/7wYkQjvs0n7O6mVWZs+1YVOj5VGtHf5j4z8GbtXTHppbEs2M+poeUpn/KlRmeu4 HnDT4JIhSjSQMAjuxRJ51FJQG07yCH6fOBI/RWjSZnqu7laGwbOfjCXMtcgV64hzOQ4G GSJcAn9ZTY1l6iXRscy/Su7lOebk3O30JANtlt1cnvsk8fkUckwtszzuztE6lDcXfgiT iEFw== 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=YIXWLmHWaAppS2BxnmUwozE9qzcrfXtbdStzdLC/lgA=; fh=TlS1M3eG/DSmde693FQvukU3rZXZo1yakG+rYieM2g8=; b=ELH0/hvy3BkXxQBS/BgIES9C5kBPzVV0YemU5zKrOZRF6fmUBd8Z/5YF/NAWx9JOco ynsYUlcWHtuwsx+2iR5/bFmNF1HKDsDTx6rF4+hhhqWDBmnu6LkmDWSnl52p44XHrSqz qYMUQrsCWC0QfdDEAmIZz8E7FO0VUW+LwyNhXoqa5hKdsmQO2AZfjwjwz1lBLOUVH/6f pbwybmeBB4tSItJG6keGxDZtuLyCAtlpr2ixzOgKeI5ITfik27tp0kBm8ul52W+p7aHr ptLhvCHU7gCoTj82BSkpvmiGI9vfR050E41wq++Z6uIMBDYy7tc6KN5BGFJU/j+joWea aOAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=COYlb4Ga; 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 n13-20020aa7c44d000000b005221ce967ffsi4943986edr.54.2023.08.01.07.02.58; Tue, 01 Aug 2023 07:03:25 -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=COYlb4Ga; 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 S233968AbjHANRI (ORCPT + 99 others); Tue, 1 Aug 2023 09:17:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232541AbjHANRH (ORCPT ); Tue, 1 Aug 2023 09:17:07 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24CFFE9; Tue, 1 Aug 2023 06:17:02 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4fe457ec6e7so1059888e87.3; Tue, 01 Aug 2023 06:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690895820; x=1691500620; 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=YIXWLmHWaAppS2BxnmUwozE9qzcrfXtbdStzdLC/lgA=; b=COYlb4Ga4N1eBlWAcXr7YiqPw4OBJOT0EcO5/bzHq6jKC+4SZUg4RwcUkk65mGgCGr LSwXIaq3rCpJ0841e2fgii2K91DtVz+9S4ZOsrHsPiI77c6oQwaW+MYD/mI8roDiLpmR iNGWb+sSmBpy2erneqAUBbDZ2bg0/7VRDWp/vljkiNkPtE7kFXqfq4aftuvsIqNyL43y 1B49mLUy9fKqbWzpLnPwh7Y3DqrNOWTtSB9GPbk6tgRvAomhKW/elZxeDxcAMNUwbUSP 7jHeGLOANXc9HcB5u9TOGgXkQpBlAF9JMcxCiZ+FapEKrxclrOCNiKFN0t11STAFUhnz qeCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690895820; x=1691500620; 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=YIXWLmHWaAppS2BxnmUwozE9qzcrfXtbdStzdLC/lgA=; b=T2+eSGYxZI6f1jQ0FK0UTnGDCGB5bqln9qQedPluRvu+jePvUbiazLWDmpgP+QrU94 8jXG5ZBTDXt1ay9WKwc5FtQFprkr3LFvXPk2ZJZ0lEmKkb1ABeKp0zSkqVEf9etamtae NzsY7RGVbDCCtxhpqH+i/jw9o5IeAmIeGAbZTmLYiGT69L7uM5WE8iCEQRKNBhh4YrXi 8p0PFcoCmFtZ3FqUl823HRmKNVguwDudOjOb8xdoBQLyis8i+aEfQc8C8sKC3eUvNuih arNhrhyF/k2qeE/yzB153HdLv9RRCFmpldifbU2qyjPfgUE1YMWZ3cYIdr/4Lvi+dpSv z08A== X-Gm-Message-State: ABy/qLYBFfsutfkHJu0l4RThlNbKm+GznutNTEH44gFEa3mBm6cRHfEH F9+mYFZzjThh0JYxehYB4m3UjUnNBRctZQ4/0EjuxWvFWs0= X-Received: by 2002:ac2:51a1:0:b0:4fd:c715:5667 with SMTP id f1-20020ac251a1000000b004fdc7155667mr2000808lfk.20.1690895820122; Tue, 01 Aug 2023 06:17:00 -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> In-Reply-To: <20230801114650.GE79828@hirez.programming.kicks-ass.net> From: Ze Gao Date: Tue, 1 Aug 2023 21:16:49 +0800 Message-ID: Subject: Re: [RFC PATCH v3 4/6] sched, tracing: reorganize fields of switch event struct To: Peter Zijlstra 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 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_BLOCKED,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 Oops, I thought sending this series for RFC is the "effort" you mean to audit the users :/ Correct me if I'm making stupid moves here and enlighten me what I should do furthermore to audit the users. Thanks, Ze On Tue, Aug 1, 2023 at 7:47=E2=80=AFPM 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.