summaryrefslogtreecommitdiff
path: root/tools/sched_ext/include/scx/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sched_ext/include/scx/common.h')
-rw-r--r--tools/sched_ext/include/scx/common.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/sched_ext/include/scx/common.h b/tools/sched_ext/include/scx/common.h
index 1dc76bd84296..60f5513787d6 100644
--- a/tools/sched_ext/include/scx/common.h
+++ b/tools/sched_ext/include/scx/common.h
@@ -67,6 +67,7 @@ typedef int64_t s64;
bpf_map__set_value_size((__skel)->maps.elfsec##_##arr, \
sizeof((__skel)->elfsec##_##arr->arr[0]) * (n)); \
(__skel)->elfsec##_##arr = \
+ (typeof((__skel)->elfsec##_##arr)) \
bpf_map__initial_value((__skel)->maps.elfsec##_##arr, &__sz); \
} while (0)
@@ -74,9 +75,6 @@ typedef int64_t s64;
#include "compat.h"
#include "enums.h"
-/* not available when building kernel tools/sched_ext */
-#if __has_include(<lib/sdt_task.h>)
-#include <lib/sdt_task.h>
-#endif
+#include "bpf_arena_common.h"
#endif /* __SCHED_EXT_COMMON_H */