File tree Expand file tree Collapse file tree 4 files changed +37
-6
lines changed
src/vmm/src/devices/virtio/net
integration_tests/functional Expand file tree Collapse file tree 4 files changed +37
-6
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,6 @@ pub struct NetDeviceMetrics {
161
161
pub rx_queue_event_count : SharedIncMetric ,
162
162
/// Number of events associated with the rate limiter installed on the receiving path.
163
163
pub rx_event_rate_limiter_count : SharedIncMetric ,
164
- /// Number of RX partial writes to guest.
165
- pub rx_partial_writes : SharedIncMetric ,
166
164
/// Number of RX rate limiter throttling events.
167
165
pub rx_rate_limiter_throttled : SharedIncMetric ,
168
166
/// Number of events received on the associated tap.
@@ -233,8 +231,6 @@ impl NetDeviceMetrics {
233
231
. add ( other. rx_queue_event_count . fetch_diff ( ) ) ;
234
232
self . rx_event_rate_limiter_count
235
233
. add ( other. rx_event_rate_limiter_count . fetch_diff ( ) ) ;
236
- self . rx_partial_writes
237
- . add ( other. rx_partial_writes . fetch_diff ( ) ) ;
238
234
self . rx_rate_limiter_throttled
239
235
. add ( other. rx_rate_limiter_throttled . fetch_diff ( ) ) ;
240
236
self . rx_tap_event_count
Original file line number Diff line number Diff line change @@ -104,7 +104,6 @@ def validate_fc_metrics(metrics):
104
104
"event_fails" ,
105
105
"rx_queue_event_count" ,
106
106
"rx_event_rate_limiter_count" ,
107
- "rx_partial_writes" ,
108
107
"rx_rate_limiter_throttled" ,
109
108
"rx_tap_event_count" ,
110
109
"rx_bytes_count" ,
Original file line number Diff line number Diff line change
1
+ import time
2
+ import subprocess
3
+ from pathlib import Path
4
+ import re
5
+ import pytest
6
+
7
+
8
+ def test_clippy_tracing_instrumentation (uvm_plain ):
9
+ """
10
+ Test Firecracker with Clippy linting and tracing instrumentation enabled.
11
+ """
12
+
13
+ vm = uvm_plain
14
+ vm .spawn (log_file = None )
15
+ vm .basic_config (boot_args = "log-level=Trace" )
16
+
17
+ log_path = Path (vm .path ) / "log"
18
+ log_path .touch ()
19
+ vm .api .logger .put (
20
+ log_path = vm .create_jailed_resource (log_path ),
21
+ level = "Trace" ,
22
+ show_level = True ,
23
+ show_log_origin = True ,
24
+ )
25
+ vm .log_file = log_path
26
+ vm .time_api_requests = False
27
+
28
+ vm .start ()
29
+ time .sleep (10 )
30
+
31
+ logs = log_path .read_text ()
32
+ print ("Tracing Logs:" )
33
+ print (logs )
34
+
35
+ assert ">>" in logs , "Expected tracing markers not found in logs"
36
+
37
+ vm .kill ()
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ def verify_net_emulation_paused(metrics):
13
13
"""Verify net emulation is paused based on provided metrics."""
14
14
net_metrics = metrics ["net" ]
15
15
assert net_metrics ["rx_queue_event_count" ] == 0
16
- assert net_metrics ["rx_partial_writes" ] == 0
17
16
assert net_metrics ["rx_tap_event_count" ] == 0
18
17
assert net_metrics ["rx_bytes_count" ] == 0
19
18
assert net_metrics ["rx_packets_count" ] == 0
You can’t perform that action at this time.
0 commit comments