Skip to content

Commit 6a38c51

Browse files
seehearfeelrostedt
authored andcommitted
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>
1 parent 1868216 commit 6a38c51

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)