Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions perf-event/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ categories = [
[lib]
name = "perf_event"

[features]
# Enable syscall interception hooks for mock testing and logging.
hooks = []

[dependencies]
bitflags = "2.1"
c-enum = "0.2.0"
Expand Down
277 changes: 0 additions & 277 deletions perf-event/src/hooks.rs

This file was deleted.

10 changes: 0 additions & 10 deletions perf-event/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,6 @@ mod sampler;
#[doc = include_str!("../README.md")]
mod readme {}

#[cfg(feature = "hooks")]
pub mod hooks;

// When the `"hooks"` feature is not enabled, call directly into
// `perf-event-open-sys`.
// When the `"hooks"` feature is enabled, `sys` functions allow for
// interposed functions that provide simulated results for testing.
#[cfg(feature = "hooks")]
use hooks::sys;
/// Support for parsing data contained within `Record`s.
///
/// Note that this module is actually just the [`perf-event-data`][ped] crate.
Expand All @@ -139,7 +130,6 @@ use hooks::sys;
/// # perf-event-data
#[doc(inline)]
pub use perf_event_data as data;
#[cfg(not(feature = "hooks"))]
use perf_event_open_sys as sys;

pub use crate::builder::{Builder, UnsupportedOptionsError};
Expand Down