Skip to main content

Module bpf_builder

Module bpf_builder 

Source

Re-exportsยง

use crate::ClangInfo; ๐Ÿ”’
use anyhow::Context; ๐Ÿ”’
use anyhow::Result; ๐Ÿ”’
use anyhow::anyhow; ๐Ÿ”’
use anyhow::bail; ๐Ÿ”’
use glob::glob; ๐Ÿ”’
use libbpf_cargo::SkeletonBuilder; ๐Ÿ”’
use libbpf_rs::Linker; ๐Ÿ”’
use libbpf_rs::btf::Btf; ๐Ÿ”’
use libbpf_rs::btf::BtfKind; ๐Ÿ”’
use libbpf_rs::btf::BtfType; ๐Ÿ”’
use libbpf_rs::btf::types::DataSec; ๐Ÿ”’
use std::collections::BTreeSet; ๐Ÿ”’
use std::collections::HashMap; ๐Ÿ”’
use std::env; ๐Ÿ”’
use std::env; ๐Ÿ”’
use std::fs; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’
use tracing::Level; ๐Ÿ”’
use tracing_subscriber::Layer; ๐Ÿ”’
use tracing_subscriber::filter; ๐Ÿ”’
use tracing_subscriber::layer::SubscriberExt; ๐Ÿ”’

Structsยง

ArenaElf ๐Ÿ”’
The pieces of a little-endian ELF64 object the arena fixups touch.
BpfBuilder
Build helpers for sched_ext schedulers with Rust userspace component

Constantsยง

ARENA_SEC ๐Ÿ”’
BTF_KIND_DATASEC ๐Ÿ”’
BTF_KIND_VAR ๐Ÿ”’
BTF_MAGIC ๐Ÿ”’
SHT_SYMTAB ๐Ÿ”’
STT_NOTYPE ๐Ÿ”’
STT_OBJECT ๐Ÿ”’

Functionsยง

cid_struct_ops_type ๐Ÿ”’
The cid-form struct_ops type the linked object registers, if any. The struct_ops DATASECs list the ops variables; a cid-form one has type struct sched_ext_ops_cid or a CO-RE variant of it.
cstr ๐Ÿ”’
fixup_arena_datasec ๐Ÿ”’
Rewrite the .addr_space.1 BTF DATASEC of a linked object from its ELF symbols and sort it by offset.
fixup_arena_externs ๐Ÿ”’
A libbpf linker pass binds unresolved arena externs to the arena section as size-zero NOTYPE symbols, with the declaring objectโ€™s section offset as their value. Mark them undefined again so the next pass treats them as externs.
le16 ๐Ÿ”’
le32 ๐Ÿ”’
le64 ๐Ÿ”’
with_clang_warnings ๐Ÿ”’