Received: by 2002:ac8:156:0:b0:3e0:cd10:60c8 with SMTP id f22csp527052qtg; Wed, 5 Apr 2023 13:44:33 -0700 (PDT) X-Google-Smtp-Source: AKy350ZsCg81201/AQ3l7NO80rjgxmMuCY97WXUVWsICAgpIncmnkrZ2XHpqIeIBm/oY8C0CzIJb X-Received: by 2002:a17:90b:1a8c:b0:23b:3682:c899 with SMTP id ng12-20020a17090b1a8c00b0023b3682c899mr8174256pjb.23.1680727472822; Wed, 05 Apr 2023 13:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680727472; cv=none; d=google.com; s=arc-20160816; b=zgd3roX1xA7sicePFVM5NaCyw3vbPgfBhPe3USWBN4Xd3SSkc7FoS6S2E4x3SXvx1p AuRIJfOn+49TQ+25d0NA++8eQAX8XvmBRDpEvSOw3DExOVUhfiBWkS88O5oi4h2UCdCB ctWNvZMH06NRZ5xVRGnygaQ3ITbH4uG+9tCmR0a43Q7+U5tbveJmd59xe1SHdmcGXK6J atrizixs6itDJvL5P8UNhFUzShSMmwPnjMUORbULiLMu8uDShwQOa4/CxvTikKvMi9XK MKJn+wqxG7iNd7T+3dfnKbVfE3e7mlbv8I7/3I54Q7C7vtcmtkoDeHcKCGxt3pC2d1ID 1j0g== 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=3G8x+PZlxGabSFpyGdNVCk4HIQ2o15v8u621JGpnibY=; b=QA9Cj7XHI13Hko/eojunYF6FU/x9Qziez8GhzuWjqzqtLqQtDybp3fcJ5FjaGwijaI gPMdXHD3DrycbGk6KmfSTNihPEHc0KczjNGA6+GGa2cPoZml+UizG7UvltrSu9KOPabI bClh5jVNaKKo706BB8H+g325F+RVu8pJwijPJuWvBWciHIb/i1UFyi0sqw9zBAb+dDir nOb4iZz+W+JKaFqpriEVTjSWgaPQy81NotufhowD5v5Y0D8Fi/jVSayiX+4TCTxbvr4M HmbWKQx6b5an2X9f6gYzmb9Zq0S8FRhMaddA4QvCweIucwcUtZHL8dUGPfunhqjyueZC Nl9Q== 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 bj9-20020a170902850900b001a220a6b915si12308619plb.613.2023.04.05.13.44.21; Wed, 05 Apr 2023 13:44:32 -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 S234690AbjDEUma (ORCPT + 99 others); Wed, 5 Apr 2023 16:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234696AbjDEUmJ (ORCPT ); Wed, 5 Apr 2023 16:42:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EA637ED2; Wed, 5 Apr 2023 13:41:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C85FE6416A; Wed, 5 Apr 2023 20:40:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B12BC433D2; Wed, 5 Apr 2023 20:40:26 +0000 (UTC) Date: Wed, 5 Apr 2023 16:40:24 -0400 From: Steven Rostedt To: Florent Revest Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, bpf@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, mhiramat@kernel.org, mark.rutland@arm.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kpsingh@kernel.org, jolsa@kernel.org, xukuohai@huaweicloud.com, lihuafei1@huawei.com Subject: Re: [PATCH v6 3/5] samples: ftrace: Save required argument registers in sample trampolines Message-ID: <20230405164024.5f5c3b6b@gandalf.local.home> In-Reply-To: <20230405180250.2046566-4-revest@chromium.org> References: <20230405180250.2046566-1-revest@chromium.org> <20230405180250.2046566-4-revest@chromium.org> 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=-4.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Wed, 5 Apr 2023 20:02:48 +0200 Florent Revest wrote: > The ftrace-direct-too sample traces the handle_mm_fault function whose > signature changed since the introduction of the sample. Since: > commit bce617edecad ("mm: do page fault accounting in handle_mm_fault") > handle_mm_fault now has 4 arguments. Therefore, the sample trampoline > should save 4 argument registers. > > s390 saves all argument registers already so it does not need a change > but x86_64 needs an extra push and pop. > > This also evolves the signature of the tracing function to make it > mirror the signature of the traced function. > Should probably add: Cc: stable@vger.kernel.org Fixes: bce617edecad ("mm: do page fault accounting in handle_mm_fault") Reviewed-by: Steven Rostedt (Google) -- Steve