diff mbox series

rtla: Define syscall numbers for riscv

Message ID mvmr129l0qt.fsf@suse.de (mailing list archive)
State Superseded
Headers show
Series rtla: Define syscall numbers for riscv | expand

Commit Message

Andreas Schwab July 25, 2022, 2:34 p.m. UTC
Signed-off-by: Andreas Schwab <schwab@suse.de>
---
 tools/tracing/rtla/src/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Daniel Bristot de Oliveira July 25, 2022, 4:25 p.m. UTC | #1
Maybe add a single line description here?

On 7/25/22 16:34, Andreas Schwab wrote:
> Signed-off-by: Andreas Schwab <schwab@suse.de>

Note: we need to improve this, making rtla use the available headers.

I already tried but always entered a circular loop of dependencies...
it is on my to-do list, but if anyone has time, feel free to do it.

-- Daniel
diff mbox series

Patch

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__