[newbie question] addresses of loaded programs/functions

2001-06-01 Thread Collins, Tom
Hello I am writing a profiling tool for a project I am working on, and I need to know how to map addresses of calling functions to the appropriate human-readable name. Is there a data structure in the kernel that I can access to achieve this? Or can I reference a load map (in days gone by, I us

processor time, process time, idle time, etc

2001-03-09 Thread Collins, Tom
Hello... I am wondering is there is a way to obtain resource usage from the kernel w/o doing a kernel call from a program (can I get this from /proc/?? ?). For example, I am interested in discriminating between processor idle time, time spent in processes, etc. Is this possible, or will I hav

RE: Multiple file module build problems

2001-02-28 Thread Collins, Tom
: Collins, Tom Subject: Re: Multiple file module build problems It seems that linker tried to build executable file. When building multiple module source into one module object file, ld with '-r' option is used. ld -r -o scharmod.o schar.o p

Multiple file module build problems

2001-02-28 Thread Collins, Tom
Hello... I am trying to build a multiple-file kernel module, and am having some difficulty. It seems that the linker is trying to build and executable. The paradigm I am using is from http://www.linuxdoc.org/LDP/lkmpg/node13.html. I compile two source files with the following gcc command: gcc

RE: Dynamically altering code segments

2001-02-27 Thread Collins, Tom
PM To: Andreas Dilger Cc: Collins, Tom; [EMAIL PROTECTED] Subject: Re: Dynamically altering code segments Dprobes is one mechanism for doing what you want. It works the same way OS/2 dynamic trace did. Another mecnahism, also available from the dprobes web page is the GKHI (generalised kernel

Dynamically altering code segments

2001-02-27 Thread Collins, Tom
Hi... This is my first post, so if this is off topic for this list, please direct me to another one that is more appropriate. Thanks That said, I am wanting to dynamically modify the kernel in specific places to implement a custom kernel trace mechanism. The general idea is that, when the "tra