Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2141987rwo; Thu, 3 Aug 2023 05:28:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlGdU7AFXb3+frgbCBNncBuMjJxHXrzaRUR4N1z0Q4H2IGiIJYeSTQqiLfAad4hBykZL6se7 X-Received: by 2002:a17:906:21b:b0:99b:f4b2:6f15 with SMTP id 27-20020a170906021b00b0099bf4b26f15mr7487489ejd.48.1691065711795; Thu, 03 Aug 2023 05:28:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691065711; cv=none; d=google.com; s=arc-20160816; b=tMYrUkkU1R6GALIxv7xRpM7QUT6oKEVj637NSMAGxewt4fSZakqMXAECjva4HN2ijp jWC8qCEOc0L9E0UHwwn4vMT807uts7+9wSZjqZEgqSFR4UkwLLFWuy9SK9rVPYwfEslL RVfi+/pPWLsNz3gk6pzemOC+wNM4PRnc0YGBcPzI9oYhwg/dD9iOaZAdMrhcdCCwiTUl MsL/sgu3QXXCzE84QRER+TWiG0FX1QzDcwddBo1bmjQwHSOfejP1NWtEhNeJkxVHFtoH zhjNa7Nd4nAHj1AOGndSDSQ4Qthkdyb+jUz64NoWXg5PxYhaETqVvzP8+1cvUNoPt4b+ TBbw== 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=zXu7inCZnjemglS3ZAdUiIifz464S2TFKVJqbs2kCYw=; fh=Xt4awOipdASXjn6c9OX8T3WLIhThHsM1gUxYAGVClpA=; b=cwFnp7Oju1UKwAbfpb0pMRadKADCuzgsh3akZKPYY2/NJvuPaF9265C7TK4Uk+Dbb1 A+SC+hXActP9ZzdRInU+X6P3GbtNdp7U6PO5DGFwSZOTLY2BU/nJWHrFq4zNSOyqJSw6 IwaJ6i9aVA7us9hom91Eo+syGBXP/WceFb1TpkVWMLZY4vGlTZy4/CcGouOKBbsqFPcX TME8c1GamzpiR3w876T+XWEGbm5tL0dclielJzmXkHNUsIxrbnxzF+uhw84OfRnkTaCE FrAZ2tSg5l5GUNp7NCBc2dMykr3sSiXnRHwjKCKm2/Y6HQqutgjpt68fMtE9C7xdjFR0 NPHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=EEyQkRCW; 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 lv14-20020a170906bc8e00b00992f309c359si9861144ejb.430.2023.08.03.05.28.07; Thu, 03 Aug 2023 05:28:31 -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=EEyQkRCW; 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 S234044AbjHCLIx (ORCPT + 99 others); Thu, 3 Aug 2023 07:08:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235829AbjHCLId (ORCPT ); Thu, 3 Aug 2023 07:08:33 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B458B3AA0; Thu, 3 Aug 2023 04:06:51 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4fe0c566788so1441820e87.0; Thu, 03 Aug 2023 04:06:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691060784; x=1691665584; 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=zXu7inCZnjemglS3ZAdUiIifz464S2TFKVJqbs2kCYw=; b=EEyQkRCWgtSF0AifYVPMWwUzRpHA16eokdlqzUdGBJTt8/Yi+NlcGLtvHRGSchF/7I wuvjk4CiC40CSXfzwbUZo8HjZ4XrdAtin2sTINZXIY46N/t7acUNfoLgqFYZAWXguqRV jPfc7InfO6KYDfI7Fl1I5ON5KC7iuUhcNThgxSq8HUCbknUFfcOsKfVD2vSKavAqgZDk CClINj9py+YdVsJxK5/m90mc9jLYZeHkLKUl8+o2lU0SsYpKlIJ2BmOR2M+VdTuifDs3 Z9s4OQv6lCHtetdnlvCXkCFiZy9gtNfBa3BV9mI+dmVGB2f0MdZR0rpB8oCK4tmI6Lyj oj0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691060784; x=1691665584; 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=zXu7inCZnjemglS3ZAdUiIifz464S2TFKVJqbs2kCYw=; b=B5WAU17JZYvxBd/nJOgUw/77GBY5GgFwE4O35msHF8oZiMnkfHkA6VQqLLQHre1Ku5 4vGrnQgCgUBfl8mGDpOKfaj2NBW7c1kotWhvyubmkXxtkgzceXUfxTVf9ERH/qG0RdcC fD2phrPHliFh5cotTQ5A4jeY+9nboXkzc5aKQVTSMECcBJvqGc5s62auMQqfC+IzJq7k NFcYJU/jEVnEN6bvfJ1bVCsK4vxy2tP/Em7OQEHzT8wwcz/LwaQibmV+oVwslx988mlf dqPhsUxC7VhXlm6edz+PHjAkuGEw4KrKMTf8fgEk4fyc6dTTfP2aWnyB5vSushY1BkAh WrGw== X-Gm-Message-State: ABy/qLYXAvymia5C1Aor5QkqBFcClOOB8Zo1AXKxT11rEiVqqDR+nci9 YCIb2NqqSn6z2VFwiq2kvZnYZ69X5EVAwXmW+XY= X-Received: by 2002:a19:9102:0:b0:4f9:51ac:41eb with SMTP id t2-20020a199102000000b004f951ac41ebmr6178816lfd.16.1691060783927; Thu, 03 Aug 2023 04:06:23 -0700 (PDT) MIME-Version: 1.0 References: <20230803083352.1585-1-zegao@tencent.com> <20230803083352.1585-4-zegao@tencent.com> <20230803085342.GG212435@hirez.programming.kicks-ass.net> In-Reply-To: <20230803085342.GG212435@hirez.programming.kicks-ass.net> From: Ze Gao Date: Thu, 3 Aug 2023 19:06:12 +0800 Message-ID: Subject: Re: [RFC PATCH v6 3/5] 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, 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 On Thu, Aug 3, 2023 at 4:54=E2=80=AFPM Peter Zijlstra wrote: > > On Thu, Aug 03, 2023 at 04:33:50AM -0400, Ze Gao wrote: > > Report prioritiy and prev_state in 'short' 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) > > Signed-off-by: Ze Gao > > I am really getting fed up with this. This again doesn't list any > reasons on why this is a sane thing to do. Lesson learned from Steven's reply, Will reorganize the changelog. Thanks for pointing this out. Regards, Ze