Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2099067ybg; Thu, 24 Oct 2019 04:50:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqweerdGvSEg/L94r9oXjJAh1xUu66ZPHl/3I2ghb3+AYG0cXHaw55eJmft3rRkNTra74dMe X-Received: by 2002:a50:e445:: with SMTP id e5mr42426262edm.257.1571917813920; Thu, 24 Oct 2019 04:50:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571917813; cv=none; d=google.com; s=arc-20160816; b=LtxsveotKwapkIUWX7D8q5d7Y1jdURE+voZV5VN7DCO5QfZvFRsf69PtsC6kLQOMDJ fsXcw4chCHsDjcyI0k+rYIIUzLxe9QFbZH5insXg7+AAhpFENSxedm6v8OmLwyMz3Bp+ 138iCQqPrEGNELok+f+GcC357MC96cH/eft51oNFt9eLco8k/DJZi7X2OSBfuvodORAU Ban7KsMdMRZN0Q5Us3Qbtn3iW1KLHrsdj7Ak4SBi66flfhh0qIhnPsm6UlNj0dhslyBr pAKI1r9q/2EtwajLwUgUoirZN3hw6uyD9FgpJpj7LORZrsdiY6zaZdsyr9b57N8vV4TJ U1zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=j+ylx4VGj1os637gqfdFOAVBGmTXDfeekxcXYWlk13k=; b=inOBrEM1Ag0NcX3BPkMZlt4baqTa6sxbfuswmF90Q2ErSqivHiThrTSwQi6oORhUOX yucbHcpM6MTE1U3ds2hDB8BAaTxuYuA5GC1UPjcp/i/Zc4u5SbIYlhZZzunGQ9KYDZoN 8U/5XIQIHrkzDG+mdvgXrxa7gVKpwBtVimW3tZDf37gMoQH7c1XIM3M+QoM8Bt57ljj1 EsegHW+h5CY7Vc8szkhpieAqBiAh27QFo2k853OaMN9BhIlscVBhhrLys6aafww6U80w NZQqkU5eC72VJN5yQzyYUCp6IyRKb7kRMUt/jLvOOD322FtTFMx6POOgehEasDwc2hQG VTQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e15si10869183ejc.423.2019.10.24.04.49.49; Thu, 24 Oct 2019 04:50:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731387AbfJWRmW (ORCPT + 99 others); Wed, 23 Oct 2019 13:42:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:45160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731112AbfJWRmW (ORCPT ); Wed, 23 Oct 2019 13:42:22 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E592721872; Wed, 23 Oct 2019 17:42:20 +0000 (UTC) Date: Wed, 23 Oct 2019 13:42:19 -0400 From: Steven Rostedt To: Alexei Starovoitov Cc: Peter Zijlstra , Daniel Bristot de Oliveira , LKML , X86 ML , Nadav Amit , Andy Lutomirski , Dave Hansen , Song Liu , Masami Hiramatsu Subject: Re: [PATCH 3/3] x86/ftrace: Use text_poke() Message-ID: <20191023134219.33e41458@gandalf.local.home> In-Reply-To: <20191023122307.756b4978@gandalf.local.home> References: <20191021231630.49805757@oasis.local.home> <20191021231904.4b968dc1@oasis.local.home> <20191022040532.fvpxcs74i4mn4rc6@ast-mbp.dhcp.thefacebook.com> <20191022071956.07e21543@gandalf.local.home> <20191022094455.6a0a1a27@gandalf.local.home> <20191022175052.frjzlnjjfwwfov64@ast-mbp.dhcp.thefacebook.com> <20191022141021.2c4496c2@gandalf.local.home> <20191022204620.jp535nfvfubjngzd@ast-mbp.dhcp.thefacebook.com> <20191022170430.6af3b360@gandalf.local.home> <20191022215841.2qsmhd6vxi4mwade@ast-mbp.dhcp.thefacebook.com> <20191023122307.756b4978@gandalf.local.home> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 Oct 2019 12:23:06 -0400 Steven Rostedt wrote: > All you need to do is: > > register_ftrace_direct((unsigned long)func_you_want_to_trace, > (unsigned long)your_trampoline); > > > Alexei, > > Would this work for you? I just pushed a test branch up to: git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git branch: ftrace/direct Again, it's mostly development code, and may be buggy. (don't try tracing when a direct function is added yet). If this is something that you can use, then I'll work to clean it up and sort out all the bugs. Thanks! -- Steve