From 99ce27ba2dd1624a986551e5d3c68b2abee2ad96 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Thu, 18 Mar 2021 20:57:30 +0100 Subject: [PATCH] Update memmap to memmap2. --- measureme/Cargo.toml | 2 +- measureme/src/counters.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/measureme/Cargo.toml b/measureme/Cargo.toml index 03b049c..6fe4e38 100644 --- a/measureme/Cargo.toml +++ b/measureme/Cargo.toml @@ -22,5 +22,5 @@ smallvec = "1.0" nightly = [] [target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dependencies] -memmap = "0.7" +memmap2 = "0.2.1" perf-event-open-sys = "1.0.1" diff --git a/measureme/src/counters.rs b/measureme/src/counters.rs index 2598fec..b98efb5 100644 --- a/measureme/src/counters.rs +++ b/measureme/src/counters.rs @@ -302,7 +302,7 @@ const BUG_REPORT_MSG: &str = /// Linux x86_64 implementation based on `perf_event_open` and `rdpmc`. #[cfg(all(feature = "nightly", target_arch = "x86_64", target_os = "linux"))] mod hw { - use memmap::{Mmap, MmapOptions}; + use memmap2::{Mmap, MmapOptions}; use perf_event_open_sys::{bindings::*, perf_event_open}; use std::convert::TryInto; use std::error::Error;