aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorSteven Rostedt <[email protected]>2012-04-25 14:14:43 +0000
committerSteven Rostedt <[email protected]>2012-05-16 23:58:46 +0000
commit9644302e3315e7e36495d230d5ac7125a316d33e (patch)
tree63695acb86c89f5617820937ed254d9638894eef /tools/perf/util/scripting-engines/trace-event-perl.c
parentftrace: Remove extra helper functions (diff)
downloadkernel-9644302e3315e7e36495d230d5ac7125a316d33e.tar.gz
kernel-9644302e3315e7e36495d230d5ac7125a316d33e.zip
ftrace: Speed up search by skipping pages by address
As all records in a page of the ftrace table are sorted, we can speed up the search algorithm by checking if the address to look for falls in between the first and last record ip on the page. This speeds up both the ftrace_location() and ftrace_text_reserved() algorithms, as it can skip full pages when the search address is not in them. Cc: Masami Hiramatsu <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions