[ovs-dev] How to use vlog in 'datapath' module?
hi all, I'm trying to add something into datapath module and need to use vlog for debugging. I tried to put #include "vlog.h" at the biginning of datapath.c as well as VLOG_DEFINE_THIS_MODULE(datapath); I still got nothing in /var/log/openvswitch/ovs-vswitchd.log from the function VLOG_INFO("HELLO WORLD"); in ovs_dp_process_packet function. what should i do? ps. I installed ovs 2.4.0 through .deb packages and runned ovs on mininet. thanks, Hs ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev
[ovs-dev] problems debugging datapath module
hi all, I tried to put a "printk" line into the biginning of function "ovs_dp_process_packet", since i assumed that every packet appeared in the links to the switch will trigger that function. but when i updated ovs and start mininet with the modified ovs, i still cannot see the output of "printk" in syslog at /var/log after a "pingall" command. will the outcomes be put somewhere else? or did I missed something so that the "printk" didn't work? Thanks a lot. Hs. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev
[ovs-dev] What time function is available in datapath module?
Hi all, I used to use struct 'timeval' and function 'gettimeofday' from 'sys/time.h' to mesure time with an accuracy of μsecs. Since the datapath module runs in kernel mode, i wonder whether the function can still do the work, or any other functions can be used and offer such accuracy in this scenario. thanks, hs ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev