linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] riscv: enable syscalls tracepoints
@ 2018-12-06 15:26 David Abdurachmanov
  2018-12-06 15:26 ` [PATCH 1/2] riscv: fix trace_sys_exit hook David Abdurachmanov
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: David Abdurachmanov @ 2018-12-06 15:26 UTC (permalink / raw)
  To: palmer, aou, linux-kernel, linux-riscv; +Cc: David Abdurachmanov

Depends on audit patch:
http://lists.infradead.org/pipermail/linux-riscv/2018-October/001931.html

audit patch is already merged into linux-next.

This simply fixes compilation error in do_syscall_trace_exit() and
enables syscalls tracepoints.

David Abdurachmanov (2):
  riscv: fix trace_sys_exit hook
  riscv: add HAVE_SYSCALL_TRACEPOINTS to Kconfig

 arch/riscv/Kconfig         | 1 +
 arch/riscv/kernel/ptrace.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
2.19.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] riscv: fix trace_sys_exit hook
  2018-12-06 15:26 [PATCH 0/2] riscv: enable syscalls tracepoints David Abdurachmanov
@ 2018-12-06 15:26 ` David Abdurachmanov
  2018-12-06 15:26 ` [PATCH 2/2] riscv: add HAVE_SYSCALL_TRACEPOINTS to Kconfig David Abdurachmanov
  2018-12-07 20:32 ` [PATCH 0/2] riscv: enable syscalls tracepoints Palmer Dabbelt
  2 siblings, 0 replies; 5+ messages in thread
From: David Abdurachmanov @ 2018-12-06 15:26 UTC (permalink / raw)
  To: palmer, aou, linux-kernel, linux-riscv; +Cc: David Abdurachmanov

Fix compilation error.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
---
 arch/riscv/kernel/ptrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/kernel/ptrace.c b/arch/riscv/kernel/ptrace.c
index c1b51539c3e2..2fd9ec48106b 100644
--- a/arch/riscv/kernel/ptrace.c
+++ b/arch/riscv/kernel/ptrace.c
@@ -177,6 +177,6 @@ void do_syscall_trace_exit(struct pt_regs *regs)
 
 #ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS
 	if (test_thread_flag(TIF_SYSCALL_TRACEPOINT))
-		trace_sys_exit(regs, regs->regs[0]);
+		trace_sys_exit(regs, regs_return_value(regs));
 #endif
 }
-- 
2.19.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] riscv: add HAVE_SYSCALL_TRACEPOINTS to Kconfig
  2018-12-06 15:26 [PATCH 0/2] riscv: enable syscalls tracepoints David Abdurachmanov
  2018-12-06 15:26 ` [PATCH 1/2] riscv: fix trace_sys_exit hook David Abdurachmanov
@ 2018-12-06 15:26 ` David Abdurachmanov
  2018-12-07 20:32 ` [PATCH 0/2] riscv: enable syscalls tracepoints Palmer Dabbelt
  2 siblings, 0 replies; 5+ messages in thread
From: David Abdurachmanov @ 2018-12-06 15:26 UTC (permalink / raw)
  To: palmer, aou, linux-kernel, linux-riscv; +Cc: David Abdurachmanov

I looked into Documentation/trace/ftrace-design.rst and, I think,
we check all the boxes needed for HAVE_SYSCALL_TRACEPOINTS.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index a4f48f757204..6749c22ee656 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -34,6 +34,7 @@ config RISCV
 	select HAVE_FUTEX_CMPXCHG if FUTEX
 	select HAVE_GENERIC_DMA_COHERENT
 	select HAVE_PERF_EVENTS
+	select HAVE_SYSCALL_TRACEPOINTS
 	select IRQ_DOMAIN
 	select RISCV_ISA_A if SMP
 	select SPARSE_IRQ
-- 
2.19.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] riscv: enable syscalls tracepoints
  2018-12-06 15:26 [PATCH 0/2] riscv: enable syscalls tracepoints David Abdurachmanov
  2018-12-06 15:26 ` [PATCH 1/2] riscv: fix trace_sys_exit hook David Abdurachmanov
  2018-12-06 15:26 ` [PATCH 2/2] riscv: add HAVE_SYSCALL_TRACEPOINTS to Kconfig David Abdurachmanov
@ 2018-12-07 20:32 ` Palmer Dabbelt
  2018-12-10 20:48   ` David Abdurachmanov
  2 siblings, 1 reply; 5+ messages in thread
From: Palmer Dabbelt @ 2018-12-07 20:32 UTC (permalink / raw)
  To: david.abdurachmanov; +Cc: linux-riscv, aou, linux-kernel, david.abdurachmanov

On Thu, 06 Dec 2018 07:26:33 PST (-0800), david.abdurachmanov@gmail.com wrote:
> Depends on audit patch:
> http://lists.infradead.org/pipermail/linux-riscv/2018-October/001931.html
>
> audit patch is already merged into linux-next.
>
> This simply fixes compilation error in do_syscall_trace_exit() and
> enables syscalls tracepoints.
>
> David Abdurachmanov (2):
>   riscv: fix trace_sys_exit hook
>   riscv: add HAVE_SYSCALL_TRACEPOINTS to Kconfig
>
>  arch/riscv/Kconfig         | 1 +
>  arch/riscv/kernel/ptrace.c | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)

I've attempted to add this on top of next-audit, which I've merged into 
for-next.  Let me know if something went wrong.

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] riscv: enable syscalls tracepoints
  2018-12-07 20:32 ` [PATCH 0/2] riscv: enable syscalls tracepoints Palmer Dabbelt
@ 2018-12-10 20:48   ` David Abdurachmanov
  0 siblings, 0 replies; 5+ messages in thread
From: David Abdurachmanov @ 2018-12-10 20:48 UTC (permalink / raw)
  To: Palmer Dabbelt; +Cc: linux-riscv, aou, linux-kernel

On Fri, Dec 7, 2018 at 9:32 PM Palmer Dabbelt <palmer@sifive.com> wrote:
>
> On Thu, 06 Dec 2018 07:26:33 PST (-0800), david.abdurachmanov@gmail.com wrote:
> > Depends on audit patch:
> > http://lists.infradead.org/pipermail/linux-riscv/2018-October/001931.html
> >
> > audit patch is already merged into linux-next.
> >
> > This simply fixes compilation error in do_syscall_trace_exit() and
> > enables syscalls tracepoints.
> >
> > David Abdurachmanov (2):
> >   riscv: fix trace_sys_exit hook
> >   riscv: add HAVE_SYSCALL_TRACEPOINTS to Kconfig
> >
> >  arch/riscv/Kconfig         | 1 +
> >  arch/riscv/kernel/ptrace.c | 2 +-
> >  2 files changed, 2 insertions(+), 1 deletion(-)
>
> I've attempted to add this on top of next-audit, which I've merged into
> for-next.  Let me know if something went wrong.

Two things:
- The order of commits are wrong. Right now the commits are in
  reverse order, i.e. audit patches are on top.
- Intel kbuild test bot found compilation errors with riscv-allmodconfig
  config. I fixed those and posted two patches:
  http://lists.infradead.org/pipermail/linux-riscv/2018-December/002508.html

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-12-10 20:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-06 15:26 [PATCH 0/2] riscv: enable syscalls tracepoints David Abdurachmanov
2018-12-06 15:26 ` [PATCH 1/2] riscv: fix trace_sys_exit hook David Abdurachmanov
2018-12-06 15:26 ` [PATCH 2/2] riscv: add HAVE_SYSCALL_TRACEPOINTS to Kconfig David Abdurachmanov
2018-12-07 20:32 ` [PATCH 0/2] riscv: enable syscalls tracepoints Palmer Dabbelt
2018-12-10 20:48   ` David Abdurachmanov

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).