You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"a comma separated list of options: `call`,`no-call`,`record`,`no-record`.";
835
837
pub(crate)const parse_instrument_xray:&str = "either a boolean (`yes`, `no`, `on`, `off`, etc), or a comma separated list of settings: `always` or `never` (mutually exclusive), `ignore-loops`, `instruction-threshold=N`, `skip-entry`, `skip-exit`";
836
838
pub(crate)const parse_unpretty:&str = "`string` or `string=string`";
837
839
pub(crate)const parse_treat_err_as_bug:&str = "either no value or a non-negative number";
@@ -1582,6 +1584,32 @@ pub mod parse {
1582
1584
true
1583
1585
}
1584
1586
1587
+
pub(crate)fnparse_instrument_mcount_opts(
1588
+
slot:&mutInstrumentMcountOpts,
1589
+
v:Option<&str>,
1590
+
) -> bool{
1591
+
for option in v.into_iter().flat_map(|v| v.split(',')){
1592
+
match option {
1593
+
"no-call" => {
1594
+
slot.no_call = true;
1595
+
}
1596
+
"call" => {
1597
+
slot.no_call = false;
1598
+
}
1599
+
"no-record" => {
1600
+
slot.record = false;
1601
+
}
1602
+
"record" => {
1603
+
slot.record = true;
1604
+
}
1605
+
_ => {
1606
+
returnfalse;
1607
+
}
1608
+
}
1609
+
}
1610
+
v.is_some()
1611
+
}
1612
+
1585
1613
pub(crate)fnparse_instrument_xray(
1586
1614
slot:&mutOption<InstrumentXRay>,
1587
1615
v:Option<&str>,
@@ -2434,6 +2462,12 @@ options! {
2434
2462
"insert function instrument code for fentry-based tracing (default: no)"),
0 commit comments