[Drbd-dev] Proposed update to packet dumping code

Graham, Simon Simon.Graham at stratus.com
Thu Aug 10 21:41:01 CEST 2006

I found in debugging my problem that I was still getting too much output, so I've enhanced the trace a little to enable one to specify which devices have their packets traced - I did this by adding a 2nd sysfs variable dump_packet_devs which is a bitmap of devices to trace (which means you can only trace the first 32 devices -- is that a problem for anyone?).

I also fixed up some formatting errors (including fields that are meaningless, adding the socket name to the summary trace, tracing packets sent with drbd_send_cmd2()).

One other thing in this patch is a bit more tracing in tl_verify() when a failure is detected -- you can remove this if you like, but I think it's actually useful (more on this in a separate email later!)


> -----Original Message-----
> From: drbd-dev-bounces at linbit.com [mailto:drbd-dev-bounces at linbit.com]
> On Behalf Of Philipp Reisner
> Sent: Thursday, August 10, 2006 5:40 AM
> To: drbd-dev at linbit.com
> Subject: Re: [Drbd-dev] Proposed update to packet dumping code
> > Let me know what you think and if anything else should be done.
> > Simon
> Ok, I have applied the patch to trunk...
> -Phil
> --
> : Dipl-Ing Philipp Reisner                      Tel +43-1-8178292-50 :
> : LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :
> : Schönbrunnerstr 244, 1120 Vienna, Austria    http://www.linbit.com :
> _______________________________________________
> drbd-dev mailing list
> drbd-dev at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drbd-trace-update.patch
Type: application/octet-stream
Size: 3241 bytes
Desc: drbd-trace-update.patch
Url : http://lists.linbit.com/pipermail/drbd-dev/attachments/20060810/24ac9e5c/drbd-trace-update.obj

More information about the drbd-dev mailing list