Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit ddbc715

Browse files
authored
Remove Z3 telemetry (#2860)
1 parent 5061a3d commit ddbc715

File tree

4 files changed

+0
-46
lines changed

4 files changed

+0
-46
lines changed

docs/telemetry.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,6 @@ The following information is recorded for Salvo related tasks:
241241
during symbolic execution but may have been input tainted. Examples include
242242
`Cmovs` and `Movq`. For the full list, see
243243
[iced_x86::mnemonic](https://docs.rs/iced-x86/1.10.3/iced_x86/enum.Mnemonic.html).
244-
* Z3ErrorCode - An error code that corresponds to an error code from Z3 when
245-
solving a constraint fails. Examples include `NoParser` and
246-
`InvalidPattern`. For the full list, see
247-
[z3_sys::ErrorCode](https://docs.rs/z3-sys/0.6.3/z3_sys/enum.ErrorCode.html)
248244
* SymexTimeout - A u64 representing the maximum time in seconds to spend during
249245
symbolic execution, reported each time symbolic execution was stopped due to
250246
the limit.

src/agent/Cargo.lock

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/agent/onefuzz-telemetry/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ license = "MIT"
77

88
[features]
99
default = []
10-
z3 = ["z3-sys"]
1110
intel_instructions = ["iced-x86"]
1211

1312
[dependencies]
@@ -16,7 +15,6 @@ appinsights = { version = "0.2.3" }
1615
log = "0.4"
1716
uuid = { version = "0.8", features = ["serde", "v4"] }
1817
serde = { version = "1.0", features = ["derive"] }
19-
z3-sys = { version = "0.6", optional = true}
2018
iced-x86 = { version = "1.17", optional = true}
2119
tokio = { version = "1.24", features = ["full"] }
2220
lazy_static = "1.4"

src/agent/onefuzz-telemetry/src/lib.rs

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ use serde::{Deserialize, Serialize};
88
use std::fmt;
99
use std::sync::{LockResult, RwLockReadGuard, RwLockWriteGuard};
1010
use uuid::Uuid;
11-
#[cfg(feature = "z3")]
12-
use z3_sys::ErrorCode as Z3ErrorCode;
1311

1412
pub use chrono::Utc;
1513

@@ -42,25 +40,6 @@ impl InstanceTelemetryKey {
4240
}
4341
}
4442

45-
#[cfg(feature = "z3")]
46-
pub fn z3_error_as_str(code: &Z3ErrorCode) -> &'static str {
47-
match code {
48-
Z3ErrorCode::OK => "OK",
49-
Z3ErrorCode::SortError => "SortError",
50-
Z3ErrorCode::IOB => "IOB",
51-
Z3ErrorCode::InvalidArg => "InvalidArg",
52-
Z3ErrorCode::ParserError => "ParserError",
53-
Z3ErrorCode::NoParser => "NoParser",
54-
Z3ErrorCode::InvalidPattern => "InvalidPattern",
55-
Z3ErrorCode::MemoutFail => "MemoutFail",
56-
Z3ErrorCode::FileAccessError => "FileAccessError",
57-
Z3ErrorCode::InternalFatal => "InternalFatal",
58-
Z3ErrorCode::InvalidUsage => "InvalidUsage",
59-
Z3ErrorCode::DecRefError => "DecRefError",
60-
Z3ErrorCode::Exception => "Exception",
61-
}
62-
}
63-
6443
impl fmt::Display for InstanceTelemetryKey {
6544
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6645
write!(f, "{}", self.0)
@@ -182,10 +161,6 @@ pub enum EventData {
182161
MissedInstructionCode(IntelInstructionCode),
183162
#[cfg(feature = "intel_instructions")]
184163
MissedInstructionMnemonic(IntelInstructionMnemonic),
185-
#[cfg(feature = "z3")]
186-
Z3ErrorCode(Z3ErrorCode),
187-
#[cfg(feature = "z3")]
188-
Z3ErrorString(String),
189164
SymexTimeout(u64),
190165
}
191166

@@ -260,10 +235,6 @@ impl EventData {
260235
("divergence_path_expected_index", x.to_string())
261236
}
262237
Self::DivergencePathActualIndex(x) => ("divergence_path_actual_index", x.to_string()),
263-
#[cfg(feature = "z3")]
264-
Self::Z3ErrorCode(x) => ("z3_error_code", z3_error_as_str(x).to_owned()),
265-
#[cfg(feature = "z3")]
266-
Self::Z3ErrorString(x) => ("z3_error_string", x.to_owned()),
267238
Self::SymexTimeout(x) => ("symex_timeout", x.to_string()),
268239
}
269240
}
@@ -328,10 +299,6 @@ impl EventData {
328299
Self::MissedInstructionCode(_) => true,
329300
#[cfg(feature = "intel_instructions")]
330301
Self::MissedInstructionMnemonic(_) => true,
331-
#[cfg(feature = "z3")]
332-
Self::Z3ErrorCode(_) => true,
333-
#[cfg(feature = "z3")]
334-
Self::Z3ErrorString(_) => false,
335302
Self::SymexTimeout(_) => true,
336303
}
337304
}

0 commit comments

Comments
 (0)