Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1139109rdb; Wed, 24 Jan 2024 06:09:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IE7w7TxcU0zn6tWIb02HdU2wZm1yQIKru7zD4zD3f6n84LsR6r33C+8gtBBh/JFcs65Tjpe X-Received: by 2002:a17:906:9c85:b0:a31:1b1b:e43f with SMTP id fj5-20020a1709069c8500b00a311b1be43fmr582607ejc.214.1706105362427; Wed, 24 Jan 2024 06:09:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706105362; cv=pass; d=google.com; s=arc-20160816; b=n/XoNi5qnVjwQp7qB1F+Gqk1eL4kaDq5C9WtX4hO2oVjm0PJb4eJeUiApsMwFrqHcj WnSzioybHUm2ZNFB7WyH/g4e2d9tzf7T1tSt3E15nlsyfDbacAAOKumiFkDSxo2KJqrT hNH0bpKTRUdi/cKr0eeVYb7VLIPnNmJ9/rl6dXVUhYuPPXdExXvElo+IZJFW+Aa5txWT OMI1FihDpZOC1nKT9yXzGxdwBeB5z5ELTDzQbV1grY4MPYHAN2wR3zG5XbvcALsQQWB5 QU+NCcgWRiukB7b+4jAAIbscvAYCkUm5zdgcLO/YiVNsZkeM+x9NOLgjpK2CxGsCob/h t4gw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=sT4rjmh1/TrvwaAskULp8WLixK1+nLDCPMSbbowIi50=; fh=WPE2ggudkhDtZQ3dri4xFbRZ8PMOHfopmGzolMwz8uI=; b=pra4b0rZSHn5DBcpg0nYlibypa67DymfG4HBiIjpjUnzcpulIBJffiRyR8aGVE4Gdk CwT8MQwS1AU/LCq5YjU3KsT9FsDJoxl0+S1q1jq3UsM+aYu+/eT3kCp12HRqc8MMlOh3 gQdCSAoO5xsM5GJRqKl+wJ69Rv/ZgSvc/5kIKQDmHt4SZCb50SZikavZ420BEhQFdzVU uVMCs+NkRY5Bc9nF0xxF69YmlvnAedkiz5YGyfqjMuvYxOgWRlfcLk+vVC4giXJBzigr nMl/eDjp6HhS2oEcC7/ueaMLLKTulK0mQsfPU1gV0xVqQ7oHAkBelmXsILJLqYrXebfZ n7vw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-37087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37087-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j3-20020a1709062a0300b00a2d54f1b85esi10565713eje.52.2024.01.24.06.09.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 06:09:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-37087-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37087-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 045661F23496 for ; Wed, 24 Jan 2024 14:09:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64EF97A70D; Wed, 24 Jan 2024 14:09:12 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE3A477F04; Wed, 24 Jan 2024 14:09:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706105351; cv=none; b=XNAGaeSnd+hEB35uMTQPiQw9D6Q6pDW9ry/8sU3yjsuHNO+FI/ypgCs/Dt8fwlPmyrGhWwfQILgAj6nw4U/uL7S79tZleL92AJ9fxPb2vN/u2yRfQHucG3xP7BjD4yMZOBfF/961vscRD82aQOL9WJ0Zd+4YnLIPXOdijbiS95o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706105351; c=relaxed/simple; bh=9xyQqImeowhTNiBETbyePeJW8OBK843qk/mKs+AU/Uo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=aM5HaTfJ/8nksb5mhJB/sE/d53loRVwm1D/eKgkSbKjBMTuir+kWN4KkzVYJlENono4u1W2MxJ3d2zgY8dEskQY720d42sPbkcYuyvEsXlYvDu5Pkk7hwDSOeirzwzEFvgKlmPh91bitrLOmzbZLk9vAzuC6kQjdoNYGqOTV/pQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DC7FC433C7; Wed, 24 Jan 2024 14:09:10 +0000 (UTC) Date: Wed, 24 Jan 2024 09:09:08 -0500 From: Steven Rostedt To: Borislav Petkov Cc: "Naik, Avadhut" , Tony Luck , Avadhut Naik , linux-trace-kernel@vger.kernel.org, linux-edac@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, yazen.ghannam@amd.com Subject: Re: [PATCH] tracing: Include PPIN in mce_record tracepoint Message-ID: <20240124090908.1c4daea8@rorschach.local.home> In-Reply-To: <20240124095708.GAZbDe9Hks0tL2Aj94@fat_crate.local> References: <20240123235150.3744089-1-avadhut.naik@amd.com> <20240123203853.66655e95@rorschach.local.home> <20240124095708.GAZbDe9Hks0tL2Aj94@fat_crate.local> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 24 Jan 2024 10:57:08 +0100 Borislav Petkov wrote: > On Tue, Jan 23, 2024 at 08:38:53PM -0500, Steven Rostedt wrote: > > Yes, rasdaemon uses libtraceevent (or a copy of it internally) that > > reads the format file to find fields. You can safely add fields to the > > middle of the event structure and the parsing will be just fine. > > Should we worry about tools who consume the event "blindly", without the > lib? I don't think that's a worry anymore. The offsets can change based on kernel config. PowerTop needed to have the library ported to it because it use to hardcode the offsets but then it broke when running the 32bit version on a 64bit kernel. > > I guess no until we break some use case and then we will have to revert. > At least this is what we've done in the past... > But that revert was reverted when we converted PowerTop to use libtraceevent. -- Steve