aya: update `VerifierLogLevel` level variants

pull/371/head
conectado 2 years ago
parent edd80397dc
commit a6025255f5
No known key found for this signature in database
GPG Key ID: 338C2256E2EB62D4

@ -205,20 +205,14 @@ pub enum VerifierLogLevel {
/// Disable all logging.
Disable = 0,
/// Sets logging to level 1.
Level1 = 1,
/// Default level of logging, shows verifier stats.
Default = 4,
/// Sets logging to level 2.
Level2 = 3,
/// Prints verbose logs showing tracing.
Verbose = 1,
/// Only show verifier stats without any tracing.
Stats = 4,
/// Show stats along with traces corresponding to level 1.
StatsLevel1 = 5,
/// Show stats along with traces corresponding to level 2.
StatsLevel2 = 7,
/// Prints full debug details.
Debug = 7,
}
impl<'a> BpfLoader<'a> {
@ -232,7 +226,7 @@ impl<'a> BpfLoader<'a> {
globals: HashMap::new(),
features,
extensions: HashSet::new(),
verifier_log_level: VerifierLogLevel::Stats,
verifier_log_level: VerifierLogLevel::Default,
}
}
@ -348,7 +342,7 @@ impl<'a> BpfLoader<'a> {
/// use aya::{BpfLoader, VerifierLogLevel};
///
/// let bpf = BpfLoader::new()
/// .verifier_log_level(VerifierLogLevel::Level1)
/// .verifier_log_level(VerifierLogLevel::Verbose)
/// .load_file("file.o")?;
/// # Ok::<(), aya::BpfError>(())
/// ```

Loading…
Cancel
Save