From: Pete L. <pet...@st...> - 2002-05-10 15:27:59
|
I have been attempting to generate profile data from a loadable module under 2.4.17 on an SH4 based development board. I found an x86 specific patch to add loadable module symbols to the list of symbols profiled, but after getting it tailored to the SH4, I am only seeing section names in the resulting profile data from the modules, .text, .rodata, etc. (all kernel symbols are there) which I'm still looking into. The link below is the location of where I found the x86 specific patch, I changed the 'eip' in x86_do_profile() to 'pc' when I added the paragraph to time.c - sh_do_profile(). Separately, I have also tried to making use of the -pg option provided by gcc but upon trying to load the module, I get an undefined symbol "mcount", which I believe is supposed to be provided by linking a profile specific library?? I can't find a reference to mcount in the 2.4.17 kernel source, so it's location is an assumption on my part. Anyway, if anyone knows how to get around the troubles that I am running into, or has a better (working) manner to get profile data from loadable modules, I would enjoy hearing about it. thanks. http://groups.google.com/groups?hl=en&threadm=linux.kernel.20020320165324.E9 8F.HIRAO%40estartu.open.nm.fujitsu.co.jp&rnum=1&prev=/groups%3Fhl%3Den%26sel m%3Dlinux.kernel.20020320165324.E98F.HIRAO%2540estartu.open.nm.fujitsu.co.jp |