Releases: Phantomical/perf-event
Releases · Phantomical/perf-event
v0.7.4
0.7.4 - 2024-05-30
Added
- Added several new methods on
Builderfor some fields which were not
previously wrapped. - Added
Builder::eventmethod which allows reconfiguring the event that the
builder was initially created with.
Changed
- All manpage links in the docs now point to https://mankier.com
What's Changed
- Allow reconfiguring the event within the builder by @Phantomical in #49
- Group exports via rustfmt std-extern-crate by @Phantomical in #50
- Update all manpage links to point to mankier.com by @Phantomical in #52
- Add a bunch more builder method for
perf_event_attrfields by @Phantomical in #53
Full Changelog: v0.7.3...v0.7.4
v0.7.3
0.7.3 - 2024-05-26
Added
- Add
Group::buildermethod which creates a builder that is preconfigured for
constructing aGroup. @daniel-levin
What's Changed
- Update the c_enum crate to v0.2 by @Phantomical in #42
- Fix a conditional in the dynamic_msr_event test by @Phantomical in #43
- Add builder convenience method to Group by @daniel-levin in #44
New Contributors
- @daniel-levin made their first contribution in #44
Full Changelog: v0.7.2...v0.7.3
v0.7.2
[0.7.2] - 2023-10-22
Fixed
- Fixed a panic in
Samplerwhen handling a record that wrapped around the end of the sampler ring buffer.
What's Changed
- Fix a panic within
ByteBuffer::truncateby @Phantomical in #39 - Rewrite the top-level README by @Phantomical in #40
- Prepare for v0.7.2 release by @Phantomical in #41
Full Changelog: v0.7.1...v0.7.2
v0.7.1
v0.7.0
[0.7.0] - 2023-07-24
Added
- Add
Sampler::read_usermethod to for reading counters from userspace. Only x86 and x86_64 are supported when reading counters.
Changed
- (breaking)
Sampler::next_recordnow takes&mut selfinstead of&self. This fixes UB that could arise due to having multipleRecords from the sameSamplerexisting at the same time.
What's Changed
- Add support for reading counters from userspace using rdpmc by @Phantomical in #34
- Make
Sampler::nextrecord take&mut selfinstead of&selfby @Phantomical in #35 - Update memmap2 to v0.7.0 by @Phantomical in #36
- Prepare for v0.7.0 release by @Phantomical in #37
Full Changelog: v0.6.3...v0.7.0
perf-event2 v0.6.3
[0.6.3] - 2023-05-30
Added
- Introduce a new
Dynamicevent type along with its builder. These allow easily creating counters for dynamic PMUs exposed via sysfs.
What's Changed
- Add new event type for dynamic perf PMUs by @Phantomical in #33
Full Changelog: v0.6.2...v0.6.3
perf-event2 v0.6.2
[0.6.2] - 2023-05-26
Added
- Introduce a new
x86::Msrevent type to expose the perf-event msr PMU. @yangxi
What's Changed
- Add a helper type for reading and caching dynamic PMU types by @Phantomical in #28
- Fix typo in tracepoint doctest by @Phantomical in #29
- Add rustfmt option to automatically group imports and reformat by @Phantomical in #30
- Add the MSR event support by @yangxi in #27
- Improve the documentation for the
x86::Msrevent. by @Phantomical in #32
New Contributors
Full Changelog: v0.6.1...v0.6.2
perf-event2 v0.6.1
[0.6.1] - 2023-05-19
Added
- Expose the
IOC_SET_BPFioctl asCounter::set_bpf. - Add
Event::update_attrs_with_datato allow events to store references to owned data withinBuilder'sperf_event_attrstruct. - Add
KProbe,UProbe, andTracepointevent types.
What's Changed
- Add Counter::set_bpf binding for the IOC_SET_BPF ioctl by @Phantomical in #19
- Allow events to optionally return data that will be owned by Builder by @Phantomical in #21
- Only warn on missing docs in debug, deny in release by @Phantomical in #20
- Add
KProbeandUProbeevents by @Phantomical in #23 - Update changelog to document #21 by @Phantomical in #24
- Add tracepoint event type by @Phantomical in #25
- Prepare for perf-event2 0.6.1 release by @Phantomical in #26
Full Changelog: sys-v5.0.3...v0.6.1
v0.6.0
[0.6.0] - 2023-05-17
Added
- Expose the
perf_event_datacrate as thedatamodule. - Add
Record::parse_recordto parse records todata::Record. - Add
Software::CGROUP_SWITCHESandSoftware::BPF_OUTPUTevents (#9). @Phantomical
Changed
Hardwareis no longer a rust enum. The constants remain the same.Softwareis no longer a rust enum. The constants remain the same.- The same applies for
WhichCache,CacheOp, andCacheResult. WhichCachehas been renamed toCacheId.
What's Changed
- Rename
data.rstogroup_data.rsby @Phantomical in #2 - Generate bindings for perf architecture registers by @Phantomical in #3
- Remove the
#[non_exhaustive]attribute on most structs by @Phantomical in #4 - Embed the source linux kernel version in the documentation by @Phantomical in #5
- Update release notes by @Phantomical in #6
- Copy CI workflows over from perf-event-data by @Phantomical in #8
- Add support for parsing
Records via theperf_event_datacrate by @Phantomical in #7 - Add missing software events to
events::Softwareenum by @Phantomical in #9 - Add a changelog to perf-event2 by @Phantomical in #10
- Convert
HardwareandSoftwareenums to be c-like enums by @Phantomical in #11 - Rename
WhichCachetoCacheIdby @Phantomical in #12 - Simplify CI by @Phantomical in #13
- Silence
clippy::assign_op_patternlint by @Phantomical in #14 - Update memmap2 to v0.6 by @Phantomical in #15
- Prepare for v0.6.0 release by @Phantomical in #16
Full Changelog: v0.5.0...v0.6.0
sys-v5.0.3
5.0.3
- Regenerated the bindings from the linux 6.3.4 source tree.
What's Changed
- Regenerate bindings from linux kernel version 6.3.2 by @Phantomical in #17
- Prepare sys-v5.0.3 release by @Phantomical in #18
Full Changelog: v0.6.0...sys-v5.0.3