Home
last modified time | relevance | path

Searched refs:__skel (Results 1 – 3 of 3) sorted by relevance

/linux/tools/sched_ext/include/scx/
H A Dcompat.h144 struct __scx_name *__skel; \
149 __skel = __scx_name##__open(); \
150 SCX_BUG_ON(!__skel, "Could not open " #__scx_name); \
151 __skel->struct_ops.__ops_name->hotplug_seq = scx_hotplug_seq(); \
152 __skel; \
155 #define SCX_OPS_LOAD(__skel, __ops_name, __scx_name, __uei_name) ({ \ argument
156 UEI_SET_SIZE(__skel, __ops_name, __uei_name); \
157 SCX_BUG_ON(__scx_name##__load((__skel)), "Failed to load skel"); \
171 #define __SCX_OPS_DISABLE_AUTOATTACH(__skel, __ops_name) \ argument
172 bpf_map__set_autoattach((__skel)->maps.__ops_name, false)
[all …]
H A Duser_exit_info.h60 #define UEI_SET_SIZE(__skel, __ops_name, __uei_name) ({ \ argument
61 u32 __len = (__skel)->struct_ops.__ops_name->exit_dump_len ?: UEI_DUMP_DFL_LEN; \
62 (__skel)->rodata->__uei_name##_dump_len = __len; \
63 RESIZE_ARRAY((__skel), data, __uei_name##_dump, __len); \
66 #define UEI_EXITED(__skel, __uei_name) ({ \ argument
68 __sync_val_compare_and_swap(&(__skel)->data->__uei_name.kind, -1, -1); \
71 #define UEI_REPORT(__skel, __uei_name) ({ \ argument
72 struct user_exit_info *__uei = &(__skel)->data->__uei_name; \
73 char *__uei_dump = (__skel)->data_##__uei_name##_dump->__uei_name##_dump; \
H A Dcommon.h63 #define RESIZE_ARRAY(__skel, elfsec, arr, n) \ argument
66 bpf_map__set_value_size((__skel)->maps.elfsec##_##arr, \
67 sizeof((__skel)->elfsec##_##arr->arr[0]) * (n)); \
68 (__skel)->elfsec##_##arr = \
69 bpf_map__initial_value((__skel)->maps.elfsec##_##arr, &__sz); \