Debian Codegraph @

debian/rust-vendor/codspeed/src/instrument_hooks/bindings.rs

raw
1 /* automatically generated by rust-bindgen 0.72.1 */
2
3 pub const MARKER_TYPE_SAMPLE_START: u32 = 0;
4 pub const MARKER_TYPE_SAMPLE_END: u32 = 1;
5 pub const MARKER_TYPE_BENCHMARK_START: u32 = 2;
6 pub const MARKER_TYPE_BENCHMARK_END: u32 = 3;
7 #[repr(C)]
8 #[derive(Debug, Copy, Clone)]
9 pub struct InstrumentHooks {
10 _unused: [u8; 0],
11 }
12 extern "C" {
13 pub fn instrument_hooks_init() -> *mut InstrumentHooks;
14 }
15 extern "C" {
16 pub fn instrument_hooks_deinit(arg1: *mut InstrumentHooks);
17 }
18 extern "C" {
19 pub fn instrument_hooks_is_instrumented(arg1: *mut InstrumentHooks) -> bool;
20 }
21 extern "C" {
22 pub fn instrument_hooks_start_benchmark(arg1: *mut InstrumentHooks) -> u8;
23 }
24 extern "C" {
25 pub fn instrument_hooks_stop_benchmark(arg1: *mut InstrumentHooks) -> u8;
26 }
27 extern "C" {
28 pub fn instrument_hooks_set_executed_benchmark(
29 arg1: *mut InstrumentHooks,
30 pid: i32,
31 uri: *const ::std::os::raw::c_char,
32 ) -> u8;
33 }
34 extern "C" {
35 pub fn instrument_hooks_executed_benchmark(
36 arg1: *mut InstrumentHooks,
37 pid: i32,
38 uri: *const ::std::os::raw::c_char,
39 ) -> u8;
40 }
41 extern "C" {
42 pub fn instrument_hooks_set_integration(
43 arg1: *mut InstrumentHooks,
44 name: *const ::std::os::raw::c_char,
45 version: *const ::std::os::raw::c_char,
46 ) -> u8;
47 }
48 extern "C" {
49 pub fn instrument_hooks_add_marker(
50 arg1: *mut InstrumentHooks,
51 pid: i32,
52 marker_type: u8,
53 timestamp: u64,
54 ) -> u8;
55 }
56 extern "C" {
57 pub fn instrument_hooks_current_timestamp() -> u64;
58 }
59 pub const instrument_hooks_feature_t_FEATURE_DISABLE_CALLGRIND_MARKERS: instrument_hooks_feature_t =
60 0;
61 pub type instrument_hooks_feature_t = ::std::os::raw::c_uint;
62 extern "C" {
63 pub fn instrument_hooks_set_feature(feature: u64, enabled: bool);
64 }
65 extern "C" {
66 pub fn instrument_hooks_set_environment(
67 arg1: *mut InstrumentHooks,
68 section_name: *const ::std::os::raw::c_char,
69 key: *const ::std::os::raw::c_char,
70 value: *const ::std::os::raw::c_char,
71 ) -> u8;
72 }
73 extern "C" {
74 pub fn instrument_hooks_set_environment_list(
75 arg1: *mut InstrumentHooks,
76 section_name: *const ::std::os::raw::c_char,
77 key: *const ::std::os::raw::c_char,
78 values: *const *const ::std::os::raw::c_char,
79 count: u32,
80 ) -> u8;
81 }
82 extern "C" {
83 pub fn instrument_hooks_write_environment(arg1: *mut InstrumentHooks, pid: i32) -> u8;
84 }