summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/sched_ext/scx_cpu0.c2
-rw-r--r--tools/sched_ext/scx_sdt.c2
-rw-r--r--tools/sched_ext/scx_simple.c2
-rw-r--r--tools/sched_ext/scx_userland.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/tools/sched_ext/scx_cpu0.c b/tools/sched_ext/scx_cpu0.c
index 4966e3d4c724..84a47aee2f95 100644
--- a/tools/sched_ext/scx_cpu0.c
+++ b/tools/sched_ext/scx_cpu0.c
@@ -62,7 +62,7 @@ int main(int argc, char **argv)
{
struct scx_cpu0 *skel;
struct bpf_link *link;
- __u32 opt;
+ __s32 opt;
__u64 ecode;
libbpf_set_print(libbpf_print_fn);
diff --git a/tools/sched_ext/scx_sdt.c b/tools/sched_ext/scx_sdt.c
index bf664b2d3785..ef197b266a36 100644
--- a/tools/sched_ext/scx_sdt.c
+++ b/tools/sched_ext/scx_sdt.c
@@ -44,7 +44,7 @@ int main(int argc, char **argv)
{
struct scx_sdt *skel;
struct bpf_link *link;
- __u32 opt;
+ __s32 opt;
__u64 ecode;
libbpf_set_print(libbpf_print_fn);
diff --git a/tools/sched_ext/scx_simple.c b/tools/sched_ext/scx_simple.c
index c3b48611712b..34f9785335b7 100644
--- a/tools/sched_ext/scx_simple.c
+++ b/tools/sched_ext/scx_simple.c
@@ -64,7 +64,7 @@ int main(int argc, char **argv)
{
struct scx_simple *skel;
struct bpf_link *link;
- __u32 opt;
+ __s32 opt;
__u64 ecode;
libbpf_set_print(libbpf_print_fn);
diff --git a/tools/sched_ext/scx_userland.c b/tools/sched_ext/scx_userland.c
index 616043c165e6..192b79c7e4aa 100644
--- a/tools/sched_ext/scx_userland.c
+++ b/tools/sched_ext/scx_userland.c
@@ -326,7 +326,7 @@ static int spawn_stats_thread(void)
static void pre_bootstrap(int argc, char **argv)
{
int err;
- __u32 opt;
+ __s32 opt;
struct sched_param sched_param = {
.sched_priority = sched_get_priority_max(SCHED_EXT),
};