* [Drbd-dev] How to use dynamic tracing
@ 2009-03-04 19:08 Guo, Weiping (Jim)
2009-03-12 10:41 ` Philipp Reisner
0 siblings, 1 reply; 2+ messages in thread
From: Guo, Weiping (Jim) @ 2009-03-04 19:08 UTC (permalink / raw)
To: drbd-dev
Hi All,
I am new to drbd development. Just want to get my foot wet.
One thing I would to do is turn on the tracing so that I may have a
quicker way to understand drbd. I defined "ENABLE_DYNAMIC_TRACE" in the
configuration file, but not sure how to use it.
Any documents or suggestions are appreciated!
Thanks.
Jim
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Drbd-dev] How to use dynamic tracing
2009-03-04 19:08 [Drbd-dev] How to use dynamic tracing Guo, Weiping (Jim)
@ 2009-03-12 10:41 ` Philipp Reisner
0 siblings, 0 replies; 2+ messages in thread
From: Philipp Reisner @ 2009-03-12 10:41 UTC (permalink / raw)
To: drbd-dev
On Wednesday 04 March 2009 20:08:51 Guo, Weiping (Jim) wrote:
> Hi All,
>
> I am new to drbd development. Just want to get my foot wet.
>
> One thing I would to do is turn on the tracing so that I may have a
> quicker way to understand drbd. I defined "ENABLE_DYNAMIC_TRACE" in the
> configuration file, but not sure how to use it.
>
> Any documents or suggestions are appreciated!
>
enum {
TraceLvlAlways = 0,
TraceLvlSummary,
TraceLvlMetrics,
TraceLvlAll,
TraceLvlMax
};
enum {
TraceTypePacket = 0x00000001,
TraceTypeRq = 0x00000002,
TraceTypeUuid = 0x00000004,
TraceTypeResync = 0x00000008,
TraceTypeEE = 0x00000010,
TraceTypeUnplug = 0x00000020,
TraceTypeNl = 0x00000040,
TraceTypeALExts = 0x00000080,
TraceTypeIntRq = 0x00000100,
TraceTypeMDIO = 0x00000200,
TraceTypeEpochs = 0x00000400,
};
echo 1 > /sys/module/drbd/parameters/trace_devs # Bitmask
echo 3 > /sys/module/drbd/parameters/trace_level
echo 4 > /sys/module/drbd/parameters/trace_type
Enables UUID traceing with full verbosity for /dev/drbd0.
-Phil
--
: Dipl-Ing Philipp Reisner
: LINBIT | Your Way to High Availability
: Tel: +43-1-8178292-50, Fax: +43-1-8178292-82
: http://www.linbit.com
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-12 10:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-04 19:08 [Drbd-dev] How to use dynamic tracing Guo, Weiping (Jim)
2009-03-12 10:41 ` Philipp Reisner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox