]> git.ipfire.org Git - thirdparty/util-linux.git/commit - sys-utils/readprofile.c
readprofile: don't stop parsing at __init_end
authorPo-Yu Chuang <ratbert@faraday-tech.com>
Fri, 8 Apr 2011 09:35:53 +0000 (17:35 +0800)
committerKarel Zak <kzak@redhat.com>
Tue, 12 Apr 2011 10:10:54 +0000 (12:10 +0200)
commit236faa7eafb0a6728527ef3f327dabcaf2066b83
treea78fd6b396c723ce08645f8f98020b44278539bd
parent35b671371b307bd90e0f890cfa0526399a32b262
readprofile: don't stop parsing at __init_end

Some architectures like ARM place __init_end before .text section.
If any function in .init section is hit while profiling, readprofile
stops at __init_end.  That means if we enable profiling at boot time,
the profiler probably hits init functions and readprofile does not
work well unless we reset profiling buffer with -r option.

Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com>
sys-utils/readprofile.c