2004-10-07 12:51:21

by anil dahiya

[permalink] [raw]
Subject: about Linux Module Profiling Tool

Hello

If anyone have idea about linux module profiling tools
then let me know

-----Anil Kumar?





_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


2004-10-07 13:09:47

by Neil Horman

[permalink] [raw]
Subject: Re: about Linux Module Profiling Tool

anil dahiya wrote:
> Hello
>
> If anyone have idea about linux module profiling tools
> then let me know
>
> -----Anil Kumar
>
>
>
>
>
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/


What kind of profiling do you want to do?
Neil

--
/***************************************************
*Neil Horman
*Software Engineer
*Red Hat, Inc.
*[email protected]
*gpg keyid: 1024D / 0x92A74FA1
*http://pgp.mit.edu
***************************************************/

2004-10-07 13:25:25

by anil dahiya

[permalink] [raw]
Subject: Re: about Linux Module Profiling Tool

anil kumar :
> If anyone have idea about linux module profiling
> tools>> >

Neil :
> What kind of profiling do you want to do?


Anil Kumar :

after booting system, I am loading my network device
driver module in linux kernel .

I wanna to know how much time is taking by functions
of my module at any time (i.e just after loading
module or just after sending or receiving data etc).
So I can improve performance of my module by
improving those function which taking maximum time or
cpu utilization.

---- Anil Kumar




_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

2004-10-07 16:08:46

by Randy.Dunlap

[permalink] [raw]
Subject: Re: about Linux Module Profiling Tool

On Thu, 7 Oct 2004 06:23:43 -0700 (PDT) anil dahiya wrote:

| anil kumar :
| > If anyone have idea about linux module profiling
| > tools>> >
|
| Neil :
| > What kind of profiling do you want to do?
|
|
| Anil Kumar :
|
| after booting system, I am loading my network device
| driver module in linux kernel .
|
| I wanna to know how much time is taking by functions
| of my module at any time (i.e just after loading
| module or just after sending or receiving data etc).
| So I can improve performance of my module by
| improving those function which taking maximum time or
| cpu utilization.


Check out oprofile:
in kernel tree, Documentation/basic_profiling.txt (2.6.x)

Basic in-kernel profiling (older version, before oprofile)
does not work with loadable modules, just with in-kernel code.
You could use this if you build your driver in-kernel.

There are also some performance-counter patches, but
I don't know how to use them [if your h/w supports them].

--
~Randy
MOTD: Always include version info.
(Again. Sometimes I think ln -s /usr/src/linux/.config .signature)