*/
LIBBPF_API int libbpf_num_possible_cpus(void);
-struct bpf_embed_data {
- void *data;
- size_t size;
-};
-
-#define BPF_EMBED_OBJ_DECLARE(NAME) \
-extern struct bpf_embed_data NAME##_embed; \
-extern char NAME##_data[]; \
-extern char NAME##_data_end[];
-
-#define __BPF_EMBED_OBJ(NAME, PATH, SZ, ASM_TYPE) \
-asm ( \
-" .pushsection \".rodata\", \"a\", @progbits \n" \
-" .global "#NAME"_data \n" \
-#NAME"_data: \n" \
-" .incbin \"" PATH "\" \n" \
-" .global "#NAME"_data_end \n" \
-#NAME"_data_end: \n" \
-" .global "#NAME"_embed \n" \
-" .type "#NAME"_embed, @object \n" \
-" .size "#NAME"_size, "#SZ" \n" \
-" .align 8, \n" \
-#NAME"_embed: \n" \
-" "ASM_TYPE" "#NAME"_data \n" \
-" "ASM_TYPE" "#NAME"_data_end - "#NAME"_data \n" \
-" .popsection \n" \
-); \
-BPF_EMBED_OBJ_DECLARE(NAME)
-
-#if __SIZEOF_POINTER__ == 4
-#define BPF_EMBED_OBJ(NAME, PATH) __BPF_EMBED_OBJ(NAME, PATH, 8, ".long")
-#else
-#define BPF_EMBED_OBJ(NAME, PATH) __BPF_EMBED_OBJ(NAME, PATH, 16, ".quad")
-#endif
-
struct bpf_map_skeleton {
const char *name;
struct bpf_map **map;