From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752135AbeBHC6A (ORCPT ); Wed, 7 Feb 2018 21:58:00 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:39757 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750810AbeBHC56 (ORCPT ); Wed, 7 Feb 2018 21:57:58 -0500 X-Google-Smtp-Source: AH8x227bxYwSAT/a66zEJVbBvOTt3bhBQsBNl6e4xl1IE2jBbDC/mGwL6GNEU5S1UaQEQpFyBMIw9g== Date: Thu, 8 Feb 2018 10:57:52 +0800 From: Alan Kao To: Palmer Dabbelt Cc: albert@sifive.com, rostedt@goodmis.org, mingo@redhat.com, yamada.masahiro@socionext.com, n54@gmx.com, akpm@linux-foundation.org, patches@groups.riscv.org, linux-kernel@vger.kernel.org, sorear2@gmail.com, alankao@andestech.com, greentime@andestech.com Subject: Re: [patches] [PATCH v3 0/6] Add dynamic ftrace support for RISC-V platforms Message-ID: <20180208025750.GA3903@75c3b24ef355> References: <20180118154545.17987-1-alankao@andestech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 07, 2018 at 04:37:10PM -0800, Palmer Dabbelt wrote: > On Thu, 18 Jan 2018 07:45:39 PST (-0800), nonerkao@gmail.com wrote: > > This patch set includes the building blocks of dynamic ftrace features > > for RISC-V machines. > > > > Changes in v3: > > - Replace the nops at the tracer call sites into a "call ftrace_stub" > > instruction for better understanding (1/6 and 2/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 | 47 ++++++++ > > arch/riscv/kernel/Makefile | 5 +- > > arch/riscv/kernel/ftrace.c | 142 ++++++++++++++++++++++- > > arch/riscv/kernel/mcount-dyn.S | 241 ++++++++++++++++++++++++++++++++++++++++ > > arch/riscv/kernel/mcount.S | 22 ++-- > > arch/riscv/kernel/stacktrace.c | 6 + > > scripts/recordmcount.pl | 5 + > > 9 files changed, 461 insertions(+), 13 deletions(-) > > create mode 100644 arch/riscv/kernel/mcount-dyn.S > > Sorry it took me a while to get around to these. Do you mind submitting a > v4 that's based on linux-4.15? I'm getting all sorts of merge errors trying > to "git am" these. Sorry for the misunderstanding in the previous email. I will rebase the set on linux-4.15. Thanks.