Skip to content

Commit

Permalink
update bpf-linker build tool
Browse files Browse the repository at this point in the history
Signed-off-by: qjerome <[email protected]>
  • Loading branch information
qjerome committed Feb 1, 2024
1 parent a3ce05b commit ef53617
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions xtask/src/ebpf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ impl BuildOptions {
.iter()
.for_each(|link_arg| rustflags.push(format!("-C link-arg={link_arg}")));

// enable BTF emission
rustflags.push("-C link-arg=--btf".into());

rustflags
}

Expand Down
4 changes: 2 additions & 2 deletions xtask/src/tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct Options {
#[clap(long)]
pub update: bool,
/// fetch bpf-linker from this repo
#[clap(default_value = "https://github.com/0xrawsec/bpf-linker", long)]
#[clap(default_value = "https://github.com/kunai-project/bpf-linker", long)]
pub bpf_linker_repo: String,
/// fetch this branch of bpf-linker repo
// linker branch supporting Debug Information (DI)
Expand All @@ -28,7 +28,7 @@ pub struct Options {
/// fetch this commit of bpf-linker, specify "last" to fetch
/// the last commit
// be carefull of rebased repository while taking commits
#[clap(default_value = "ef91ad89c0ce8a66d998bde1e97526eb46501e36", long)]
#[clap(default_value = "c421e588883eae057dc147728a7bdcc38bf087b1", long)]
pub bpf_linker_commit: String,

/// target to build the build-tools for
Expand Down

0 comments on commit ef53617

Please sign in to comment.