rtla: Define __NR_sched_setattr for LoongArch

When executing "make -C tools/tracing/rtla" on LoongArch, there exists
the following error:

  src/utils.c:237:24: error: '__NR_sched_setattr' undeclared

Just define __NR_sched_setattr for LoongArch if not exist.

Link: https://lore.kernel.org/20250422074917.25771-1-yangtiezhu@loongson.cn
Reported-by: Haiyong Sun <sunhaiyong@loongson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
Tiezhu Yang 2025-04-22 15:49:17 +08:00 committed by Steven Rostedt (Google)
parent 18682166f6
commit 6a38c51a25
1 changed files with 2 additions and 0 deletions

View File

@ -227,6 +227,8 @@ long parse_ns_duration(char *val)
# define __NR_sched_setattr 355 # define __NR_sched_setattr 355
# elif __s390x__ # elif __s390x__
# define __NR_sched_setattr 345 # define __NR_sched_setattr 345
# elif __loongarch__
# define __NR_sched_setattr 274
# endif # endif
#endif #endif