Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5820391rwb; Tue, 1 Aug 2023 08:19:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlEdxNS+VVOywYKGecUelHkrUtamEvMTSZrR506fNhjZYwGZ+hMs4l/BTSjL5iLKzcyXCmID X-Received: by 2002:a17:902:bb85:b0:1b8:a54c:6183 with SMTP id m5-20020a170902bb8500b001b8a54c6183mr11302479pls.46.1690903151205; Tue, 01 Aug 2023 08:19:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690903151; cv=none; d=google.com; s=arc-20160816; b=dzdgaCY8Fd7Ic4zFv5DmdQC0TXME9rUJAmnvW932jZW4DzHvmXCEuhmto8C8qZuzSf I6KXba/riSIqNZzhQUMF4Mf4JJFo4PI8QhKjbJxR1i3GIwMHC5df5AtlvFl4oCqolMiD oiJfIvg48UqIOGbtGdeSOV7cD+6EQRRvTCMZv2A7Mri0SEko5drlLhIf7VpiHKzGcyiF l8kmHVAoHJfmQ5rbfbS0IpW/shjCjTGUkL9uYGS1QX8ZDcsMKpRMVaWqc2L4KJLGblra SI0JESpFeHKhb0jdKAIUWnkofMpdPidL44LQlCTxS1UWmnFkfv9CuISuiNMJ7JK/p0TH oYIw== 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=fqq5tdE5SPQp6RA8zSs8l7/5tvvdB0CYOg5bF/CEyD0=; fh=SC7RDo8kP4aVr1ucaC2YwC6OUmV0rlbdElA1SC1D8bM=; b=o6i7nTPlcISzAaOT/RaKAEPR270C9hJmkRbC8xC/MwVbkvJTqhrYdw832PADrnxwjx 3dXM9eIzDtOonO22Clhz+rbfQO/gogbQt07XlvZh5/QGsD/ePTVGBlw+Zn7cwMLPqMp4 +88cJjH/NCP7xl7skH4kEyoTDhaCjWD0G0y3JTZRdCU0HQjBjmo76Qz2UoyoinMtmTYB hG2VDlI769kUW/qcciIQ0akG9iEtCMW2+tWa5ZZVcSwhja1CvG1BKa5ITYMjRiu1I1lN r3sN1mH/THsMdURa6FRAlXW2j7Tf5L4NXVZg/7EZQAZ8l+sF8d/GPazpNvOYa1Ej86jG otqA== 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 q14-20020a17090311ce00b001b84335fb90si9327863plh.286.2023.08.01.08.18.43; Tue, 01 Aug 2023 08:19:11 -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 S234667AbjHAO1g (ORCPT + 99 others); Tue, 1 Aug 2023 10:27:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232909AbjHAO1e (ORCPT ); Tue, 1 Aug 2023 10:27:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D23E170D; Tue, 1 Aug 2023 07:27:33 -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 2183A615C6; Tue, 1 Aug 2023 14:27:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF71CC433C7; Tue, 1 Aug 2023 14:27:30 +0000 (UTC) Date: Tue, 1 Aug 2023 10:27:29 -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 3/6] sched, tracing: add to report task state in symbolic chars Message-ID: <20230801102729.71906f13@gandalf.local.home> In-Reply-To: <20230801114545.GD79828@hirez.programming.kicks-ass.net> References: <20230801090124.8050-1-zegao@tencent.com> <20230801090124.8050-4-zegao@tencent.com> <20230801114545.GD79828@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:45:45 +0200 Peter Zijlstra wrote: > 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. Nobody does that anymore, as the events change constantly, and are different on different kernels. Powertop (the tool that caused us pain before by using raw values) had to break down and use libtraceevent, because it would break if there was a 32 bit version running on a 64 bit kernel. I've changed the offsets of raw events a few times and nobody has complained since. -- Steve