Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3041042rwo; Thu, 3 Aug 2023 20:56:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxBx2kPT/EomMXObaGN4MssUYA574StcPXFe9kpoRRhYtwDeTXGsqKZkureGE6YUr1BorR X-Received: by 2002:a17:90b:17c9:b0:268:2b5c:14d with SMTP id me9-20020a17090b17c900b002682b5c014dmr640312pjb.36.1691121402518; Thu, 03 Aug 2023 20:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691121402; cv=none; d=google.com; s=arc-20160816; b=EJwF+7lI0ScIA8RYD5ChGJgwLTWCqJNNewcizH1QGFwAruTHTl867QkWgfc7eDIeex CSm253QGkfzzWvWlqE7fv9X936CVA5NEudyVGHk4J0B2m3hGbMgqfQ7j86TxwUI0fa3H aX2YoKQSCSg6+toVJJYSBVGiNfFO4GmfRqUwLZW8RIPqS/qvaIqa0xvMcqJUTLCP8YLH 3tNrnB/vz6otYPpH6dX57AoUP68k+3CwISIb2pRb+/9KUE9nv06K6aaUyZLP5p/OxPql btEvXx0O1q7+ik61YX3nPRXLCie/RaljyDQtNKwNxHWYaeRmsM5SLmw8/aqWylWBT+sm TxkA== 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=eaJz70tjfMXXKGhJBltzScktuPQtUlziBEJLU9wwUqA=; fh=UpFtFCzii5ykkGoXq8QCM+IXKNgpf9xKHjNRjBS9wMU=; b=tryW4VOH2Bd7XQDb0yuvQrrsEkNRe0SypjmXmmnYsN0tn1SBdzaaYSyskj+cVDk65v lS5lxyeekU/5G5f2MyrQ7KQb+CzFRDrt1Ift+R1IkRYHI7QAda3Dre8Ix+Cl+x8eWW+Q gfr+tmYVTOkCgnCWWNsOZcLVr417SRrozWHnoX68VhRl3fx08N+MqdMf6pFUOzM3mMCv RBxq84JDhYwpqI9i9I+Ad/rBzF4wRXK+ZNGUHIOvXU4rixHnJxblkVQX8ISIJmz8o3Vd nVJN3XRWLcA202l1J+OIkBGrEyfCq+kRsE6MsYrm3XKt0mPG0kZAxRxqbhnPQausb8eh iByQ== 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 h2-20020a635302000000b0053f23442f24si1064335pgb.502.2023.08.03.20.56.30; Thu, 03 Aug 2023 20:56:42 -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 S231392AbjHDDlc (ORCPT + 99 others); Thu, 3 Aug 2023 23:41:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbjHDDl3 (ORCPT ); Thu, 3 Aug 2023 23:41:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9752C449D; Thu, 3 Aug 2023 20:41:28 -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 344D761EFC; Fri, 4 Aug 2023 03:41:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F4045C433C8; Fri, 4 Aug 2023 03:41:25 +0000 (UTC) Date: Thu, 3 Aug 2023 23:41:22 -0400 From: Steven Rostedt To: Ze Gao Cc: Adrian Hunter , Alexander Shishkin , Arnaldo Carvalho de Melo , Ian Rogers , Ingo Molnar , Jiri Olsa , Mark Rutland , Masami Hiramatsu , Namhyung Kim , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Ze Gao Subject: Re: [RFC PATCH v6 1/5] perf sched: sync state char array with the kernel Message-ID: <20230803234122.19b3d3a4@rorschach.local.home> In-Reply-To: References: <20230803083352.1585-1-zegao@tencent.com> <20230803083352.1585-2-zegao@tencent.com> <20230803111031.056b3446@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (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=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 Fri, 4 Aug 2023 11:19:06 +0800 Ze Gao wrote: > I realize this is not perfect as well after second thoughts, since this does not > take offline use of perf into consideration. People might run perf on different > machines than where the perf.data gets recorded, in which way what we get > from /sys/kernel/debug/tracing/events/sched/sched_switch/format is likely > different from the perf.data. If perf data files does what trace.dat files do, it should save the file formats in the data files. It should not be reading the kernel when reading the data file. With trace-cmd, you can do: trace-cmd dump --events And it will show you all the formats of the events that it saved in the file. -- Steve