linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] tools/rtla: drop __NR_sched_getattr
@ 2024-10-10  9:32 Jan Stancek
  2024-10-10  9:32 ` [PATCH 2/2] tools/rtla: fix collision with glibc sched_attr/sched_set_attr Jan Stancek
  2024-10-10 12:17 ` [PATCH 1/2] tools/rtla: drop __NR_sched_getattr Tomas Glozar
  0 siblings, 2 replies; 7+ messages in thread
From: Jan Stancek @ 2024-10-10  9:32 UTC (permalink / raw)
  To: rostedt, linux-trace-kernel
  Cc: linux-kernel, jstancek, jforbes, ezulian, tglozar

It's not used since commit 084ce16df0f0 ("tools/rtla:
Remove unused sched_getattr() function").

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 tools/tracing/rtla/src/utils.c | 32 ++++++++++++++------------------
 1 file changed, 14 insertions(+), 18 deletions(-)

diff --git a/tools/tracing/rtla/src/utils.c b/tools/tracing/rtla/src/utils.c
index 9ac71a66840c..05b2b3fc005e 100644
--- a/tools/tracing/rtla/src/utils.c
+++ b/tools/tracing/rtla/src/utils.c
@@ -211,24 +211,20 @@ long parse_ns_duration(char *val)
 /*
  * This is a set of helper functions to use SCHED_DEADLINE.
  */
-#ifdef __x86_64__
-# define __NR_sched_setattr	314
-# define __NR_sched_getattr	315
-#elif __i386__
-# define __NR_sched_setattr	351
-# define __NR_sched_getattr	352
-#elif __arm__
-# define __NR_sched_setattr	380
-# define __NR_sched_getattr	381
-#elif __aarch64__ || __riscv
-# define __NR_sched_setattr	274
-# define __NR_sched_getattr	275
-#elif __powerpc__
-# define __NR_sched_setattr	355
-# define __NR_sched_getattr	356
-#elif __s390x__
-# define __NR_sched_setattr	345
-# define __NR_sched_getattr	346
+#ifndef __NR_sched_setattr
+# ifdef __x86_64__
+#  define __NR_sched_setattr	314
+# elif __i386__
+#  define __NR_sched_setattr	351
+# elif __arm__
+#  define __NR_sched_setattr	380
+# elif __aarch64__ || __riscv
+#  define __NR_sched_setattr	274
+# elif __powerpc__
+#  define __NR_sched_setattr	355
+# elif __s390x__
+#  define __NR_sched_setattr	345
+# endif
 #endif
 
 #define SCHED_DEADLINE		6
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-10 15:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-10  9:32 [PATCH 1/2] tools/rtla: drop __NR_sched_getattr Jan Stancek
2024-10-10  9:32 ` [PATCH 2/2] tools/rtla: fix collision with glibc sched_attr/sched_set_attr Jan Stancek
2024-10-10 12:25   ` Tomas Glozar
2024-10-10 14:55     ` Steven Rostedt
2024-10-10 15:10       ` Jan Stancek
2024-10-10 15:09   ` [PATCH v2 " Jan Stancek
2024-10-10 12:17 ` [PATCH 1/2] tools/rtla: drop __NR_sched_getattr Tomas Glozar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).