Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5621561rwb; Tue, 1 Aug 2023 05:45:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlGjIxhp+38fP2zdpi+tEtMaMwpiAWSX80POS/W/MewZmDbaPr1g8BHyUWvO7RhT/R3iSJp0 X-Received: by 2002:a05:6a00:1ac9:b0:686:babd:f5c1 with SMTP id f9-20020a056a001ac900b00686babdf5c1mr15165141pfv.25.1690893931121; Tue, 01 Aug 2023 05:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690893931; cv=none; d=google.com; s=arc-20160816; b=ZwjHalOnAvs/J0DRjMlqarkom0ag+/yIUfcorBRX+2dYJb56NXHqm+/FZhQZPsV4Kw JSIpCsmRFpEBKj4ao4bFJMEEUg85/eZxzBFXzl74l0qbiI8Lx7IY8NHoZi7coOGGCIlo Hy7Mglh2K69Po8vbDe9xnMTxEcZyy2r+7tpuiShUTwaurxhnGI7/bN13/iz+TT26dY/4 kdYVOU1QSHi8/Xs9GHrhPLXnhtQIQpDCe22uwf7rH45qqH0UNH+FgQPUy7ThEIbpUYtQ MXpu5U9Hc7LQWNkTlauzEXtUPhycBXF2K3FUDzMBMLIMfpkzWLeJLH1Kh92bZ+keOVo/ 1hmQ== 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=ziNPMPkgZbjnyw4o3Yiy+e5PXDvLaLqinVQyax6y4tI=; fh=P0SkYcLhQgsUgORHxsOSsuoJfcBX/xB8NsxVGr0adWE=; b=Df4qkhP3qZfRoa086Hyrh8AtY7gJg+aBw7yivZwniU9q089I0IpUNf6st8FrzcnpbW A6PQw5HQBvhnyqvxbJDW4OjFc+ew/6zfAHJIPJid4vCTiiUOQW8yY8oqnhQt0PD++P0k DyKm+0EseYbeaYjnHgAIJl1pb5WI60hQYpShTpi40O1PUKf9K+5jD+ZdaOc+fHvIYdFC txpnFmvy5fvcS6Lhbzwp2dfWn76kFIIyGKBl6Mfxdekh0VlOsWlFweVALJ9PbhZ0+Pjx ZiB0QWFRn8R2CL5p034WA/eC3ZkLo3RSBZpYAI4kha+iw/ZUnAG1nNQkGD1XMgJuurhS +qpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=gCImosHC; 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 s5-20020a637705000000b0055ac5d0fc79si6341927pgc.648.2023.08.01.05.45.18; Tue, 01 Aug 2023 05:45: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=@infradead.org header.s=desiato.20200630 header.b=gCImosHC; 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 S234361AbjHALqQ (ORCPT + 99 others); Tue, 1 Aug 2023 07:46:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234357AbjHALqM (ORCPT ); Tue, 1 Aug 2023 07:46:12 -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 DBA0B11A; Tue, 1 Aug 2023 04:46:09 -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=ziNPMPkgZbjnyw4o3Yiy+e5PXDvLaLqinVQyax6y4tI=; b=gCImosHCb8eTt1d5VbBVrSEbjF lbZzqpVBYMsdBzCyD77NVrvxMXcJIaL8itHlGapNPvFdOuFeZFzYM6/Hum6o/066Uq1f8Y7srvEop rB/Uz92QRwN1dksks2Nlbh2I1VNfFSYzSXzC2/8NkovxsLlGsSigvpFqM0SIjsZ7sOIN/inVOQKyC DU6prbfAbdLwmkCgSppxuhcAQWq26kFUWVb4uh1vEe4eZM2SI4fvSSvuGEVHhASpl3Uay/ACizKQK SotJp4vOhbmL4q17rZ3V080h3RnYkLzMqnXCEd/QGTx2nNCGN6w2/jv7Vs7210lharyFk5ee7wj+C gYylc0oQ==; 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 1qQnow-00EdeF-0n; Tue, 01 Aug 2023 11:45:46 +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 3DF3B300134; Tue, 1 Aug 2023 13:45:45 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 20D71200C570F; Tue, 1 Aug 2023 13:45:45 +0200 (CEST) Date: Tue, 1 Aug 2023 13:45:45 +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 3/6] sched, tracing: add to report task state in symbolic chars Message-ID: <20230801114545.GD79828@hirez.programming.kicks-ass.net> References: <20230801090124.8050-1-zegao@tencent.com> <20230801090124.8050-4-zegao@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230801090124.8050-4-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:21PM +0800, Ze Gao wrote: > @@ -233,6 +255,7 @@ TRACE_EVENT(sched_switch, > __field( pid_t, prev_pid ) > __field( int, prev_prio ) > __field( long, prev_state ) > + __field( char, prev_state_char ) > __array( char, next_comm, TASK_COMM_LEN ) > __field( pid_t, next_pid ) > __field( int, next_prio ) And this again will wreck everybody that consumes the raw tracepoint without looking at tracefs.