Re: [PATCH][RFC] Adding information of counts processes acquiredhow many spinlocks to schedstat

From: mitake
Date: Wed Jul 01 2009 - 10:18:13 EST


From: Ingo Molnar <mingo@xxxxxxx>
Subject: Re: [PATCH][RFC] Adding information of counts processes acquired how many spinlocks to schedstat
Date: Wed, 1 Jul 2009 15:50:32 +0200

>
> > Which makes me think it may be better to use the existing ftrace
> > lock events as softwares counters for that, which takes into
> > account the following events:
> >
> > - lock_acquire
> > - lock_release
> > - lock_contended
> > - lock_acquired
> >
> > And these events are per lock.
> >
> > Now the missing piece is the sampling count for events...
>
> Yeah, this is an even better idea. It gets the acquire counts - and
> much more.
>

Is there another way to implement more easily?
Fortunately or unfortunately, I didn't start implementing
because my x86_64 box died suddenly :-(
So I'll need a few days to fix, sorry...

--
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/