linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Palmer Dabbelt <palmer@sifive.com>
To: alankao@andestech.com
Cc: albert@sifive.com, rostedt@goodmis.org, mingo@redhat.com,
	patches@groups.riscv.org, linux-kernel@vger.kernel.org,
	greentime@andestech.com, alankao@andestech.com
Subject: Re: [patches] [PATCH v4 0/6] Add dynamic ftrace support for RISC-V platforms
Date: Wed, 21 Feb 2018 08:05:11 -0800 (PST)	[thread overview]
Message-ID: <mhng-aa0ffadc-431b-4889-bc70-3f84d675d80e@palmer-si-x1c4> (raw)
In-Reply-To: <1518498801-677-1-git-send-email-alankao@andestech.com>

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.

  parent reply	other threads:[~2018-02-21 16:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-13  5:13 [PATCH v4 0/6] Add dynamic ftrace support for RISC-V platforms Alan Kao
2018-02-13  5:13 ` [PATCH v4 1/6] riscv/ftrace: Add RECORD_MCOUNT support Alan Kao
2018-02-13  5:13 ` [PATCH v4 2/6] riscv/ftrace: Add dynamic function tracer support Alan Kao
2018-02-13  5:13 ` [PATCH v4 3/6] riscv/ftrace: Add dynamic function graph " Alan Kao
2018-02-13  5:13 ` [PATCH v4 4/6] riscv/ftrace: Add ARCH_SUPPORTS_FTRACE_OPS support Alan Kao
2018-02-13  5:13 ` [PATCH v4 5/6] riscv/ftrace: Add DYNAMIC_FTRACE_WITH_REGS support Alan Kao
2018-02-13  5:13 ` [PATCH v4 6/6] riscv/ftrace: Add HAVE_FUNCTION_GRAPH_RET_ADDR_PTR support Alan Kao
2018-02-21  2:45 ` [PATCH v4 0/6] Add dynamic ftrace support for RISC-V platforms Alan Kao
2018-02-24  1:02   ` [patches] " Palmer Dabbelt
2018-02-21 16:05 ` Palmer Dabbelt [this message]
2018-02-22  8:45   ` [patches] " Alan Kao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mhng-aa0ffadc-431b-4889-bc70-3f84d675d80e@palmer-si-x1c4 \
    --to=palmer@sifive.com \
    --cc=alankao@andestech.com \
    --cc=albert@sifive.com \
    --cc=greentime@andestech.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=patches@groups.riscv.org \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).