@@ -75,6 +75,7 @@ use crate::devices::legacy;
75
75
use crate :: devices:: virtio:: balloon:: metrics as balloon_metrics;
76
76
use crate :: devices:: virtio:: block:: virtio:: metrics as block_metrics;
77
77
use crate :: devices:: virtio:: net:: metrics as net_metrics;
78
+ use crate :: devices:: virtio:: pmem:: metrics as pmem_metrics;
78
79
use crate :: devices:: virtio:: rng:: metrics as entropy_metrics;
79
80
use crate :: devices:: virtio:: vhost_user_metrics;
80
81
use crate :: devices:: virtio:: vsock:: metrics as vsock_metrics;
@@ -873,6 +874,7 @@ create_serialize_proxy!(VhostUserMetricsSerializeProxy, vhost_user_metrics);
873
874
create_serialize_proxy ! ( BalloonMetricsSerializeProxy , balloon_metrics) ;
874
875
create_serialize_proxy ! ( EntropyMetricsSerializeProxy , entropy_metrics) ;
875
876
create_serialize_proxy ! ( VsockMetricsSerializeProxy , vsock_metrics) ;
877
+ create_serialize_proxy ! ( PmemMetricsSerializeProxy , pmem_metrics) ;
876
878
create_serialize_proxy ! ( LegacyDevMetricsSerializeProxy , legacy) ;
877
879
878
880
/// Structure storing all metrics while enforcing serialization support on them.
@@ -922,6 +924,9 @@ pub struct FirecrackerMetrics {
922
924
/// Metrics related to virtio-rng entropy device.
923
925
pub entropy_ser : EntropyMetricsSerializeProxy ,
924
926
#[ serde( flatten) ]
927
+ /// Metrics related to virtio-pmem entropy device.
928
+ pub pmem_ser : PmemMetricsSerializeProxy ,
929
+ #[ serde( flatten) ]
925
930
/// Vhost-user device related metrics.
926
931
pub vhost_user_ser : VhostUserMetricsSerializeProxy ,
927
932
/// Interrupt related metrics
@@ -950,6 +955,7 @@ impl FirecrackerMetrics {
950
955
signals : SignalMetrics :: new ( ) ,
951
956
vsock_ser : VsockMetricsSerializeProxy { } ,
952
957
entropy_ser : EntropyMetricsSerializeProxy { } ,
958
+ pmem_ser : PmemMetricsSerializeProxy { } ,
953
959
vhost_user_ser : VhostUserMetricsSerializeProxy { } ,
954
960
interrupts : InterruptMetrics :: new ( ) ,
955
961
}
0 commit comments