X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_vnet.h;h=a22894ae505fc247eb05e7568b909e00e09a50e7;hb=c4fa59ab9c6963f1b7d8ab56718513070f92f768;hp=49951ad81dfd029d3aeec30bbd56bd70c4ff8274;hpb=ac31dc84e5e31187345ec6d66647b29975958a94;p=palacios.git diff --git a/palacios/include/palacios/vmm_vnet.h b/palacios/include/palacios/vmm_vnet.h index 49951ad..a22894a 100644 --- a/palacios/include/palacios/vmm_vnet.h +++ b/palacios/include/palacios/vmm_vnet.h @@ -72,7 +72,24 @@ struct v3_vnet_pkt { } __attribute__((packed)); -int v3_vnet_send_pkt(struct v3_vnet_pkt * pkt); +#ifdef CONFIG_VNET_PROFILE +struct v3_vnet_profile{ + uint64_t time_copy_from_guest; + uint64_t time_route_lookup; + uint64_t time_mallocfree; + uint64_t time_copy_to_guest; + uint64_t total_handle_time; + uint64_t memcpy_time; + + uint64_t total_exit_time; + bool print; + + uint64_t virtio_handle_start; +}; +#endif + + +int v3_vnet_send_pkt(struct v3_vnet_pkt * pkt, void *private_data); int v3_vnet_add_route(struct v3_vnet_route route);