From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752780AbeBVItL (ORCPT ); Thu, 22 Feb 2018 03:49:11 -0500 Received: from exmail.andestech.com ([59.124.169.137]:13153 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752644AbeBVItJ (ORCPT ); Thu, 22 Feb 2018 03:49:09 -0500 Date: Thu, 22 Feb 2018 16:45:45 +0800 From: Alan Kao To: Palmer Dabbelt CC: "albert@sifive.com" , "rostedt@goodmis.org" , "mingo@redhat.com" , "patches@groups.riscv.org" , "linux-kernel@vger.kernel.org" , "Greentime Ying-Han =?utf-8?B?SHUo6IOh6Iux5ryiKQ==?=" Subject: Re: [patches] [PATCH v4 0/6] Add dynamic ftrace support for RISC-V platforms Message-ID: <20180222084545.GA2207@andestech.com> References: <1518498801-677-1-git-send-email-alankao@andestech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.0.1.85] X-DNSRBL: X-MAIL: ATCSQR.andestech.com w1M8kluu085820 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 22, 2018 at 12:05:11AM +0800, Palmer Dabbelt wrote: > On Mon, 12 Feb 2018 21:13:15 PST (-0800), alankao@andestech.com wrote: > > This patch set includes the building blocks of dynamic ftrace features > > for RISC-V machines. > > > > Changes in v4: > > - Organize code structure according to changes in v3 > > - Rebase onto the riscv-linux-4.15 branch at github's > > riscv/riscv-linux repo. Note that this set is based on the previous > > ftrace patch, which provided basic support. > > > > Changes in v3: > > - Replace the nops at the tracer call sites into "call ftrace_stub" > > instructions for better understanding (1/6, 2/6 and 5/6) > > > > Changes in v2: > > - Fix the return value as writing to kernel text goes wrong (2/6) > > - Replace manual comparisons by calling memcmp (2/6) > > - Simplify the conditional assignment in the Makefile (1/6) > > > > Alan Kao (6): > > riscv/ftrace: Add RECORD_MCOUNT support > > riscv/ftrace: Add dynamic function tracer support > > riscv/ftrace: Add dynamic function graph tracer support > > riscv/ftrace: Add ARCH_SUPPORTS_FTRACE_OPS support > > riscv/ftrace: Add DYNAMIC_FTRACE_WITH_REGS support > > riscv/ftrace: Add HAVE_FUNCTION_GRAPH_RET_ADDR_PTR support > > > > arch/riscv/Kconfig | 3 + > > arch/riscv/Makefile | 3 + > > arch/riscv/include/asm/ftrace.h | 56 ++++++++++ > > arch/riscv/kernel/Makefile | 5 +- > > arch/riscv/kernel/ftrace.c | 175 ++++++++++++++++++++++++++++- > > arch/riscv/kernel/mcount-dyn.S | 239 ++++++++++++++++++++++++++++++++++++++++ > > arch/riscv/kernel/mcount.S | 22 ++-- > > arch/riscv/kernel/stacktrace.c | 6 + > > scripts/recordmcount.pl | 5 + > > 9 files changed, 501 insertions(+), 13 deletions(-) > > create mode 100644 arch/riscv/kernel/mcount-dyn.S > > Thanks! I've added this to our for-next tree, it should be good to go for > 4.17. Sorry this took a while, I'm still a bit behind from FOSDEM. Thanks! Alan