Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Phantomical committed Nov 9, 2022
1 parent f38cc8a commit 8b6cc1f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions perf-event/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -831,10 +831,10 @@ impl<'a> Builder<'a> {
/// Indicate additional values to include in the generated sample events.
/// Note that this method is additive and does not remove previously added
/// sample types.
///
///
/// See the documentation of [`Sample`] for what's available to be
/// collected.
///
///
/// # Example
/// Here we build a sampler that grabs the instruction pointer, process ID,
/// thread ID, and timestamp whenever the underlying event triggers a
Expand Down
6 changes: 3 additions & 3 deletions perf-event/src/samples/mod.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//! Samples that the kernel can generate.
//!
//!
//! This module contains bindings for samples emitted by the kernel into the
//! ringbuffer generated by `perf_event_open`. For authoritative documentation
//! on what each record means see the [`perf_event_open` manpage][man].
//!
//!
//! The main type that you will need to use is the [`Record`] struct. It is
//! created by [`Sampler::next`] and represents a single event as generated by
//! the kernel.
//!
//!
//! [`Sampler::next`]: crate::Sampler::next
//! [man]: https://man7.org/linux/man-pages/man2/perf_event_open.2.html
Expand Down
1 change: 0 additions & 1 deletion perf-event/tests/sampling/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

mod mmap;

0 comments on commit 8b6cc1f

Please sign in to comment.