[cpia] profiling device drivers

Johannes Erdfelt jerdfelt@sventech.com
Wed, 8 Mar 2000 23:30:25 -0500


On Wed, Mar 08, 2000, Jack Diederich <jack_diederich@email.com> wrote:
> hi all,
> 
> I did some searches on google, redhat & the LDP, but I couldn't
> find any articles on how to profile/benchmark device drivers.
> Does anyone know how this works?
> 
> The reason I ask is that I was playing around w/ yuvconvert to
> streamline it a bit (it seemed like the kind of frequently called
> math heavy routine that might benefit).  If my changes sped it
> up at all, it isn't noticeable. I'd still like to know where
> the driver spends most of its time.

Take a look at

http://www.tux.org/hypermail/linux-kernel/1999week20/1079.html

for profiling information. There are some patches floating around. I've
never used any tho.

I recently was talking to the X developer here and explaining to him the
current CPiA driver, he urged me to use xvimage support under the new
version of XFree (4.0). It'll do color conversion and scaling all through
hardware which supports it (Matrox, etc).

JE