Skip to content

Releases: Phantomical/perf-event

v0.7.2

22 Oct 23:54
27fa0a7
Compare
Choose a tag to compare

[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

Full Changelog: v0.7.1...v0.7.2

v0.7.1

05 Oct 08:05
Compare
Choose a tag to compare

[0.7.1] - 2023-10-05

Added

  • Added a Raw event type for creating PERF_TYPE_RAW counter events. @janaknat

What's Changed

New Contributors

Full Changelog: v0.7.0...v0.7.1

v0.7.0

25 Jul 07:29
a0419ff
Compare
Choose a tag to compare

[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 multiple Records from the same Sampler existing at the same time.

What's Changed

Full Changelog: v0.6.3...v0.7.0

perf-event2 v0.6.3

30 May 07:19
Compare
Choose a tag to compare

[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

Full Changelog: v0.6.2...v0.6.3

perf-event2 v0.6.2

26 May 17:49
Compare
Choose a tag to compare

[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

New Contributors

Full Changelog: v0.6.1...v0.6.2

perf-event2 v0.6.1

19 May 08:42
1e74dd8
Compare
Choose a tag to compare

[0.6.1] - 2023-05-19

Added

  • Expose the IOC_SET_BPF ioctl as Counter::set_bpf.
  • Add Event::update_attrs_with_data to allow events to store references to owned data within Builder's perf_event_attr struct.
  • Add KProbe, UProbe, and Tracepoint event types.

What's Changed

Full Changelog: sys-v5.0.3...v0.6.1

v0.6.0

17 May 08:20
61dd66c
Compare
Choose a tag to compare

[0.6.0] - 2023-05-17

Added

  • Expose the perf_event_data crate as the data module.
  • Add Record::parse_record to parse records to data::Record.
  • Add Software::CGROUP_SWITCHES and Software::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, and CacheResult.
  • WhichCache has been renamed to CacheId.

What's Changed

Full Changelog: v0.5.0...v0.6.0

sys-v5.0.3

17 May 08:31
8dd2f4b
Compare
Choose a tag to compare

5.0.3

  • Regenerated the bindings from the linux 6.3.4 source tree.

What's Changed

Full Changelog: v0.6.0...sys-v5.0.3

perf-event-open-sys2 v5.0.2

23 Apr 08:57
59a6e81
Compare
Choose a tag to compare

What's Changed

  • Remove the #[non_exhaustive] attribute on most structs by @Phantomical in #4

Full Changelog: sys-v5.0.1...sys-v5.0.2

perf-event-open-sys2 v5.0.1

22 Apr 23:11
724222f
Compare
Choose a tag to compare

What's Changed

  • Generate bindings for perf architecture registers by @Phantomical in #3

Full Changelog: sys-v5.0.0...sys-v5.0.1