Skip to content
This repository has been archived by the owner on Dec 30, 2021. It is now read-only.

Commit

Permalink
Rename subcrates
Browse files Browse the repository at this point in the history
  • Loading branch information
loganwendholt committed Aug 27, 2019
1 parent 76dddf6 commit e79722c
Show file tree
Hide file tree
Showing 41 changed files with 80 additions and 1,149 deletions.
82 changes: 41 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[workspace]
members= ["reverie", "reverie-syscalls", "reverie-tools-helper", "reverie-common", "reverie-preloader", "examples/none", "examples/echo", "examples/counter", "examples/det" ]
default-members = ["reverie", "reverie-syscalls", "reverie-common", "reverie-preloader" ]
members= ["reverie", "syscalls", "reverie-helper", "reverie-common", "reverie-preloader", "examples/none", "examples/echo", "examples/counter", "examples/det" ]
default-members = ["reverie", "syscalls", "reverie-common", "reverie-preloader" ]
2 changes: 1 addition & 1 deletion examples/counter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ crate-type = ["cdylib"]
path = "src/lib.rs"

[dependencies]
reverie-tools-helper = { path = "../../reverie-tools-helper" }
reverie-helper = { path = "../../reverie-helper" }
log = { version = "0.4", default-features = false }

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/counter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#[allow(unused_imports)]
use std::ffi::CStr;

use reverie_tools_helper::{ syscalls::*, counter::*, common::local_state::ProcessState, logger };
use reverie_helper::{ syscalls::*, counter::*, common::local_state::ProcessState, logger };

#[cfg_attr(target_os = "linux", link_section = ".ctors")]
#[used]
Expand Down
2 changes: 1 addition & 1 deletion examples/det/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ crate-type = ["cdylib"]
path = "src/lib.rs"

[dependencies]
reverie-tools-helper = { path = "../../reverie-tools-helper" }
reverie-helper = { path = "../../reverie-helper" }
log = { version = "0.4", default-features = false }
libc = { version = "0.2", default-features = false }

Expand Down
2 changes: 1 addition & 1 deletion examples/det/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![allow(unused_imports)]
#![allow(unused_attributes)]

use reverie_tools_helper::{syscalls::*, counter::*, common::local_state::ProcessState, logger};
use reverie_helper::{syscalls::*, counter::*, common::local_state::ProcessState, logger};
use log::*;

#[allow(unused_imports)]
Expand Down
2 changes: 1 addition & 1 deletion examples/echo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ crate-type = ["cdylib"]
path = "src/lib.rs"

[dependencies]
reverie-tools-helper = { path = "../../reverie-tools-helper" }
reverie-helper = { path = "../../reverie-helper" }
log = { version = "0.4", default-features = false }
serde = { version = "1.0", default-features = false, features = [ "derive" ] }
libc = { version = "0.2", default-features = false, features = [] }
Expand Down
2 changes: 1 addition & 1 deletion examples/echo/src/dpc.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! deferred precedure calls
//!
use reverie_tools_helper::{ common::consts, syscalls::syscall, logger} ;
use reverie_helper::{ common::consts, syscalls::syscall, logger} ;
use log::debug;

const DPC_PREFIX: &'static str = "/tmp/dpc-task.";
Expand Down
10 changes: 5 additions & 5 deletions examples/echo/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
//!
use crate::show::*;
use reverie_tools_helper::syscalls::*;
use reverie_tools_helper::counter::{note_syscall, NoteInfo};
use reverie_tools_helper::common::local_state::{ProcessState, ThreadState};
use reverie_helper::syscalls::*;
use reverie_helper::counter::{note_syscall, NoteInfo};
use reverie_helper::common::local_state::{ProcessState, ThreadState};

use reverie_tools_helper::logger::*;
use reverie_tools_helper::*;
use reverie_helper::logger::*;
use reverie_helper::*;

#[macro_export(smsg)]
macro_rules! smsg {
Expand Down
2 changes: 1 addition & 1 deletion examples/echo/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![feature(format_args_nl, slice_internals)]
#![allow(unused_attributes)]

use reverie_tools_helper::{counter, common, logger};
use reverie_helper::{counter, common, logger};

#[macro_use]
pub mod macros;
Expand Down
2 changes: 1 addition & 1 deletion examples/echo/src/show/args.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! pretty print syscalls
use reverie_tools_helper::syscalls::*;
use reverie_helper::syscalls::*;
use core::fmt;
use core::fmt::Display;
use core::ptr::NonNull;
Expand Down
2 changes: 1 addition & 1 deletion examples/echo/src/show/types.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

use core::ptr::NonNull;
use core::ffi::c_void as void;
use reverie_tools_helper::syscalls::SyscallNo;
use reverie_helper::syscalls::SyscallNo;

/// syscall return vaules for formatting purpose
#[derive(Clone, Copy)]
Expand Down
2 changes: 1 addition & 1 deletion examples/none/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ crate-type = ["cdylib"]
path = "src/lib.rs"

[dependencies]
reverie-tools-helper = { path = "../../reverie-tools-helper" }
reverie-helper = { path = "../../reverie-helper" }
serde = { version = "1.0", default-features = false, features = [ "derive" ] }

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/none/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![allow(unused_imports)]
#![allow(unused_attributes)]

use reverie_tools_helper::{ syscalls::*, common::local_state::ProcessState };
use reverie_helper::{ syscalls::*, common::local_state::ProcessState };

#[no_mangle]
pub extern "C" fn captured_syscall(
Expand Down
3 changes: 1 addition & 2 deletions reverie-common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! reverie tools helper
//! reverie common
//!
#![feature(format_args_nl, slice_internals)]
Expand All @@ -10,4 +10,3 @@ pub mod consts;
pub mod state;
pub mod local_state;
pub mod profiling;

6 changes: 3 additions & 3 deletions reverie-tools-helper/Cargo.toml → reverie-helper/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[package]
name = "reverie-tools-helper"
name = "reverie-helper"
version = "0.1.0"
authors = ["Baojun Wang <wangbj@gmail.com>"]
edition = "2018"

[lib]
name = "reverie_tools_helper"
name = "reverie_helper"
crate-type = ["lib"]

[features]
std = []

[dependencies]
reverie-syscalls = { path = "../reverie-syscalls" }
syscalls = { path = "../syscalls" }
reverie-common = { path = "../reverie-common" }
log = { version = "0.4", default-features = false }
serde = { version = "1.0", default-features = false, features = [ "derive" ] }
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use core::ffi::c_void;
use reverie_common::consts;
use reverie_common::local_state::*;

use reverie_syscalls::*;
use syscalls::*;

static SYSCALL_UNTRACED: u64 = 0x7000_0000;
static SYSCALL_TRACED: u64 = 0x7000_0004;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ pub mod counter;
pub mod ffi;

pub use reverie_common as common;
pub use reverie_syscalls as syscalls;
pub use syscalls;
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use log::{Log, Level, Metadata, Record, SetLoggerError};
use core::fmt::{Arguments, Error, Write};

use reverie_syscalls::*;
use syscalls::*;
use crate::spinlock::SpinLock;

const RING_BUFF_SIZE: usize = 16384;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//!
use core::sync::atomic::{AtomicUsize, Ordering};

use reverie_syscalls::syscall;
use syscalls::syscall;

/// spinlock struct
#[derive(Default)]
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion reverie-preloader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ crate-type = ["cdylib"]
path = "src/lib.rs"

[dependencies]
reverie-syscalls = { path = "../reverie-syscalls" }
syscalls = { path = "../syscalls" }
reverie-common = { path = "../reverie-common" }
procfs = "0.5"
nix = "0.14"
Expand Down
2 changes: 1 addition & 1 deletion reverie-preloader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::io::Result;
pub mod relink;
pub mod seccomp_bpf;

use reverie_syscalls::*;
use syscalls::*;
use reverie_common::consts;

#[link_section = ".init_array"]
Expand Down
Loading

0 comments on commit e79722c

Please sign in to comment.