Re: [PATCH] tracing/lockdep: report the time waited for a lock

From: Frederic Weisbecker
Date: Thu May 28 2009 - 10:39:22 EST


On Thu, May 28, 2009 at 04:34:43PM +0200, Peter Zijlstra wrote:
> On Thu, 2009-05-28 at 10:32 -0400, Steven Rostedt wrote:
>
> > > + TP_STRUCT__entry(
> > > + __field(const char *, name)
> > > + __field(unsigned long, wait_usec)
> > > + __field(unsigned long, wait_nsec_rem)
> > > + ),
> > > + TP_fast_assign(
> > > + __entry->name = lock->name;
> > > + __entry->wait_nsec_rem = do_div(waittime, NSEC_PER_USEC);
> >
> > I know this is already accepted, but can you move the do_div into the
> > print section.
>
> please do. Just fold those wait_* fields into a single u64 nsec one.


Indeed, I'll fix it. Thanks!

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/