Skip to content

Commit 91c0cea

Browse files
rtla: Define __NR_sched_setattr for LoongArch
JIRA: https://issues.redhat.com/browse/RHEL-117873 commit 6a38c51 Author: Tiezhu Yang <yangtiezhu@loongson.cn> Date: Tue Apr 22 15:49:17 2025 +0800 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> Signed-off-by: Tomas Glozar <tglozar@redhat.com>
1 parent 0935c0f commit 91c0cea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/tracing/rtla/src/utils.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ long parse_ns_duration(char *val)
227227
# define __NR_sched_setattr 355
228228
# elif __s390x__
229229
# define __NR_sched_setattr 345
230+
# elif __loongarch__
231+
# define __NR_sched_setattr 274
230232
# endif
231233
#endif
232234

0 commit comments

Comments
 (0)