Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4482283rwo; Tue, 25 Jul 2023 06:50:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlGf9iaMGXpVPywWGLthdrLFe5bsGOv6Jl4TrvoJNwoaRUZkyEosWHVtinYBO7DznjD4K9ym X-Received: by 2002:a17:906:31d8:b0:994:2fa9:7446 with SMTP id f24-20020a17090631d800b009942fa97446mr11446544ejf.46.1690293000144; Tue, 25 Jul 2023 06:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690293000; cv=none; d=google.com; s=arc-20160816; b=CSi+Fc9C4IhAk0TJgtuwzf7g0au8Lh7IpujQbOGvBpPgocLcv93AaHPGN8/GeSym4U tLmEsrN3x8Wo24WI9eW20kl+zN1x3BmsfSMVNyJST6F3OMWreSP12boty9dMQJZMWQn4 KEixSGnFwRQQiZA37684vQs2V5NAzI0JWrwtPImWTHVIKR6j6SHmx9U3/t6bzD0Nqz7y 6EN8yC5Sti43sRqTWRByVpbVZUKQ3NckdP5Um0AZE7dlYHzPTT7omKpxHMorxVctTvHZ xCw4Sz/F4twlADaVuGXtzaCFnxKiotAgnMl0nePSz6RrFiptxkNn+EksQ4aOmPakxvHz w6nA== 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=cJS9hWdS3WIM11d6kg/J2cpVY/K0AghRcBxdtWBel3E=; fh=hTQWyi/3XM1T4KH3dT1ZHOop7jNq+dU+MHMEXTTgeQc=; b=R14+oFE6U1b4Xbjr0USWWie7zgsWecn101dJqhMNQq7aEU1WLWI7JFvaN9MmbGchyO tNJDWaxcq0H2AzveasgBOHXXVqzEOcLvPTw4LXHtHR5PpRewTPTVLY2iWdoeAUCqFqKu wDGg6AZI6+anPglwcQZE+09oP9J4eO5rgqBW+5cFhesAXKXGnRdIznQ59vyK0Tgh1SYf PKHR9zSvNl/Lnb4yZxGHtLRs675/0kVw1xQ6+a3SN6vIVbXzU4nNAO8wiyhrpNU6ujxS LI5552mbF+GfwDvllAz6golK8pSKfsY6xMXglk+9ly6ssAVr1sWXMMi4vO6+qHtZZz34 twTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=fu+uGT2q; 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 bo15-20020a170906d04f00b00992c92af6f5si7736107ejb.869.2023.07.25.06.49.35; Tue, 25 Jul 2023 06:50:00 -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=fu+uGT2q; 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 S230399AbjGYNcP (ORCPT + 99 others); Tue, 25 Jul 2023 09:32:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbjGYNcO (ORCPT ); Tue, 25 Jul 2023 09:32:14 -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 062811BC2; Tue, 25 Jul 2023 06:32:14 -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=cJS9hWdS3WIM11d6kg/J2cpVY/K0AghRcBxdtWBel3E=; b=fu+uGT2qcg8H3XiKFVWP5UKtUq lKTdMja9KLM/RBM3EcVilsF1p6x9bJYZyEu8mCJq15cab7zWZYLSH8YhSJkaxEU9CifjHcmYyyEZO Cf53hw9g1ptZIAbpS3kVqcJxy5W6LlO+BIHvpK8CEjL57HhwzJxe5xBN1J5V/aFKGzgONGBUkldOd ahHKi1y7acZIY4uAlNt/Kf784xjSInYAkfOjQ8OgNI//f0XwDKkMx9yjgysj7/lfDfPTogfHM5+tA NdyAbLHorlLqctEgX4rPYQT901Yl7uMHDgFYn16OELr/frraKQpiR1ToCCuHV5//3Y8ce15wO9r5E OJZUQz4Q==; 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 1qOI7x-004A0r-0c; Tue, 25 Jul 2023 13:31:01 +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 42AC4300095; Tue, 25 Jul 2023 15:31:00 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 265B52CCD6AC0; Tue, 25 Jul 2023 15:31:00 +0200 (CEST) Date: Tue, 25 Jul 2023 15:31:00 +0200 From: Peter Zijlstra To: Ze Gao Cc: Ingo Molnar , Steven Rostedt , Namhyung Kim , Ian Rogers , Arnaldo Carvalho de Melo , Jiri Olsa , Mark Rutland , Masami Hiramatsu , Adrian Hunter , Alexander Shishkin , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Ze Gao Subject: Re: [RFC PATCH 1/3] sched, tracing: report task state in symbolic chars instead Message-ID: <20230725133100.GL3765278@hirez.programming.kicks-ass.net> References: <20230725072254.32045-1-zegao@tencent.com> <20230725072254.32045-2-zegao@tencent.com> <20230725083357.GA3765278@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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, Jul 25, 2023 at 06:53:07PM +0800, Ze Gao wrote: > > > @@ -232,7 +235,7 @@ TRACE_EVENT(sched_switch, > > > __array( char, prev_comm, TASK_COMM_LEN ) > > > __field( pid_t, prev_pid ) > > > __field( int, prev_prio ) > > > - __field( long, prev_state ) > > > + __field( char, prev_state ) > > > __array( char, next_comm, TASK_COMM_LEN ) > > > __field( pid_t, next_pid ) > > > __field( int, next_prio ) > > > > This is a format change and will likely break a ton of programs :/ > > BTW, could you help to point to any possible tools/programs that would > break other than perf/libtraceevent, because these two are the only > users I run into so far. Latencytop was the one breaking a few years ago, but there's a metric ton of sched_switch users out there, this is bound to generate pain. Steve, you remember what the status of all this was? at the time breaking this was considered on par with ABI breakage and we reverted or something. Is this still so?