* [PATCH v2] rtla: Define syscall numbers for riscv
@ 2022-07-26 8:01 Andreas Schwab
2022-07-26 8:31 ` Daniel Bristot de Oliveira
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2022-07-26 8:01 UTC (permalink / raw)
To: Daniel Bristot de Oliveira
Cc: Steven Rostedt, linux-trace-devel, linux-kernel
RISC-V uses the same (generic) syscall numbers as ARM64.
Signed-off-by: Andreas Schwab <schwab@suse.de>
---
tools/tracing/rtla/src/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/tracing/rtla/src/utils.c b/tools/tracing/rtla/src/utils.c
index 5352167a1e75..147921356e02 100644
--- a/tools/tracing/rtla/src/utils.c
+++ b/tools/tracing/rtla/src/utils.c
@@ -224,7 +224,7 @@ long parse_ns_duration(char *val)
#elif __arm__
# define __NR_sched_setattr 380
# define __NR_sched_getattr 381
-#elif __aarch64__
+#elif __aarch64__ || __riscv
# define __NR_sched_setattr 274
# define __NR_sched_getattr 275
#elif __powerpc__
--
2.37.1
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] rtla: Define syscall numbers for riscv
2022-07-26 8:01 [PATCH v2] rtla: Define syscall numbers for riscv Andreas Schwab
@ 2022-07-26 8:31 ` Daniel Bristot de Oliveira
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Bristot de Oliveira @ 2022-07-26 8:31 UTC (permalink / raw)
To: Andreas Schwab; +Cc: Steven Rostedt, linux-trace-devel, linux-kernel
On 7/26/22 10:01, Andreas Schwab wrote:
> RISC-V uses the same (generic) syscall numbers as ARM64.
>
> Signed-off-by: Andreas Schwab <schwab@suse.de>
Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Thanks!
-- Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-26 8:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-26 8:01 [PATCH v2] rtla: Define syscall numbers for riscv Andreas Schwab
2022-07-26 8:31 ` Daniel Bristot de Oliveira
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.