Skip to contentSkip to conversation

about Linux Module Profiling Tool

DISCUSSION anil dahiya 3 participants 4 messages Oct 7, 2004

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 11 lines · anil dahiya

Hello

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

-----Anil Kumar

Quoted 9 lines

_______________________________
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

Signature · 8 lines
/***************************************************
 *Neil Horman
 *Software Engineer
 *Red Hat, Inc.
 *[email protected]
 *gpg keyid: 1024D / 0x92A74FA1
 *http://pgp.mit.edu
 ***************************************************/
#2 lore raw

anil kumar :

Quoted 2 lines

If anyone have idea about linux module profiling
tools>> >

Neil :

Quoted 1 line

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

#3 lore raw

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].

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