-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathmod.rs
More file actions
39 lines (32 loc) · 840 Bytes
/
mod.rs
File metadata and controls
39 lines (32 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const CG_BASE: u32 = ((b'C' as u32) << 24) + ((b'T' as u32) << 16);
#[allow(non_camel_case_types)]
#[repr(u32)]
pub enum ClientRequest {
RunningOnValgrind = 0x1001,
ZeroStatistics = CG_BASE + 1,
ToggleCollect = CG_BASE + 2,
DumpStatisticsAt = CG_BASE + 3,
StartInstrumentation = CG_BASE + 4,
StopInstrumentation = CG_BASE + 5,
}
pub use self::arch::{send_client_request, Value};
#[cfg(target_arch = "x86_64")]
#[path = "arch/x86_64.rs"]
mod arch;
#[cfg(target_arch = "x86")]
#[path = "arch/x86.rs"]
mod arch;
#[cfg(target_arch = "arm")]
#[path = "arch/arm.rs"]
mod arch;
#[cfg(target_arch = "aarch64")]
#[path = "arch/aarch64.rs"]
mod arch;
#[cfg(not(any(
target_arch = "x86_64",
target_arch = "x86",
target_arch = "arm",
target_arch = "aarch64"
)))]
#[path = "arch/unsupported.rs"]
mod arch;