Re: [PATCH] riscv/ftrace: Add basic support

2017-12-05 Thread Alan Kao
On Mon, Dec 04, 2017 at 03:05:09AM -0500, Steven Rostedt wrote: > On Mon, 4 Dec 2017 13:52:30 +0800 > Alan Kao wrote: > > > > > Note that the functions in both ftrace.c and setup.c should not be > > > > hooked with the compiler's -pg option: to prevent infinite self- > > > >

Re: [PATCH] riscv/ftrace: Add basic support

2017-12-05 Thread Alan Kao
On Mon, Dec 04, 2017 at 03:05:09AM -0500, Steven Rostedt wrote: > On Mon, 4 Dec 2017 13:52:30 +0800 > Alan Kao wrote: > > > > > Note that the functions in both ftrace.c and setup.c should not be > > > > hooked with the compiler's -pg option: to prevent infinite self- > > > > referencing for the

Re: [PATCH] riscv/ftrace: Add basic support

2017-12-04 Thread Steven Rostedt
On Mon, 4 Dec 2017 13:52:30 +0800 Alan Kao wrote: > > > Note that the functions in both ftrace.c and setup.c should not be > > > hooked with the compiler's -pg option: to prevent infinite self- > > > referencing for the former, and to ignore early setup stuff for the > > >

Re: [PATCH] riscv/ftrace: Add basic support

2017-12-04 Thread Steven Rostedt
On Mon, 4 Dec 2017 13:52:30 +0800 Alan Kao wrote: > > > Note that the functions in both ftrace.c and setup.c should not be > > > hooked with the compiler's -pg option: to prevent infinite self- > > > referencing for the former, and to ignore early setup stuff for the > > > latter. > > > >

Re: [PATCH] riscv/ftrace: Add basic support

2017-12-03 Thread Alan Kao
On Thu, Nov 30, 2017 at 03:24:21PM -0500, Steven Rostedt wrote: > On Thu, 30 Nov 2017 16:53:35 +0800 > Alan Kao wrote: > > > This patch contains basic ftrace support for RV64I platform. > > Specifically, function tracer (HAVE_FUNCTION_TRACER), function graph > > tracer

Re: [PATCH] riscv/ftrace: Add basic support

2017-12-03 Thread Alan Kao
On Thu, Nov 30, 2017 at 03:24:21PM -0500, Steven Rostedt wrote: > On Thu, 30 Nov 2017 16:53:35 +0800 > Alan Kao wrote: > > > This patch contains basic ftrace support for RV64I platform. > > Specifically, function tracer (HAVE_FUNCTION_TRACER), function graph > > tracer

Re: [PATCH] riscv/ftrace: Add basic support

2017-12-03 Thread Alan Kao
On Thu, Nov 30, 2017 at 12:31:53PM +0100, Philippe Ombredanne wrote: > On Thu, Nov 30, 2017 at 9:53 AM, Alan Kao wrote: > [] > > diff --git a/arch/riscv/include/asm/ftrace.h > > b/arch/riscv/include/asm/ftrace.h > > new file mode 100644 > > index ..38beadb07ad5 >

Re: [PATCH] riscv/ftrace: Add basic support

2017-12-03 Thread Alan Kao
On Thu, Nov 30, 2017 at 12:31:53PM +0100, Philippe Ombredanne wrote: > On Thu, Nov 30, 2017 at 9:53 AM, Alan Kao wrote: > [] > > diff --git a/arch/riscv/include/asm/ftrace.h > > b/arch/riscv/include/asm/ftrace.h > > new file mode 100644 > > index ..38beadb07ad5 > > --- /dev/null > >

Re: [PATCH] riscv/ftrace: Add basic support

2017-11-30 Thread Steven Rostedt
On Thu, 30 Nov 2017 16:53:35 +0800 Alan Kao wrote: > This patch contains basic ftrace support for RV64I platform. > Specifically, function tracer (HAVE_FUNCTION_TRACER), function graph > tracer (HAVE_FUNCTION_GRAPH_TRACER), and a frame pointer test >

Re: [PATCH] riscv/ftrace: Add basic support

2017-11-30 Thread Steven Rostedt
On Thu, 30 Nov 2017 16:53:35 +0800 Alan Kao wrote: > This patch contains basic ftrace support for RV64I platform. > Specifically, function tracer (HAVE_FUNCTION_TRACER), function graph > tracer (HAVE_FUNCTION_GRAPH_TRACER), and a frame pointer test > (HAVE_FUNCTION_GRAPH_FP_TEST) are implemented

Re: [patches] Re: [PATCH] riscv/ftrace: Add basic support

2017-11-30 Thread Palmer Dabbelt
On Thu, 30 Nov 2017 03:31:53 PST (-0800), pombreda...@nexb.com wrote: On Thu, Nov 30, 2017 at 9:53 AM, Alan Kao wrote: [] diff --git a/arch/riscv/include/asm/ftrace.h b/arch/riscv/include/asm/ftrace.h new file mode 100644 index ..38beadb07ad5 --- /dev/null +++

Re: [patches] Re: [PATCH] riscv/ftrace: Add basic support

2017-11-30 Thread Palmer Dabbelt
On Thu, 30 Nov 2017 03:31:53 PST (-0800), pombreda...@nexb.com wrote: On Thu, Nov 30, 2017 at 9:53 AM, Alan Kao wrote: [] diff --git a/arch/riscv/include/asm/ftrace.h b/arch/riscv/include/asm/ftrace.h new file mode 100644 index ..38beadb07ad5 --- /dev/null +++

Re: [PATCH] riscv/ftrace: Add basic support

2017-11-30 Thread Philippe Ombredanne
On Thu, Nov 30, 2017 at 9:53 AM, Alan Kao wrote: [] > diff --git a/arch/riscv/include/asm/ftrace.h b/arch/riscv/include/asm/ftrace.h > new file mode 100644 > index ..38beadb07ad5 > --- /dev/null > +++ b/arch/riscv/include/asm/ftrace.h > @@ -0,0 +1,23 @@ > +/* > + *

Re: [PATCH] riscv/ftrace: Add basic support

2017-11-30 Thread Philippe Ombredanne
On Thu, Nov 30, 2017 at 9:53 AM, Alan Kao wrote: [] > diff --git a/arch/riscv/include/asm/ftrace.h b/arch/riscv/include/asm/ftrace.h > new file mode 100644 > index ..38beadb07ad5 > --- /dev/null > +++ b/arch/riscv/include/asm/ftrace.h > @@ -0,0 +1,23 @@ > +/* > + * Copyright (C) 2017