Okay, how about this revision? -Will
Philippe Elie wrote:
> Will Cohen wrote:
>> The current OProfile cvs snapshot does not work correctly with kernels
>> compiled with CONFIG_MODULE_UNLOAD unset. The module information is
>> not obtained because of a difference in the module format. I have a
>> preliminary patch that addresses the problem. Suitable for inclusion
>> in oprofile?
>> 2003-07-08 Will Cohen <wcohen@...>
>> * daemon/opd_kernel.c: Handle alternate /proc/modules format.
> Ok, I see it too now but your patch is not sufficient, it'll not
> handle the case
> ip_tables 17344 ref_count_as_numeric_value - Live 0xe0942000
> which is allowed by code in kernel/modules.c:print_unload_info()
> when CONFIG_MODULE_UNLOAD is on (we don't handle that correctly
> currently too), I suggest you just change the first sscanf to
> read ref count as a string and not add a second sscanf.