[ovs-dev] GDB macro's for Open vSwitch

Ben Pfaff blp at ovn.org
Sat Apr 28 18:41:44 UTC 2018


On Thu, Apr 26, 2018 at 11:24:34AM +0200, Eelco Chaudron wrote:
> On 25/04/18 21:42, Ben Pfaff wrote:
> >On Wed, Apr 25, 2018 at 06:12:03PM +0200, Eelco Chaudron wrote:
> >>Hi All,
> >>
> >>I could not find any GDB macros or commands in the OVS project, and as I was
> >>debugging some vague crash I started to create some.
> >>
> >>As I was trying to do this while debugging I copied some code from the Linux
> >>debug commands, so I had to use the same GPL2 license.
> >>
> >>You can find the commands on GitHub,
> >>https://github.com/chaudron/gdb_commands/blob/master/ovs_GDB.py
> >>
> >>I'm ok with including them in the OVS distribution if others find them
> >>useful, but not sure how this works with the GPL2 license.
> >>
> >>The commands added to GDB are:
> >>
> >>- ovs_dump_bridge [ports|wanted]
> >>- ovs_dump_bridge_ports <struct bridge *>
> >>- ovs_dump_dp_netdev [ports]
> >>- ovs_dump_dp_netdev_ports <struct dp_netdev *>
> >>- ovs_dump_netdev
> >This sounds useful.  I don't think that the GPL license should be a big
> >deal because GDB macros are not linked against C code.  It seems like a
> >clear case of "mere aggregation" to me.
> >
> >Would you like to submit a patch to add these to the tree?  Ideally, you
> >could add some documentation as well (probably adding what you put in
> >the commit message to the tree).
> 
> I'm on PTO (almost) without internet next week, but I'll send a patch when I
> get back including some documentation.

Thanks!

I'm traveling for business this week (Kubecon) so I'll be less
responsive than usual.


More information about the dev mailing list