Releases: Phantomical/perf-event
Releases · Phantomical/perf-event
v0.7.4
0.7.4 - 2024-05-30
Added
- Added several new methods on
Builder
for some fields which were not
previously wrapped. - Added
Builder::event
method 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_attr
fields by @Phantomical in #53
Full Changelog: v0.7.3...v0.7.4
v0.7.3
0.7.3 - 2024-05-26
Added
- Add
Group::builder
method 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
Sampler
when handling a record that wrapped around the end of the sampler ring buffer.
What's Changed
- Fix a panic within
ByteBuffer::truncate
by @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_user
method to for reading counters from userspace. Only x86 and x86_64 are supported when reading counters.
Changed
- (breaking)
Sampler::next_record
now takes&mut self
instead of&self
. This fixes UB that could arise due to having multipleRecord
s from the sameSampler
existing at the same time.
What's Changed
- Add support for reading counters from userspace using rdpmc by @Phantomical in #34
- Make
Sampler::next
record take&mut self
instead of&self
by @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
Dynamic
event 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::Msr
event 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::Msr
event. 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_BPF
ioctl asCounter::set_bpf
. - Add
Event::update_attrs_with_data
to allow events to store references to owned data withinBuilder
'sperf_event_attr
struct. - Add
KProbe
,UProbe
, andTracepoint
event 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
KProbe
andUProbe
events 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_data
crate as thedata
module. - Add
Record::parse_record
to parse records todata::Record
. - Add
Software::CGROUP_SWITCHES
andSoftware::BPF_OUTPUT
events (#9). @Phantomical
Changed
Hardware
is no longer a rust enum. The constants remain the same.Software
is no longer a rust enum. The constants remain the same.- The same applies for
WhichCache
,CacheOp
, andCacheResult
. WhichCache
has been renamed toCacheId
.
What's Changed
- Rename
data.rs
togroup_data.rs
by @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
Record
s via theperf_event_data
crate by @Phantomical in #7 - Add missing software events to
events::Software
enum by @Phantomical in #9 - Add a changelog to perf-event2 by @Phantomical in #10
- Convert
Hardware
andSoftware
enums to be c-like enums by @Phantomical in #11 - Rename
WhichCache
toCacheId
by @Phantomical in #12 - Simplify CI by @Phantomical in #13
- Silence
clippy::assign_op_pattern
lint 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