Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaumy committed Jan 31, 2024
1 parent bb8929e commit 073f3fa
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/perf_event/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pub mod config;
pub mod counting;
pub mod event;
pub mod sampling;
pub mod tracing;
pub mod config;

use crate::syscall::bindings::perf_event_attr;
pub use event::*;
Expand Down
2 changes: 1 addition & 1 deletion src/perf_event/sampling/single/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ mod hardware;
mod sample_record_fields;
mod software;

use crate::config::{Cpu, Process};
use crate::sampling::record::{Record, RecordBody};
use crate::sampling::{Config, ExtraConfig, OverflowBy, Sampler};
use crate::{Event, EventScope};
use crate::config::{Cpu, Process};

pub fn test_single<F>(ev: &Event, workload: &mut F)
where
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::config::{Cpu, Process};
use crate::sampling::record::{Record, RecordBody};
use crate::sampling::{Config, ExtraConfig, OverflowBy, Sampler};
use crate::test::cpu_workload;
use crate::{Event, EventScope, HardwareEvent};
use crate::config::{Cpu, Process};

fn gen_sampler(cfg: &Config) -> Sampler {
let mmap_pages = 1 + 512;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use crate::config::{Cpu, Process};
use crate::sampling::record::sample::WeightRepr;
use crate::sampling::record::{Record, RecordBody};
use crate::sampling::{Config, ExtraConfig, OverflowBy, Sampler, SampleRecordFields};
use crate::sampling::{Config, ExtraConfig, OverflowBy, SampleRecordFields, Sampler};
use crate::test::cpu_workload;
use crate::{Event, EventScope, HardwareEvent};
use crate::config::{Cpu, Process};

fn gen_sampler(cfg: &Config) -> Sampler {
let mmap_pages = 1 + 512;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::config::{Cpu, Process};
use crate::sampling::record::{Record, RecordBody};
use crate::sampling::{Config, ExtraConfig, OverflowBy, Sampler};
use crate::test::cpu_workload;
use crate::{Event, EventScope, HardwareEvent};
use crate::config::{Cpu, Process};

fn gen_sampler(cfg: &Config) -> Sampler {
let mmap_pages = 1 + 512;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::config::{Cpu, Process};
use crate::sampling::record::{Record, RecordBody};
use crate::sampling::{Config, ExtraConfig, OverflowBy, Sampler};
use crate::test::cpu_workload;
use crate::{Event, EventScope, HardwareEvent};
use crate::config::{Cpu, Process};

fn gen_sampler(cfg: &Config) -> Sampler {
let mmap_pages = 1 + 512;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ mod data_stack_user;
mod ips;
mod weight;

use crate::config::{Cpu, Process};
use crate::sampling::record::{Record, RecordBody};
use crate::sampling::{Config, ExtraConfig, OverflowBy, Sampler};
use crate::test::cpu_workload;
use crate::{Event, EventScope, HardwareEvent};
use crate::config::{Cpu, Process};

fn gen_sampler(cfg: &Config) -> Sampler {
let mmap_pages = 1 + 512;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use crate::config::{Cpu, Process};
use crate::sampling::record::sample::{Weight, WeightRepr};
use crate::sampling::record::{Record, RecordBody};
use crate::sampling::{Config, ExtraConfig, OverflowBy, Sampler};
use crate::test::cpu_workload;
use crate::{Event, EventScope, HardwareEvent};
use crate::config::{Cpu, Process};

fn gen_sampler(cfg: &Config) -> Sampler {
let mmap_pages = 1 + 512;
Expand Down
2 changes: 1 addition & 1 deletion src/perf_event/tracing/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
mod breakpoint;
mod tracepoint;

use crate::config::{Cpu, Process};
use crate::tracing::{Config, ExtraConfig, Tracer};
use crate::{Event, EventScope};
use crate::config::{Cpu, Process};

fn gen_tracer(cfg: &Config) -> Tracer {
let mmap_pages = 1 + 512;
Expand Down

0 comments on commit 073f3fa

Please sign in to comment.