use std::path::PathBuf;
use crate::commands::analyze::{self, AnalyzeOpts};
use crate::filter::{FailSeverity, FilterArgs};
pub fn run(
paths: &[PathBuf],
json: bool,
sarif: bool,
fail_on_severity: Option<FailSeverity>,
filter: &FilterArgs,
) -> anyhow::Result<()> {
if !json && !sarif {
eprintln!(
"padlock bpf: analysing BTF section — layouts reflect compiled types (compiler-accurate).\n\
False-sharing findings on BPF map structs are directly actionable: pad to separate\n\
frequently-updated map values onto distinct cache lines.\n"
);
}
analyze::run(
paths,
AnalyzeOpts {
json,
sarif,
markdown: false,
cache_line_size: None,
word_size: None,
fail_on_severity,
target: None,
},
filter,
)
}