diff --git a/aya/src/bpf.rs b/aya/src/bpf.rs index 6280d070..609ae553 100644 --- a/aya/src/bpf.rs +++ b/aya/src/bpf.rs @@ -293,8 +293,13 @@ impl<'a> EbpfLoader<'a> { /// Override the value of a global variable. #[deprecated(since = "0.13.2", note = "please use `override_global` instead")] - pub fn set_global>>(&mut self, name: &'a str, value: T) -> &mut Self { - self.override_global(name, value, false) + pub fn set_global>>( + &mut self, + name: &'a str, + value: T, + must_exist: bool, + ) -> &mut Self { + self.override_global(name, value, must_exist) } /// Set the max_entries for specified map. diff --git a/xtask/public-api/aya.txt b/xtask/public-api/aya.txt index 60309344..bc861f4c 100644 --- a/xtask/public-api/aya.txt +++ b/xtask/public-api/aya.txt @@ -10750,7 +10750,7 @@ pub fn aya::EbpfLoader<'a>::map_max_entries(&mut self, name: &'a str, size: u32) pub fn aya::EbpfLoader<'a>::map_pin_path>>(&mut self, name: &'a str, path: P) -> &mut Self pub fn aya::EbpfLoader<'a>::new() -> Self pub fn aya::EbpfLoader<'a>::override_global>>(&mut self, name: &'a str, value: T, must_exist: bool) -> &mut Self -pub fn aya::EbpfLoader<'a>::set_global>>(&mut self, name: &'a str, value: T) -> &mut Self +pub fn aya::EbpfLoader<'a>::set_global>>(&mut self, name: &'a str, value: T, must_exist: bool) -> &mut Self pub fn aya::EbpfLoader<'a>::set_max_entries(&mut self, name: &'a str, size: u32) -> &mut Self pub fn aya::EbpfLoader<'a>::verifier_log_level(&mut self, level: aya::VerifierLogLevel) -> &mut Self impl core::default::Default for aya::EbpfLoader<'_>