Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp559571rdb; Thu, 15 Feb 2024 08:15:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWg8AYC7gXMsRcOWEYtGLCX49gYoP8v86ovt6mR8XXikNlND6g15Lj8tp+GAKF/JQps4in/geaV0R+5HlO3mgRN5e216sfE1eaj/4KyEQ== X-Google-Smtp-Source: AGHT+IF0f1XQm/wEC/PxwPkqv8rgFnwboCvJoHa3dlPSIjhNVSJJ172LRoDyAc4t/ykMSQ51qO/S X-Received: by 2002:a17:906:e255:b0:a3d:605b:f54 with SMTP id gq21-20020a170906e25500b00a3d605b0f54mr1802637ejb.58.1708013710995; Thu, 15 Feb 2024 08:15:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708013710; cv=pass; d=google.com; s=arc-20160816; b=WianzqlzoAymxhdP1f7Uv7kXfHiuti86N8YVd7uycFSzb8UuzAJpuEs4uFzDpZ5QRI UPQjEE46t71IYedI1FEVMaGCkwZSyoiPwvqvrQl7ZXO9TKrZGC7G8nM5Di06y2eBjj/G 4lDREpEOmoZryhNIcuIAQs6PAyhb6ILdu/zMc7LFUbF5nH7BEDEzc8U6xsEDCGMsr5Qw NeVkxa0ecxeYLpLNfk0ot9F1OGM1niDS7t9M8P6d7HxuhlDWpckpj6QJsQ3zbYiGv0+Y y+Sn7S+h9fiBZcWdhVFzGXCWeb4yk9j/ItgnNNhiZH1h4zlVPs6czFy2qxtnUnyygW7K hXBg== 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=1EdAApEpfahABICPP0xvQ+M85mD4FHcZSXJqM5+kuHM=; fh=VaF/w+FGpk/prTFLJfCoV+GJDmV0Sd6dt8EMZrBTbz0=; b=lXVzCyoOvEQtiiV8VbJoBCPZ6HF9pzjWLY+YLfqPoNg68D9Ga9kGyoehEo6efDk7Nf atpG2uQnyeVX44Y9ibSCs+L1YcM/ggb1dhvriqZXUavxK6+9ewkklPETEhPXb527UnWy D3foHhBo1iEq/8Q890GSd/6PH5VNnp7gICnhGCYz1r8k4p5bB5waZYsl1CAejyconCxB oaxyaprET2XTdXpilokS14rIAAS53g4TFhUpNiHq3S/BNBzsyFGtHe6CcV7Ip8+xHOEY sLS1TRZjqIIDGgvtZLOpZUGnDjxA2a4dg86H+cTSRLvX2QhfjI3dY6c9chthOb1r961a A4Kg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67289-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67289-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p23-20020a1709060dd700b00a3cfa3fa6bcsi778178eji.1001.2024.02.15.08.15.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 08:15:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67289-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67289-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67289-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 A50881F22E9F for ; Thu, 15 Feb 2024 16:15:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 444C8139567; Thu, 15 Feb 2024 16:10:03 +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 A0E43133402; Thu, 15 Feb 2024 16:10:02 +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=1708013402; cv=none; b=WAXvpHSx4+ti3+ygXjPsro5jW+iWhKPS33VoP0yzemekeJAOUV8xpZlqSEoOKn4RqXzjrSj3ZCDYs/0I5pcepOnDYDgbM0TKmA/Ghk0yWksd2v3/giKYclsjY39G5OKA9BpHangDaT/jb+CBFvOEsguX4RRi/zARlajcVRMPkdk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708013402; c=relaxed/simple; bh=u0TeSmVIJ93SBLQ3hOzzlF7PCXukg0LB0O2Qw6z3JqQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=piMeRWhnZL52394OAs/9KG53l2MLOehGF4EL/GdrS38H7qycj2Jj+ytpuxcAPzSG+dW2audfuNQ0E2+P5/Umy4vwAnTh1csBd1U81DXr3b9NCYJM/vNSSD3uD5x1MHQdWDyxqc8umGwyZRo9gcCkHyr3pIyZSFk09qelKhNSNlc= 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 7DF52C433F1; Thu, 15 Feb 2024 16:10:00 +0000 (UTC) Date: Thu, 15 Feb 2024 11:11:34 -0500 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Alexei Starovoitov , Florent Revest , linux-trace-kernel@vger.kernel.org, LKML , Martin KaFai Lau , bpf , Sven Schnelle , Alexei Starovoitov , Jiri Olsa , Arnaldo Carvalho de Melo , Daniel Borkmann , Alan Maguire , Mark Rutland , Peter Zijlstra , Thomas Gleixner , Guo Ren Subject: Re: [PATCH v7 28/36] tracing: Add ftrace_partial_regs() for converting ftrace_regs to pt_regs Message-ID: <20240215111134.7bfd1408@gandalf.local.home> In-Reply-To: <170723236068.502590.9568421023325291255.stgit@devnote2> References: <170723204881.502590.11906735097521170661.stgit@devnote2> <170723236068.502590.9568421023325291255.stgit@devnote2> X-Mailer: Claws Mail 3.19.1 (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, 7 Feb 2024 00:12:40 +0900 "Masami Hiramatsu (Google)" wrote: > From: Masami Hiramatsu (Google) > > Add ftrace_partial_regs() which converts the ftrace_regs to pt_regs. > If the architecture defines its own ftrace_regs, this copies partial > registers to pt_regs and returns it. If not, ftrace_regs is the same as > pt_regs and ftrace_partial_regs() will return ftrace_regs::regs. This says what this patch is doing and not why it is doing it. -- Steve > > Signed-off-by: Masami Hiramatsu (Google) > Acked-by: Florent Revest > --- > Changes from previous series: NOTHING, just forward ported. > ---