-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathbindings.rs
More file actions
71 lines (70 loc) · 2.09 KB
/
bindings.rs
File metadata and controls
71 lines (70 loc) · 2.09 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* automatically generated by rust-bindgen 0.72.1 */
pub const MARKER_TYPE_SAMPLE_START: u32 = 0;
pub const MARKER_TYPE_SAMPLE_END: u32 = 1;
pub const MARKER_TYPE_BENCHMARK_START: u32 = 2;
pub const MARKER_TYPE_BENCHMARK_END: u32 = 3;
pub type InstrumentHooks = *mut u64;
extern "C" {
pub fn instrument_hooks_init() -> *mut InstrumentHooks;
}
extern "C" {
pub fn instrument_hooks_deinit(arg1: *mut InstrumentHooks);
}
extern "C" {
pub fn instrument_hooks_is_instrumented(arg1: *mut InstrumentHooks) -> bool;
}
extern "C" {
pub fn instrument_hooks_start_benchmark(arg1: *mut InstrumentHooks) -> u8;
}
extern "C" {
pub fn instrument_hooks_stop_benchmark(arg1: *mut InstrumentHooks) -> u8;
}
extern "C" {
pub fn instrument_hooks_set_executed_benchmark(
arg1: *mut InstrumentHooks,
pid: i32,
uri: *const ::std::os::raw::c_char,
) -> u8;
}
extern "C" {
pub fn instrument_hooks_executed_benchmark(
arg1: *mut InstrumentHooks,
pid: i32,
uri: *const ::std::os::raw::c_char,
) -> u8;
}
extern "C" {
pub fn instrument_hooks_set_integration(
arg1: *mut InstrumentHooks,
name: *const ::std::os::raw::c_char,
version: *const ::std::os::raw::c_char,
) -> u8;
}
extern "C" {
pub fn instrument_hooks_add_marker(
arg1: *mut InstrumentHooks,
pid: u32,
marker_type: u8,
timestamp: u64,
) -> u8;
}
extern "C" {
pub fn instrument_hooks_current_timestamp() -> u64;
}
pub const instrument_hooks_feature_t_FEATURE_DISABLE_CALLGRIND_MARKERS: instrument_hooks_feature_t =
0;
pub type instrument_hooks_feature_t = ::std::os::raw::c_uint;
extern "C" {
pub fn instrument_hooks_set_feature(feature: instrument_hooks_feature_t, enabled: bool);
}
extern "C" {
pub fn instrument_hooks_set_environment(
arg1: *mut InstrumentHooks,
section_name: *const ::std::os::raw::c_char,
key: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
) -> u8;
}
extern "C" {
pub fn instrument_hooks_write_environment(arg1: *mut InstrumentHooks, pid: u32) -> u8;
}