linux-perf-event-reader-0.8.1 has been yanked.
linux-perf-event-reader
This crate lets you parse Linux perf events and associated structures.
Example
use ;
use ;
// Read the perf_event_attr data.
let attr_data = vec!;
let attr =
.unwrap;
let parse_info = new;
let body = b"lG\x08\0lG\x08\0dump_syms\0\0\0\0\0\0\0lG\x08\0lG\x08\08\x1b\xf8\x18hX\x04\0";
let body_raw_data = from;
let raw_record = new;
let parsed_record = raw_record.parse.unwrap;
assert_eq!;
Acknowledgements
Some of the code in this repo was based on @koute's not-perf
project.
License
Licensed under either of
- Apache License, Version 2.0 (
LICENSE-APACHE
or http://www.apache.org/licenses/LICENSE-2.0) - MIT license (
LICENSE-MIT
or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.