summaryrefslogtreecommitdiff
path: root/tools/tracing
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2022-07-26 10:01:22 +0200
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-07-31 17:04:05 -0400
commitdd0b15bda48f59eb7dee17fab91eda8389f0e98d (patch)
tree1cf1c0a063a57db9183016ddd280545dad79ccb1 /tools/tracing
parent4f753c3be52c1d930afc0fe3169baa605dbaf611 (diff)
rtla: Define syscall numbers for riscv
RISC-V uses the same (generic) syscall numbers as ARM64. Link: https://lkml.kernel.org/r/mvma68wl2ul.fsf@suse.de Signed-off-by: Andreas Schwab <schwab@suse.de> Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/tracing')
-rw-r--r--tools/tracing/rtla/src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tracing/rtla/src/utils.c b/tools/tracing/rtla/src/utils.c
index 5ae2fa96fde1..663a047f794d 100644
--- a/tools/tracing/rtla/src/utils.c
+++ b/tools/tracing/rtla/src/utils.c
@@ -225,7 +225,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__