summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2022-07-26 11:01:22 +0300
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-08-01 00:04:05 +0300
commitdd0b15bda48f59eb7dee17fab91eda8389f0e98d (patch)
tree1cf1c0a063a57db9183016ddd280545dad79ccb1 /tools
parent4f753c3be52c1d930afc0fe3169baa605dbaf611 (diff)
downloadlinux-dd0b15bda48f59eb7dee17fab91eda8389f0e98d.tar.xz
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')
-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__