aios_collector/lib.rs
1//! # aios-collector — Rust 采集层
2//!
3//! 封装 Android/Linux 系统观测入口, 输出 `RawEvent`。
4//! 提供:
5//! - `/proc` 文件系统读取 (进程状态、内存、OOM 分数)
6//! - Binder eBPF tracepoint 订阅 (跨进程通信监控)
7//! - 系统状态聚合 (电池、网络、位置)
8//!
9//! 文件系统访问事件的协议结构已在 `aios-spec` 中预留, 具体采集器尚未接入。
10
11#![deny(unsafe_op_in_unsafe_fn)]
12
13pub mod binder_probe;
14pub mod collection_stats;
15pub mod proc_reader;
16pub mod system_collector;
17
18pub use binder_probe::BinderProbe;
19pub use proc_reader::ProcReader;
20pub use system_collector::SystemStateCollector;